employee_config.gen.go 1.5 KB

123456789101112131415161718192021222324252627282930
  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 TableNameEmployeeConfig = "employee_config"
  10. // EmployeeConfig mapped from table <employee_config>
  11. type EmployeeConfig struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  13. CreatedAt time.Time `gorm:"column:created_at;not null;comment:Create Time | 创建日期" json:"created_at"` // Create Time | 创建日期
  14. UpdatedAt time.Time `gorm:"column:updated_at;not null;comment:Update Time | 修改日期" json:"updated_at"` // Update Time | 修改日期
  15. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:Delete Time | 删除日期" json:"deleted_at"` // Delete Time | 删除日期
  16. Stype string `gorm:"column:stype;not null;comment:配置类型" json:"stype"` // 配置类型
  17. Title string `gorm:"column:title;comment:标题" json:"title"` // 标题
  18. Photo string `gorm:"column:photo;comment:图片" json:"photo"` // 图片
  19. OrganizationID int64 `gorm:"column:organization_id;default:1;comment:机构 ID" json:"organization_id"` // 机构 ID
  20. }
  21. // TableName EmployeeConfig's table name
  22. func (*EmployeeConfig) TableName() string {
  23. return TableNameEmployeeConfig
  24. }