admin_role.gen.go 987 B

1234567891011121314151617181920212223242526272829
  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. )
  8. const TableNameAdminRole = "admin_role"
  9. // AdminRole mapped from table <admin_role>
  10. type AdminRole struct {
  11. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
  12. Name string `gorm:"column:name;not null" json:"name"`
  13. Key string `gorm:"column:key;not null" json:"key"`
  14. Systems string `gorm:"column:systems" json:"systems"`
  15. Remark string `gorm:"column:remark" json:"remark"`
  16. Sort int32 `gorm:"column:sort;not null" json:"sort"`
  17. Status int32 `gorm:"column:status;not null;default:1" json:"status"`
  18. CreatedAt time.Time `gorm:"column:created_at" json:"created_at"`
  19. UpdatedAt time.Time `gorm:"column:updated_at" json:"updated_at"`
  20. }
  21. // TableName AdminRole's table name
  22. func (*AdminRole) TableName() string {
  23. return TableNameAdminRole
  24. }