sys_model_info.go 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. DO NOT EDIT THIS FILE MANUALLY.
  3. // ==========================================================================
  4. package internal
  5. import (
  6. "github.com/gogf/gf/database/gdb"
  7. "github.com/gogf/gf/frame/g"
  8. "github.com/gogf/gf/frame/gmvc"
  9. )
  10. // SysModelInfoDao is the manager for logic model data accessing
  11. // and custom defined data operations functions management.
  12. type SysModelInfoDao struct {
  13. gmvc.M // M is the core and embedded struct that inherits all chaining operations from gdb.Model.
  14. DB gdb.DB // DB is the raw underlying database management object.
  15. Table string // Table is the table name of the DAO.
  16. Columns sysModelInfoColumns // Columns contains all the columns of Table that for convenient usage.
  17. }
  18. // SysModelInfoColumns defines and stores column names for table sys_model_info.
  19. type sysModelInfoColumns struct {
  20. ModelId string // 模型ID
  21. ModelCategoryId string // 模板分类id
  22. ModelName string // 模型标识
  23. ModelTitle string // 模型名称
  24. ModelPk string // 主键字段
  25. ModelOrder string // 默认排序字段
  26. ModelSort string // 表单字段排序
  27. ModelList string // 列表显示字段,为空显示全部
  28. ModelEdit string // 可编辑字段,为空则除主键外均可以编辑
  29. ModelIndexes string // 索引字段
  30. SearchList string // 高级搜索的字段
  31. CreateTime string // 创建时间
  32. UpdateTime string // 更新时间
  33. ModelStatus string // 状态
  34. ModelEngine string // 数据库引擎
  35. CreateBy string // 创建人
  36. UpdateBy string // 修改人
  37. }
  38. var (
  39. // SysModelInfo is globally public accessible object for table sys_model_info operations.
  40. SysModelInfo = SysModelInfoDao{
  41. M: g.DB("default").Model("sys_model_info").Safe(),
  42. DB: g.DB("default"),
  43. Table: "sys_model_info",
  44. Columns: sysModelInfoColumns{
  45. ModelId: "model_id",
  46. ModelCategoryId: "model_category_id",
  47. ModelName: "model_name",
  48. ModelTitle: "model_title",
  49. ModelPk: "model_pk",
  50. ModelOrder: "model_order",
  51. ModelSort: "model_sort",
  52. ModelList: "model_list",
  53. ModelEdit: "model_edit",
  54. ModelIndexes: "model_indexes",
  55. SearchList: "search_list",
  56. CreateTime: "create_time",
  57. UpdateTime: "update_time",
  58. ModelStatus: "model_status",
  59. ModelEngine: "model_engine",
  60. CreateBy: "create_by",
  61. UpdateBy: "update_by",
  62. },
  63. }
  64. )