models.go 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Code generated by sqlc. DO NOT EDIT.
  2. // versions:
  3. // sqlc v1.30.0
  4. package queries
  5. import (
  6. "time"
  7. )
  8. type IpProvider struct {
  9. ID int64 `json:"id"`
  10. Url string `json:"url"`
  11. Name string `json:"name"`
  12. Enabled int64 `json:"enabled"`
  13. Priority int64 `json:"priority"`
  14. CreatedAt time.Time `json:"created_at"`
  15. UpdatedAt time.Time `json:"updated_at"`
  16. }
  17. type Record struct {
  18. ID int64 `json:"id"`
  19. ZoneID int64 `json:"zone_id"`
  20. CfRecordID string `json:"cf_record_id"`
  21. Name string `json:"name"`
  22. Type string `json:"type"`
  23. Content string `json:"content"`
  24. Proxied int64 `json:"proxied"`
  25. IsStatic int64 `json:"is_static"`
  26. CreatedAt time.Time `json:"created_at"`
  27. UpdatedAt time.Time `json:"updated_at"`
  28. }
  29. type Setting struct {
  30. Key string `json:"key"`
  31. Value string `json:"value"`
  32. }
  33. type User struct {
  34. ID int64 `json:"id"`
  35. Username string `json:"username"`
  36. PasswordHash string `json:"password_hash"`
  37. CreatedAt time.Time `json:"created_at"`
  38. }
  39. type Zone struct {
  40. ID int64 `json:"id"`
  41. ZoneID string `json:"zone_id"`
  42. Name string `json:"name"`
  43. ApiKey string `json:"api_key"`
  44. CreatedAt time.Time `json:"created_at"`
  45. UpdatedAt time.Time `json:"updated_at"`
  46. }