diff options
Diffstat (limited to 'backend/db/models.go')
| -rw-r--r-- | backend/db/models.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backend/db/models.go b/backend/db/models.go index 94ab9c0..81fcd0c 100644 --- a/backend/db/models.go +++ b/backend/db/models.go @@ -4,6 +4,10 @@ package db +import ( + "database/sql" +) + type Article struct { ID int64 FeedID int64 @@ -19,4 +23,12 @@ type Feed struct { Title string FetchedAt string IsSubscribed int64 + UserID sql.NullInt64 +} + +type User struct { + ID int64 + Username string + PasswordHash string + CreatedAt string } |
