eesyphp/example/data/sqlite.init-db.sql

20 lines
551 B
MySQL
Raw Normal View History

2023-02-26 13:15:31 +01:00
CREATE TABLE users (
username text NOT NULL PRIMARY KEY,
name text COLLATE NOCASE NOT NULL,
mail text COLLATE NOCASE,
password text NOT NULL
);
INSERT INTO users (username, name, mail, password) VALUES (
"admin", "Administrator", "admin@example.com",
"$argon2id$v=19$m=65536,t=4,p=1$WTQ0di44NW11MUJ1b3RMQw$+LRAQRaIXE2jhfavNFNuxnEtEUT6tEBz/98pTtD0EnM"
);
2020-04-18 00:51:33 +02:00
CREATE TABLE item (
2020-11-18 18:54:15 +01:00
id INTEGER PRIMARY KEY,
2020-04-18 00:51:33 +02:00
name text COLLATE NOCASE NOT NULL,
date INTEGER,
status text NOT NULL,
2020-11-18 18:54:15 +01:00
description text COLLATE NOCASE NULL
2020-04-18 00:51:33 +02:00
);