diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-10-27 01:32:19 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-10-27 01:42:51 +0900 |
| commit | 469e469dd3f77bc8cd22bbcd87017eb69569ac23 (patch) | |
| tree | b8f83ed851d9072bb7f4e5c5215cf0ab9afe56b2 /backend/db/models.go | |
| parent | ce9f81abd531707b7341a5d92544954ab18ac390 (diff) | |
| download | feedaka-469e469dd3f77bc8cd22bbcd87017eb69569ac23.tar.gz feedaka-469e469dd3f77bc8cd22bbcd87017eb69569ac23.tar.zst feedaka-469e469dd3f77bc8cd22bbcd87017eb69569ac23.zip | |
feat(backend): Create users table
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 } |
