-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
115 lines (105 loc) · 2.63 KB
/
models.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// Code generated by sqlc. DO NOT EDIT.
package db
import (
"database/sql"
"time"
)
type Event struct {
ID int64
Uuid string
CreatorID sql.NullInt64
LocationID int64
StartTime time.Time
EndTime time.Time
Lat float64
Long float64
LiveCount int32
CreatedAt sql.NullTime
UpdatedAt sql.NullTime
}
type Location struct {
ID int64
Uuid string
Name string
Slug sql.NullString
Image string
Description sql.NullString
LocationType string
Street string
City string
State string
Zip string
Lat float64
Long float64
ScheduleRule sql.NullString
IsActive bool
HasCovidRestriction bool
AppointmentTypeID sql.NullString
CalendarID sql.NullString
CreatedAt sql.NullTime
UpdatedAt sql.NullTime
}
type PersonalAccessToken struct {
ID int64
UserID int64
Token string
Abilities sql.NullString
LastUsedAt sql.NullTime
CreatedAt sql.NullTime
UpdatedAt sql.NullTime
}
type User struct {
ID int64
Uuid string
FirstName sql.NullString
LastName sql.NullString
Email string
OauthProvider sql.NullString
OauthIdentifier sql.NullString
Password sql.NullString
Avatar string
LastSeenAt sql.NullTime
LastSeenLocation sql.NullString
CreatedAt sql.NullTime
UpdatedAt sql.NullTime
DeletedAt sql.NullTime
}
type UserEvent struct {
ID int64
EventID int64
UserID int64
RespondedAt time.Time
IsGoing bool
AttendedAt sql.NullTime
}
type UserFollow struct {
ID int32
FollowerUserID int64
FollowingUserID int64
AcceptedAt sql.NullTime
CreatedAt sql.NullTime
UpdatedAt sql.NullTime
}
type UserLocation struct {
ID int64
LocationID int64
UserID int64
JoinedOn time.Time
}
type UserSetting struct {
ID int64
UserID int64
PreferredLocationTypes sql.NullString
PreferredDistance int32
PrimaryCity sql.NullString
PrimaryState sql.NullString
PrimaryZipCode sql.NullString
PrimaryLat sql.NullFloat64
PrimaryLong sql.NullFloat64
NotifyComments bool
NotifyEvents bool
NotifyRecommendations bool
NotificationFollowerActivity bool
CreatedAt sql.NullTime
UpdatedAt sql.NullTime
}