github.com/easysoft/zendata@v0.0.0-20240513203326-705bd5a7fd67/cmd/test/others/func/model/model.go (about)

     1  package model
     2  
     3  import "time"
     4  
     5  type TableInfo struct {
     6  	Field   string
     7  	Type    string
     8  	Null    string
     9  	Key     string
    10  	Default string
    11  	Extra   string
    12  }
    13  
    14  type DataCategory1 struct {
    15  	BaseModel
    16  
    17  	Name string `json:"name"`
    18  	Desc string `json:"desc" gorm:"column:descr"`
    19  }
    20  
    21  func (DataCategory1) TableName() string {
    22  	return "biz_data_category1"
    23  }
    24  
    25  type DataCategory2 struct {
    26  	BaseModel
    27  
    28  	Name      string `json:"name"`
    29  	Desc      string `json:"desc" gorm:"column:descr"`
    30  	DataTable string `json:"desc"`
    31  
    32  	ParentId uint `json:"parentId"`
    33  }
    34  
    35  func (DataCategory2) TableName() string {
    36  	return "biz_data_category2"
    37  }
    38  
    39  type BaseModel struct {
    40  	ID        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
    41  	CreatedAt *time.Time `json:"createdAt,omitempty"`
    42  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
    43  	Deleted   bool       `json:"-" gorm:"default:false"`
    44  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
    45  }
    46  
    47  type DataCountry struct {
    48  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
    49  	CreatedAt *time.Time `json:"createdAt,omitempty"`
    50  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
    51  	Deleted   bool       `json:"-" gorm:"default:false"`
    52  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
    53  
    54  	ContinentId  int    `json:"continentId"`
    55  	Continent    string `json:"continent"`
    56  	AreaCode     string `json:"areaCode"`
    57  	EnglishShort string `json:"englishShort"`
    58  	EnglishFull  string `json:"englishFull"`
    59  	ChineseShort string `json:"chineseShort"`
    60  	ChineseFull  string `json:"chineseFull"`
    61  }
    62  
    63  func (DataCountry) TableName() string {
    64  	return "biz_data_country"
    65  }
    66  
    67  type DataCity struct {
    68  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
    69  	CreatedAt *time.Time `json:"createdAt,omitempty"`
    70  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
    71  	Deleted   bool       `json:"-" gorm:"default:false"`
    72  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
    73  
    74  	Name        string `json:"name"`
    75  	Code        string `json:"code"`
    76  	ZipCode     string `json:"zipCode"`
    77  	State       string `json:"state"`
    78  	StateShort  string `json:"stateShort"`
    79  	StateShort2 string `json:"stateShort2"`
    80  }
    81  
    82  func (DataCity) TableName() string {
    83  	return "biz_data_city"
    84  }
    85  
    86  type DataIdiom struct {
    87  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
    88  	CreatedAt *time.Time `json:"createdAt,omitempty"`
    89  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
    90  	Deleted   bool       `json:"-" gorm:"default:false"`
    91  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
    92  
    93  	Derivation   string `json:"derivation"`
    94  	Example      string `json:"derivation"`
    95  	Explanation  string `json:"derivation"`
    96  	Pinyin       string `json:"derivation"`
    97  	Word         string `json:"derivation"`
    98  	Abbreviation string `json:"derivation"`
    99  }
   100  
   101  func (DataIdiom) TableName() string {
   102  	return "biz_data_idiom"
   103  }
   104  
   105  type DataXiehouyu struct {
   106  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   107  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   108  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   109  	Deleted   bool       `json:"-" gorm:"default:false"`
   110  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   111  
   112  	Riddle string `json:"riddle"`
   113  	Answer string `json:"answer"`
   114  	Tag    string `json:"tag"`
   115  }
   116  
   117  func (DataXiehouyu) TableName() string {
   118  	return "biz_data_xiehouyu"
   119  }
   120  
   121  type DataDict struct {
   122  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   123  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   124  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   125  	Deleted   bool       `json:"-" gorm:"default:false"`
   126  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   127  
   128  	Word        string `json:"word"`
   129  	OldWord     string `json:"oldWord"`
   130  	Strokes     string `json:"strokes"`
   131  	Pinyin      string `json:"pinyin"`
   132  	Radicals    string `json:"radicals"`
   133  	Explanation string `json:"explanation"`
   134  }
   135  
   136  func (DataDict) TableName() string {
   137  	return "biz_data_dict"
   138  }
   139  
   140  type DataChronology struct {
   141  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   142  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   143  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   144  	Deleted   bool       `json:"-" gorm:"default:false"`
   145  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   146  
   147  	Content string `json:"content"`
   148  }
   149  
   150  func (DataChronology) TableName() string {
   151  	return "biz_data_chronology"
   152  }
   153  
   154  type DataCompany struct {
   155  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   156  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   157  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   158  	Deleted   bool       `json:"-" gorm:"default:false"`
   159  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   160  
   161  	Content string `json:"content"`
   162  }
   163  
   164  func (DataCompany) TableName() string {
   165  	return "biz_data_company"
   166  }
   167  
   168  type DataFiveElements struct {
   169  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   170  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   171  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   172  	Deleted   bool       `json:"-" gorm:"default:false"`
   173  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   174  
   175  	Content string `json:"content"`
   176  }
   177  
   178  func (DataFiveElements) TableName() string {
   179  	return "biz_data_five_elements"
   180  }
   181  
   182  type DataHeavenlyStems struct {
   183  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   184  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   185  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   186  	Deleted   bool       `json:"-" gorm:"default:false"`
   187  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   188  
   189  	Content string `json:"content"`
   190  }
   191  
   192  func (DataHeavenlyStems) TableName() string {
   193  	return "biz_data_heavenly_stems"
   194  }
   195  
   196  type DataOccupation struct {
   197  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   198  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   199  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   200  	Deleted   bool       `json:"-" gorm:"default:false"`
   201  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   202  
   203  	Content string `json:"content"`
   204  }
   205  
   206  func (DataOccupation) TableName() string {
   207  	return "biz_data_occupation"
   208  }
   209  
   210  type DataPlanet struct {
   211  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   212  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   213  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   214  	Deleted   bool       `json:"-" gorm:"default:false"`
   215  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   216  
   217  	Content string `json:"content"`
   218  }
   219  
   220  func (DataPlanet) TableName() string {
   221  	return "biz_data_planet"
   222  }
   223  
   224  type DataSeason struct {
   225  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   226  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   227  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   228  	Deleted   bool       `json:"-" gorm:"default:false"`
   229  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   230  
   231  	Content string `json:"content"`
   232  }
   233  
   234  func (DataSeason) TableName() string {
   235  	return "biz_data_season"
   236  }
   237  
   238  type DataEarthlyBranches struct {
   239  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   240  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   241  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   242  	Deleted   bool       `json:"-" gorm:"default:false"`
   243  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   244  
   245  	Content string `json:"content"`
   246  }
   247  
   248  func (DataEarthlyBranches) TableName() string {
   249  	return "biz_data_earthly_branches"
   250  }
   251  
   252  type DataCompanyAbbreviation struct {
   253  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   254  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   255  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   256  	Deleted   bool       `json:"-" gorm:"default:false"`
   257  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   258  
   259  	Content string `json:"content"`
   260  }
   261  
   262  func (DataCompanyAbbreviation) TableName() string {
   263  	return "biz_data_company_abbreviation"
   264  }
   265  
   266  type DataChineseFamily struct {
   267  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   268  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   269  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   270  	Deleted   bool       `json:"-" gorm:"default:false"`
   271  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   272  
   273  	Name   string `json:"name"`
   274  	Pinyin string `json:"pinyin"`
   275  	Double bool   `json:"double"`
   276  }
   277  
   278  func (DataChineseFamily) TableName() string {
   279  	return "biz_data_chinese_family"
   280  }
   281  
   282  type DataChineseGiven struct {
   283  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   284  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   285  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   286  	Deleted   bool       `json:"-" gorm:"default:false"`
   287  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   288  
   289  	Name   string `json:"name"`
   290  	Pinyin string `json:"pinyin"`
   291  	Sex    string `json:"sex"`
   292  }
   293  
   294  func (DataChineseGiven) TableName() string {
   295  	return "biz_data_chinese_given"
   296  }
   297  
   298  type DataEnglishFamily struct {
   299  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   300  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   301  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   302  	Deleted   bool       `json:"-" gorm:"default:false"`
   303  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   304  
   305  	Name  string `json:"name"`
   306  	Index string `json:"index"`
   307  }
   308  
   309  func (DataEnglishFamily) TableName() string {
   310  	return "biz_data_english_family"
   311  }
   312  
   313  type DataEnglishGiven struct {
   314  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   315  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   316  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   317  	Deleted   bool       `json:"-" gorm:"default:false"`
   318  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   319  
   320  	Name  string `json:"name"`
   321  	Index string `json:"index"`
   322  	Sex   string `json:"sex"`
   323  }
   324  
   325  func (DataEnglishGiven) TableName() string {
   326  	return "biz_data_english_given"
   327  }
   328  
   329  type DataWordsInternetArgot struct {
   330  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   331  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   332  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   333  	Deleted   bool       `json:"-" gorm:"default:false"`
   334  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   335  }
   336  type DataWordsPreposition struct {
   337  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   338  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   339  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   340  	Deleted   bool       `json:"-" gorm:"default:false"`
   341  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   342  }
   343  type DataWordsPronoun struct {
   344  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   345  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   346  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   347  	Deleted   bool       `json:"-" gorm:"default:false"`
   348  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   349  }
   350  type DataWordsAdverb struct {
   351  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   352  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   353  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   354  	Deleted   bool       `json:"-" gorm:"default:false"`
   355  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   356  }
   357  type DataWordsVerb struct {
   358  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   359  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   360  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   361  	Deleted   bool       `json:"-" gorm:"default:false"`
   362  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   363  }
   364  type DataWordsAuxiliary struct {
   365  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   366  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   367  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   368  	Deleted   bool       `json:"-" gorm:"default:false"`
   369  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   370  }
   371  type DataWordsNoun struct {
   372  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   373  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   374  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   375  	Deleted   bool       `json:"-" gorm:"default:false"`
   376  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   377  }
   378  type DataWordsAdjectivePredicate struct {
   379  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   380  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   381  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   382  	Deleted   bool       `json:"-" gorm:"default:false"`
   383  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   384  }
   385  type DataWordsAdjective struct {
   386  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   387  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   388  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   389  	Deleted   bool       `json:"-" gorm:"default:false"`
   390  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   391  }
   392  type DataWordsNumeral struct {
   393  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   394  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   395  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   396  	Deleted   bool       `json:"-" gorm:"default:false"`
   397  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   398  }
   399  type DataWordsConjunction struct {
   400  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   401  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   402  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   403  	Deleted   bool       `json:"-" gorm:"default:false"`
   404  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   405  }
   406  type DataWordsMeasure struct {
   407  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   408  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   409  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   410  	Deleted   bool       `json:"-" gorm:"default:false"`
   411  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   412  }
   413  
   414  type DataWordTagGroup struct {
   415  	Id        uint           `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   416  	CreatedAt *time.Time     `json:"createdAt,omitempty"`
   417  	UpdatedAt *time.Time     `json:"updatedAt,omitempty"`
   418  	Deleted   bool           `json:"-" gorm:"default:false"`
   419  	Disabled  bool           `json:"disabled,omitempty" gorm:"default:false"`
   420  	Name      string         `gorm:"uniqueIndex" json:"name"`
   421  	Tags      []*DataWordTag `gorm:"many2many:biz_data_word_tag_group_biz_data_word_tag" json:"tags"`
   422  }
   423  
   424  func (DataWordTagGroup) TableName() string {
   425  	return "biz_data_word_tag_group"
   426  }
   427  
   428  type DataWordTag struct {
   429  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   430  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   431  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   432  	Deleted   bool       `json:"-" gorm:"default:false"`
   433  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   434  
   435  	Name  string      `gorm:"uniqueIndex" json:"name"`
   436  	Words []*DataWord `gorm:"many2many:biz_data_word_biz_data_word_tag" json:"words"`
   437  
   438  	Groups []*DataWordTagGroup `gorm:"many2many:biz_data_word_tag_group_biz_data_word_tag" json:"tags"`
   439  }
   440  
   441  func (DataWordTag) TableName() string {
   442  	return "biz_data_word_tag"
   443  }
   444  
   445  type DataWord struct {
   446  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   447  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   448  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   449  	Deleted   bool       `json:"-" gorm:"default:false"`
   450  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   451  
   452  	Word       string `json:"word"`
   453  	TagGroupId uint   `json:"tagGroupId"`
   454  
   455  	Tags []*DataWordTag `gorm:"many2many:biz_data_word_biz_data_word_tag" json:"tags"`
   456  }
   457  
   458  func (DataWord) TableName() string {
   459  	return "biz_data_word"
   460  }
   461  
   462  type DataColor struct {
   463  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   464  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   465  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   466  	Deleted   bool       `json:"-" gorm:"default:false"`
   467  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   468  
   469  	English string `json:"english"`
   470  	Chinese string `json:"chinese"`
   471  	Hex     string `json:"hex"`
   472  	Rgb     string `json:"rgb"`
   473  }
   474  
   475  func (DataColor) TableName() string {
   476  	return "biz_data_color"
   477  }
   478  
   479  type DataComm struct {
   480  	Id        uint       `gorm:"primary_key" sql:"type:INT(10) UNSIGNED NOT NULL" json:"id"`
   481  	Name      string     `json:"name,omitempty"`
   482  	CreatedAt *time.Time `json:"createdAt,omitempty"`
   483  	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
   484  	Deleted   bool       `json:"-" gorm:"default:false"`
   485  	Disabled  bool       `json:"disabled,omitempty" gorm:"default:false"`
   486  }
   487  
   488  type DataFood struct {
   489  	DataComm
   490  	Name string `json:"name"`
   491  }
   492  
   493  func (DataFood) TableName() string {
   494  	return "biz_data_food"
   495  }
   496  
   497  type DataAnimalPlant struct {
   498  	DataComm
   499  	Name string `json:"name"`
   500  }
   501  
   502  func (DataAnimalPlant) TableName() string {
   503  	return "biz_data_animal_plant"
   504  }
   505  
   506  type DataFruit struct {
   507  	DataComm
   508  	Name string `json:"name"`
   509  }
   510  
   511  func (DataFruit) TableName() string {
   512  	return "biz_data_fruit"
   513  }
   514  
   515  type DataConstellation struct {
   516  	DataComm
   517  	Name string `json:"name"`
   518  }
   519  
   520  func (DataConstellation) TableName() string {
   521  	return "biz_data_constellation"
   522  }
   523  
   524  type DataZodiac struct {
   525  	DataComm
   526  	Name string `json:"name"`
   527  }
   528  
   529  func (DataZodiac) TableName() string {
   530  	return "biz_data_zodiac"
   531  }
   532  
   533  type EightDiagram struct {
   534  	DataComm
   535  	Name string `json:"name"`
   536  }
   537  
   538  func (EightDiagram) TableName() string {
   539  	return "biz_data_eight_diagram"
   540  }
   541  
   542  type Dynasty struct {
   543  	DataComm
   544  	Name string `json:"name"`
   545  }
   546  
   547  func (Dynasty) TableName() string {
   548  	return "biz_data_dynasty"
   549  }
   550  
   551  type CarBrand struct {
   552  	DataComm
   553  	Name string `json:"name"`
   554  }
   555  
   556  func (CarBrand) TableName() string {
   557  	return "biz_data_car_brand"
   558  }
   559  
   560  type CarComponent struct {
   561  	DataComm
   562  	Name string `json:"name"`
   563  }
   564  
   565  func (CarComponent) TableName() string {
   566  	return "biz_data_car_component"
   567  }
   568  
   569  type PcOs struct {
   570  	DataComm
   571  	Name      string `json:"name"`
   572  	ShortName string `json:"shortName"`
   573  	Version   string `json:"version"`
   574  	Website   string `json:"website"`
   575  }
   576  
   577  func (PcOs) TableName() string {
   578  	return "biz_data_pc_os"
   579  }
   580  
   581  type PcFileExt struct {
   582  	DataComm
   583  	Name string `json:"name"`
   584  	Desc string `json:"desc"`
   585  }
   586  
   587  func (PcFileExt) TableName() string {
   588  	return "biz_data_pc_file_ext"
   589  }
   590  
   591  type PhoneModel struct {
   592  	DataComm
   593  
   594  	Brand     string `json:"brand"`
   595  	BrandName string `json:"brandName"`
   596  
   597  	Model     string `json:"model"`
   598  	ModelName string `json:"modelName"`
   599  
   600  	Area string `json:"area"`
   601  }
   602  
   603  func (PhoneModel) TableName() string {
   604  	return "biz_data_phone_model"
   605  }
   606  
   607  type Place struct {
   608  	DataComm
   609  	Name string `json:"name"`
   610  }
   611  
   612  func (Place) TableName() string {
   613  	return "biz_data_place"
   614  }
   615  
   616  type SongData struct {
   617  	DataComm
   618  	Name   string `json:"name"`
   619  	Singer string
   620  	Lyric  []string
   621  }
   622  
   623  type Song struct {
   624  	DataComm
   625  	Name   string `json:"name"`
   626  	Singer string
   627  	Lyric  string
   628  }
   629  
   630  func (Song) TableName() string {
   631  	return "biz_data_song"
   632  }
   633  
   634  type Bank struct {
   635  	DataComm
   636  	Name string `json:"name"`
   637  }
   638  
   639  func (Bank) TableName() string {
   640  	return "biz_data_bank"
   641  }
   642  
   643  type Advert struct {
   644  	DataComm
   645  	Name string `json:"name"`
   646  }
   647  
   648  func (Advert) TableName() string {
   649  	return "biz_data_advert"
   650  }
   651  
   652  type IdiomSimple struct {
   653  	DataComm
   654  	Name string `json:"name"`
   655  }
   656  
   657  func (IdiomSimple) TableName() string {
   658  	return "biz_data_idiom_simple"
   659  }
   660  
   661  type PoetryAncient struct {
   662  	DataComm
   663  	Content    string `json:"content"`
   664  	CategoryId uint   `json:"categoryId"`
   665  }
   666  
   667  func (PoetryAncient) TableName() string {
   668  	return "biz_data_poetry_ancient"
   669  }
   670  
   671  type PoetryCategory struct {
   672  	DataComm
   673  	Name   string `json:"name" gorm:"unique_index, not null"`
   674  	EnName string `json:"cnName" gorm:"unique_index, not null"`
   675  }
   676  
   677  func (PoetryCategory) TableName() string {
   678  	return "biz_data_poetry_category"
   679  }
   680  
   681  type Medicine struct {
   682  	DataComm
   683  	Name string `json:"name"`
   684  }
   685  
   686  func (Medicine) TableName() string {
   687  	return "biz_data_medicine"
   688  }
   689  
   690  type Joke struct {
   691  	DataComm
   692  	Content string `json:"content"`
   693  }
   694  
   695  func (Joke) TableName() string {
   696  	return "biz_data_joke"
   697  }
   698  
   699  type AreaCodeCity struct {
   700  	DataComm
   701  	State string `json:"state"`
   702  	City  string `json:"city"`
   703  	Code  string `json:"code"`
   704  }
   705  
   706  func (AreaCodeCity) TableName() string {
   707  	return "biz_data_areacode_city"
   708  }
   709  
   710  type AreaCodeCountry struct {
   711  	DataComm
   712  
   713  	EnglishName string `json:"english_name"`
   714  	ChineseName string `json:"chinese_name"`
   715  	CountryCode string `json:"country_code"`
   716  	Code        string `json:"phone_code"`
   717  }
   718  
   719  func (AreaCodeCountry) TableName() string {
   720  	return "biz_data_areacode_country"
   721  }