-
Notifications
You must be signed in to change notification settings - Fork 1
/
sql.go
65 lines (57 loc) · 1.22 KB
/
sql.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
package main
type Blogroll struct {
ID uint `gorm:"primaryKey"`
Date string // TODO: use time.Time
Description string
Title string
Link string `gorm:"unique"`
BlogrollId string
}
type Feed struct {
ID uint `gorm:"primaryKey"`
Date string // TODO: use time.Time
Description string
Title string
FeedLink string
FeedId string
FeedType string
IsPodcast bool
IsNoarchive bool
}
type Post struct {
ID uint `gorm:"primaryKey"`
Date string // TODO: use time.Time
Description string
Title string
FeedId string
PostLink string
Guid string
}
type PostsByCategory struct {
ID uint `gorm:"primaryKey"`
Category string
Link string
}
type PostsByLanguage struct {
ID uint `gorm:"primaryKey"`
Language string
Link string
}
type FeedsByCategory struct {
ID uint `gorm:"primaryKey"`
Category string
Link string
}
type FeedsByLanguage struct {
ID uint `gorm:"primaryKey"`
Language string
Link string
}
type Link struct {
ID uint `gorm:"primaryKey"`
SourceType int
SourceUrl string
DestinationType int
DestinationUrl string
LinkType string
}