entity.go 925 B

123456789101112131415161718192021222324
  1. package research_group_relation
  2. // ResearchGroupRelation 研究方向分组关系表
  3. type ResearchGroupRelation struct {
  4. ID int `gorm:"primaryKey;column:id;type:int(10) unsigned;not null" json:"-"`
  5. ResearchGroupID int `gorm:"column:research_group_id;type:int(10) unsigned;not null;default:0" json:"researchGroupId"` // 研究方向分组ID
  6. AdminID int `gorm:"column:admin_id;type:int(10) unsigned;not null;default:0" json:"adminId"` // 研究员ID
  7. }
  8. // TableName get sql table name.获取数据库表名
  9. func (m *ResearchGroupRelation) TableName() string {
  10. return "research_group_relation"
  11. }
  12. // ResearchGroupRelationColumns get sql column name.获取数据库列名
  13. var ResearchGroupRelationColumns = struct {
  14. ID string
  15. ResearchGroupID string
  16. AdminID string
  17. }{
  18. ID: "id",
  19. ResearchGroupID: "research_group_id",
  20. AdminID: "admin_id",
  21. }