From d84b7051fb4d3176c411a45b0b065ea6d4499b2d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 8 May 2021 18:22:28 +0200 Subject: [PATCH] Add migration script --- docs/db_struct.sql | 18 ++++++++++++++++++ docs/migration.sql | 18 +++++++++++++++++- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/docs/db_struct.sql b/docs/db_struct.sql index 178dc8a..37781a0 100644 --- a/docs/db_struct.sql +++ b/docs/db_struct.sql @@ -271,3 +271,21 @@ CREATE TABLE `forez_presence` ( `month` INT NULL, `day` INT NULL, PRIMARY KEY (`id`)); + +CREATE TABLE `comunic_admin` ( + `id` INT NOT NULL AUTO_INCREMENT, + `time_create` INT NULL, + `name` VARCHAR(45) NULL, + `email` VARCHAR(45) NULL, + `reset_token` VARCHAR(255) NULL, + `reset_token_expire` INT NULL, + PRIMARY KEY (`id`)); + + +CREATE TABLE `comunic_admin_key` ( + `id` INT NOT NULL, + `admin_id` INT NULL, + `name` VARCHAR(45) NULL, + `time_add` INT NULL, + `key` TEXT NULL, + PRIMARY KEY (`id`)); \ No newline at end of file diff --git a/docs/migration.sql b/docs/migration.sql index 105f2e9..6dd7003 100644 --- a/docs/migration.sql +++ b/docs/migration.sql @@ -1 +1,17 @@ --- Nothing yet \ No newline at end of file +-- Comunic admin +CREATE TABLE `comunic_admin` ( + `id` INT NOT NULL AUTO_INCREMENT, + `time_create` INT NULL, + `name` VARCHAR(45) NULL, + `email` VARCHAR(45) NULL, + `reset_token` VARCHAR(255) NULL, + `reset_token_expire` INT NULL, + PRIMARY KEY (`id`)); + +CREATE TABLE `comunic_admin_key` ( + `id` INT NOT NULL, + `admin_id` INT NULL, + `name` VARCHAR(45) NULL, + `time_add` INT NULL, + `key` TEXT NULL, + PRIMARY KEY (`id`));