2022-12-09 17:31:07 +01:00
|
|
|
CREATE TABLE IF NOT EXISTS usager (
|
|
|
|
email VARCHAR ( 100 ) UNIQUE NOT NULL,
|
|
|
|
password VARCHAR ( 255 ) NOT NULL,
|
2022-12-14 16:38:46 +01:00
|
|
|
salt VARCHAR (255),
|
2022-12-09 17:31:07 +01:00
|
|
|
lastname VARCHAR ( 255 ) NOT NULL,
|
|
|
|
firstname VARCHAR ( 255 ) NOT NULL
|
|
|
|
);
|
2022-12-14 16:38:46 +01:00
|
|
|
INSERT INTO usager (email, password, salt, lastname, firstname) VALUES
|
|
|
|
('test1@test.com', '8ad4025044b77ae6a5e3fcf99e53e44b15db9a4ecf468be21cbc6b9fbdae6d9f', 'cesaltestunexemple', 'Locke', 'John'),
|
|
|
|
('test3@test.com', '504ae1c3e2f5fdaf41f868164dabcef21e17059f5f388b452718a1ce92692c67', 'cesaltestunautreexemple', 'Dupont', 'Henri');
|
|
|
|
|
2022-12-09 17:31:07 +01:00
|
|
|
INSERT INTO usager (email, password, lastname, firstname) VALUES
|
2022-12-16 16:49:24 +01:00
|
|
|
('test4@test.com', '$2a$12$91AHN7WFXieeadvUfZ88mO.9N7oS5adeXbdERnRno9oLAbqqDW4IG', 'Durand', 'Isabelle'),
|
2022-12-14 16:38:46 +01:00
|
|
|
('test2@test.com', '50626fa21f45a275cea0efff13ff78fd02234cade322da08b7191c7e9150141d', 'Dubois', 'Angela');
|
2022-12-09 17:31:07 +01:00
|
|
|
GRANT ALL PRIVILEGES ON DATABASE usager TO lasql
|