repo_type.go 1.0 KB

123456789101112131415161718192021
  1. package datamodels
  2. import "time"
  3. type RepoType struct {
  4. RepoTypeId int64 `json:"repoTypeId" xorm:"'repo_type_id' bigint pk comment('主键ID') "`
  5. RepoTypeTitle string `json:"repoTypeTitle" xorm:"'repo_type_title' varchar(50) comment('模型名称') "`
  6. RepoTypeDesc string `json:"repoTypeDesc" xorm:"'repo_type_desc' varchar(255) comment('模型名称') "`
  7. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  8. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  9. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  10. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  11. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  12. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  13. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  14. }
  15. func (t *RepoType) TableName() string {
  16. return "repo_type"
  17. }