Skip to content

Commit

Permalink
db: update schema and temporary user data
Browse files Browse the repository at this point in the history
  • Loading branch information
RTUnreal committed May 14, 2024
1 parent d5eb80c commit 92dea09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,7 @@ CREATE TABLE user(
username VARCHAR(20) NOT NULL UNIQUE,
password VARCHAR(20) NOT NULL,
plan ENUM('premium', 'regular') NOT NULL,
created DATETIME NOT NULL
created DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);

INSERT INTO user(username,password, plan) VALUES ('unreal', 'hunter1', 'regular');

0 comments on commit 92dea09

Please sign in to comment.