vo.go 755 B

123456789101112131415161718192021222324252627282930
  1. package db
  2. import "time"
  3. type Model struct {
  4. ID uint `json:"id" gorm:"primary_key"`
  5. CreatedAt time.Time
  6. UpdatedAt time.Time
  7. DeletedAt *time.Time `sql:"index"`
  8. }
  9. type SqliteMaster struct {
  10. Type string `json:"type"`
  11. TblName string `json:"tbl_name"`
  12. RootPage string `json:"root_page"`
  13. Name string `json:"name"`
  14. Sql string `json:"sql"`
  15. }
  16. type TableInfo struct {
  17. Cid uint `json:"cid"`
  18. Type string `json:"type"`
  19. Name string `json:"name"`
  20. Notnull string `json:"not_null"`
  21. Pk int `json:"pk"`
  22. DfltValue interface{} `json:"deflt_value"`
  23. }
  24. type Filter struct {
  25. Field string `json:"field"`
  26. Compare string `json:"compare"`
  27. Value interface{} `json:"value"`
  28. }