tutorial.gen.go 1.5 KB

12345678910111213141516171819202122232425262728293031
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameTutorial = "tutorial"
  10. // Tutorial 数字员工使用教程表
  11. type Tutorial struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. EmployeeID int64 `gorm:"column:employee_id;comment:员工ID" json:"employee_id"` // 员工ID
  14. CreatedAt time.Time `gorm:"column:created_at;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  15. UpdatedAt time.Time `gorm:"column:updated_at;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  16. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  17. Index int64 `gorm:"column:index;comment:序号" json:"index"` // 序号
  18. Title string `gorm:"column:title;comment:标题" json:"title"` // 标题
  19. Content string `gorm:"column:content;comment:内容" json:"content"` // 内容
  20. OrganizationID int64 `gorm:"column:organization_id;comment:机构ID" json:"organization_id"` // 机构ID
  21. }
  22. // TableName Tutorial's table name
  23. func (*Tutorial) TableName() string {
  24. return TableNameTutorial
  25. }