Update: add init db1
This commit is contained in:
parent
f210a7e84b
commit
210b1d317e
1 changed files with 13 additions and 0 deletions
13
backend/init-db1.sql
Normal file
13
backend/init-db1.sql
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
-- Table: users
|
||||
|
||||
CREATE TABLE IF NOT EXISTS users
|
||||
(
|
||||
id serial PRIMARY KEY,
|
||||
email character varying(320) NOT NULL,
|
||||
nickname character varying(50) NOT NULL,
|
||||
hash_pass bytea NOT NULL,
|
||||
salt bytea NOT NULL,
|
||||
is_admin boolean NOT NULL DEFAULT FALSE
|
||||
);
|
||||
|
||||
INSERT INTO users VALUES(0,'admin@admin.admin','Admin',decode('e5ed79b503704ed20a1d250770db68182118de7fe0236db9bbfb0dd9684087d6', 'hex'),decode('7012f69f1ac7c23c5dca498c30fa94527b507cc9e40fab9bae284d1465a37724', 'hex'),TRUE);
|
||||
Loading…
Add table
Add a link
Reference in a new issue