models.go 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. // Code generated by sqlc. DO NOT EDIT.
  2. // versions:
  3. // sqlc v1.15.0
  4. package db
  5. import (
  6. "database/sql"
  7. "time"
  8. )
  9. type ApAcceptedActivity struct {
  10. ID int32
  11. Iri string
  12. Actor string
  13. Type string
  14. Timestamp time.Time
  15. }
  16. type ApFollower struct {
  17. Iri string
  18. Inbox string
  19. Name sql.NullString
  20. Username string
  21. Image sql.NullString
  22. Request string
  23. RequestObject []byte
  24. CreatedAt sql.NullTime
  25. ApprovedAt sql.NullTime
  26. DisabledAt sql.NullTime
  27. }
  28. type ApOutbox struct {
  29. Iri string
  30. Value []byte
  31. Type string
  32. CreatedAt sql.NullTime
  33. LiveNotification sql.NullBool
  34. }
  35. type Auth struct {
  36. ID int32
  37. UserID string
  38. Token string
  39. Type string
  40. Timestamp time.Time
  41. }
  42. type IpBan struct {
  43. IpAddress string
  44. Notes sql.NullString
  45. CreatedAt sql.NullTime
  46. }
  47. type Message struct {
  48. ID string
  49. UserID sql.NullString
  50. Body sql.NullString
  51. EventType sql.NullString
  52. HiddenAt sql.NullTime
  53. Timestamp sql.NullTime
  54. Title sql.NullString
  55. Subtitle sql.NullString
  56. Image sql.NullString
  57. Link sql.NullString
  58. }
  59. type Notification struct {
  60. ID int32
  61. Channel string
  62. Destination string
  63. CreatedAt sql.NullTime
  64. }
  65. type User struct {
  66. ID string
  67. DisplayName string
  68. DisplayColor int32
  69. CreatedAt sql.NullTime
  70. DisabledAt sql.NullTime
  71. PreviousNames sql.NullString
  72. NamechangedAt sql.NullTime
  73. Scopes sql.NullString
  74. AuthenticatedAt sql.NullTime
  75. Type sql.NullString
  76. LastUsed interface{}
  77. }
  78. type UserAccessToken struct {
  79. Token string
  80. UserID string
  81. Timestamp time.Time
  82. }