From 469e469dd3f77bc8cd22bbcd87017eb69569ac23 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 27 Oct 2025 01:32:19 +0900 Subject: feat(backend): Create users table --- backend/db/models.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'backend/db/models.go') 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 } -- cgit v1.2.3-70-g09d2