智慧食堂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
710 B

  1. package model
  2. import (
  3. "time"
  4. )
  5. type Class struct {
  6. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  7. Name string `json:"name" xorm:"not null default '' comment('名称') VARCHAR(255)"`
  8. Memo string `json:"memo" xorm:"not null default '' comment('备注') VARCHAR(255)"`
  9. GradeId int `json:"grade_id" xorm:"not null default 0 comment('年级id') INT(11)"`
  10. EnterpriseId int `json:"enterprise_id" xorm:"not null default 0 comment('单位id') INT(11)"`
  11. CreateAt time.Time `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
  12. UpdateAt time.Time `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
  13. }