sync_src_table.go 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. // SyncSrcTableDao is the manager for logic model data accessing
  11. // and custom defined data operations functions management.
  12. type SyncSrcTableDao 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 syncSrcTableColumns // Columns contains all the columns of Table that for convenient usage.
  17. }
  18. // SyncSrcTableColumns defines and stores column names for table sync_src_table.
  19. type syncSrcTableColumns struct {
  20. Id string //
  21. CreateDate string //
  22. WriteDate string //
  23. TaskId string //
  24. DbType string //
  25. DbName string //
  26. TableName string //
  27. PkFiled string //
  28. }
  29. func NewSyncSrcTableDao() *SyncSrcTableDao {
  30. return &SyncSrcTableDao{
  31. M: g.DB("default").Model("sync_src_table").Safe(),
  32. DB: g.DB("default"),
  33. Table: "sync_src_table",
  34. Columns: syncSrcTableColumns{
  35. Id: "id",
  36. CreateDate: "create_date",
  37. WriteDate: "write_date",
  38. TaskId: "task_id",
  39. DbType: "db_type",
  40. DbName: "db_name",
  41. TableName: "table_name",
  42. PkFiled: "pk_filed",
  43. },
  44. }
  45. }