-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdatabase.go
67 lines (58 loc) · 1.45 KB
/
database.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
package database
import (
"time"
"github.com/google/uuid"
"github.com/shopspring/decimal"
)
type User struct {
ID string `gorm:"primaryKey"`
Address string
}
type CommentMessage struct {
MessageID uuid.UUID `gorm:"primaryKey"`
Sent bool
ProfileId decimal.Decimal
PubId decimal.Decimal
ContentURI string
ProfileIdPointed decimal.Decimal
PubIdPointed decimal.Decimal
CollectModule string
CollectModuleReturnData string
ReferenceModule string
ReferenceModuleReturnData string
Timestamp decimal.Decimal
}
type FollowMessage struct {
MessageID uuid.UUID `gorm:"primaryKey"`
ProfileId decimal.Decimal
FollowNFT string
Timestamp decimal.Decimal
Sent bool
}
type Clone struct {
Day time.Time `gorm:"primaryKey"`
Count int
Uniques int
Repository string `gorm:"primaryKey"`
}
type View struct {
Day time.Time `gorm:"primaryKey"`
Count int
Uniques int
Repository string `gorm:"primaryKey"`
}
type Path struct {
Path string `gorm:"primaryKey"`
Title string
Count int
Uniques int
Day time.Time `gorm:"primaryKey"`
Repository string `gorm:"primaryKey"`
}
type Referral struct {
Referrer string `gorm:"primaryKey"`
Count int
Uniques int
Day time.Time `gorm:"primaryKey"`
Repository string `gorm:"primaryKey"`
}