From c105ea439c5c9086650e829ad061a451ac5a8398 Mon Sep 17 00:00:00 2001 From: Sohel Ahmed Jony Date: Sat, 28 Oct 2023 02:17:25 +0600 Subject: [PATCH] #Add User struct and database crud methods --- internal/model/user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/model/user.go b/internal/model/user.go index fa41e25..25f76d5 100644 --- a/internal/model/user.go +++ b/internal/model/user.go @@ -17,11 +17,11 @@ func (s *User) SaveUserData() error { defer db.Close() str := ` CREATE TABLE IF NOT EXISTS USER ( - UserName VARCHAR(128) PRIMARY KEY , + UserName VARCHAR(128) PRIMARY KEY , Password VARCHAR(128) NOT NULL, Email VARCHAR(128) , ProfilePicUrl TEXT , - AccountTime INTEGER, + AccountTime INTEGER, BirthDate TEXT , Gender TEXT , LastEdit INTEGER)