Adds article and feed models
This commit is contained in:
parent
3d24617ede
commit
e6cd27855f
2 changed files with 21 additions and 0 deletions
13
internal/model/article.go
Normal file
13
internal/model/article.go
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
package model
|
||||||
|
|
||||||
|
import "time"
|
||||||
|
|
||||||
|
// TODO: Tag for article?
|
||||||
|
type Article struct {
|
||||||
|
ID int64
|
||||||
|
Name string
|
||||||
|
Url string
|
||||||
|
Read bool
|
||||||
|
ReadAt time.Time
|
||||||
|
FeedID *int64
|
||||||
|
}
|
||||||
8
internal/model/feed.go
Normal file
8
internal/model/feed.go
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
package model
|
||||||
|
|
||||||
|
type Feed struct {
|
||||||
|
ID int64
|
||||||
|
Name string
|
||||||
|
Url string
|
||||||
|
UserID int64
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue