We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a8992b commit a0bbb1bCopy full SHA for a0bbb1b
models/models.go
@@ -0,0 +1,33 @@
1
+package models
2
+
3
+import "time"
4
5
+type User struct {
6
+ ID int `db:"id"`
7
+ Name string `db:"name"`
8
+ CreatedAt time.Time `db:"created_at"`
9
+}
10
11
+type Hashtag struct {
12
13
14
15
16
17
+type Project struct {
18
19
20
+ Slug string `db:"slug"`
21
+ Description string `db:"description"`
22
23
24
25
+type ProjectHashtag struct {
26
+ HashtagID int `db:"hashtag_id"`
27
+ ProjectID int `db:"project_id"`
28
29
30
+type UserProject struct {
31
32
+ UserID int `db:"user_id"`
33
models/project.go
0 commit comments