-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
80 lines (72 loc) · 1.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
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.27.0
package main
import (
"github.com/jackc/pgx/v5/pgtype"
)
type BoardDatum struct {
ID int32
Title string
AllowEditing pgtype.Bool
AllowDeleting pgtype.Bool
EditWindow pgtype.Int4
TotalMembers pgtype.Int4
TotalThreads pgtype.Int4
TotalThreadPosts pgtype.Int4
}
type Member struct {
Cookie pgtype.Text
DateJoined pgtype.Timestamptz
Email string
ID int64
IsAdmin pgtype.Bool
LastPost pgtype.Timestamp
LastView pgtype.Timestamp
TotalThreadPosts pgtype.Int4
TotalThreads pgtype.Int4
}
type MemberProfile struct {
ID int64
MemberID int64
Location pgtype.Text
Pronouns pgtype.Text
PreferredName pgtype.Text
ProperName pgtype.Text
PhotoUrl pgtype.Text
Timezone pgtype.Text
Bio pgtype.Text
}
type Thread struct {
ID int64
MemberID int64
Subject string
DatePosted pgtype.Timestamptz
FirstPostID pgtype.Int4
Posts pgtype.Int4
Views pgtype.Int4
Sticky pgtype.Bool
Locked pgtype.Bool
LastMemberID int64
DateLastPosted pgtype.Timestamptz
Indexed bool
Edited bool
Deleted bool
}
type ThreadMember struct {
MemberID int64
ThreadID int64
Undot bool
DatePosted pgtype.Timestamp
LastViewPosts int32
}
type ThreadPost struct {
ID int64
ThreadID int64
DatePosted pgtype.Timestamptz
MemberID int64
Indexed bool
Edited bool
Deleted bool
Body pgtype.Text
}