Skip to content

Commit

Permalink
#Add User struct and database crud methods
Browse files Browse the repository at this point in the history
  • Loading branch information
JonyBepary committed Oct 27, 2023
1 parent 0636421 commit c105ea4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/model/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c105ea4

Please sign in to comment.