init project cleaned
This commit is contained in:
13
migrations/2022-07-20-084320_create_users/up.sql
Normal file
13
migrations/2022-07-20-084320_create_users/up.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
create table users(
|
||||
id SERIAL PRIMARY KEY,
|
||||
username VARCHAR(255) NOT NULL,
|
||||
password VARCHAR(255) NOT NULL,
|
||||
salt VARCHAR(255) NOT NULL,
|
||||
image VARCHAR(255) NOT NULL DEFAULT '/static/img/default_user.svg',
|
||||
email VARCHAR(255) NOT NULL DEFAULT '',
|
||||
google VARCHAR(255) NOT NULL DEFAULT '',
|
||||
email_valid VARCHAR(255) NOT NULL DEFAULT '',
|
||||
email_valid VARCHAR(255) NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
insert into users(username, password, salt) values ('adminkey', '', '');
|
||||
Reference in New Issue
Block a user