-
Notifications
You must be signed in to change notification settings - Fork 0
/
models.go
64 lines (56 loc) · 1.01 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
// Code generated by sqlc. DO NOT EDIT.
package models
import (
"database/sql"
"time"
)
type Channel struct {
ID uint64
CreatedAt time.Time
GuildID uint64
Name string
Kind int16
Position string
}
type Guild struct {
ID uint64
Name string
Picture *string
Type int16
BannedUsers []uint64
Created time.Time
}
type GuildList struct {
UserID uint64
GuildID uint64
Host string
Position string
}
type GuildMember struct {
UserID uint64
GuildID uint64
OwnsGuild bool
Joined time.Time
}
type Message struct {
ID uint64
ChannelID sql.NullInt64
CreatedAt time.Time
ReplyToID sql.NullInt64
AuthorID uint64
EditedAt sql.NullTime
Content string
Override sql.NullString
Attachments []string
}
type User struct {
ID uint64
Username string
Avatar *string
UserStatus int16
Host *string
RemoteID sql.NullInt64
Email *string
PasswordHash []byte
Created time.Time
}