input_demo.go 821 B

1234567891011121314151617181920212223242526272829303132333435
  1. package models
  2. import (
  3. "time"
  4. "github.com/lib/pq"
  5. "github.com/qor5/admin/media/media_library"
  6. )
  7. type InputDemo struct {
  8. ID uint
  9. TextField1 string
  10. TextArea1 string
  11. Switch1 bool
  12. Slider1 int
  13. Select1 string
  14. RangeSlider1 pq.Int64Array `gorm:"type:integer[]"`
  15. Radio1 string
  16. FileInput1 string
  17. Combobox1 string
  18. Checkbox1 bool
  19. Autocomplete1 pq.StringArray `gorm:"type:text[]"`
  20. ButtonGroup1 string
  21. ChipGroup1 string
  22. ItemGroup1 string
  23. ListItemGroup1 string
  24. SlideGroup1 string
  25. ColorPicker1 string
  26. DatePicker1 string
  27. DatePickerMonth1 string
  28. TimePicker1 string
  29. MediaLibrary1 media_library.MediaBox `sql:"type:text;"`
  30. UpdatedAt time.Time
  31. CreatedAt time.Time
  32. }