models.go 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. LastUpdatedAt *time.Time `json:"last_updated_at"`
  27. CreatedAt time.Time `json:"created_at"`
  28. UpdatedAt time.Time `json:"updated_at"`
  29. }
  30. type Setting struct {
  31. Key string `json:"key"`
  32. Value string `json:"value"`
  33. }
  34. type User struct {
  35. ID int64 `json:"id"`
  36. Username string `json:"username"`
  37. PasswordHash string `json:"password_hash"`
  38. CreatedAt time.Time `json:"created_at"`
  39. }
  40. type Zone struct {
  41. ID int64 `json:"id"`
  42. ZoneID string `json:"zone_id"`
  43. Name string `json:"name"`
  44. ApiKey string `json:"api_key"`
  45. CreatedAt time.Time `json:"created_at"`
  46. UpdatedAt time.Time `json:"updated_at"`
  47. }