category.gen.go 1.2 KB

12345678910111213141516171819202122232425262728
  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 TableNameCategory = "category"
  10. // Category mapped from table <category>
  11. type Category 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. Name string `gorm:"column:name;comment:name | agent 名称" json:"name"` // name | agent 名称
  17. OrganizationID int64 `gorm:"column:organization_id;comment:organization_id | 租户id" json:"organization_id"` // organization_id | 租户id
  18. }
  19. // TableName Category's table name
  20. func (*Category) TableName() string {
  21. return TableNameCategory
  22. }