From c4958abd7bb51a82a97a0e59d00cbf504ac8619e Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 23 Dec 2018 20:29:20 +0100 Subject: [PATCH] Move schema to json --- Admin/Install/db.json | 130 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 Admin/Install/db.json diff --git a/Admin/Install/db.json b/Admin/Install/db.json new file mode 100644 index 0000000..e341fd5 --- /dev/null +++ b/Admin/Install/db.json @@ -0,0 +1,130 @@ +{ + "marketing_promotion": { + "name": "marketing_promotion", + "fields": { + "marketing_promotion_id": { + "name": "marketing_promotion_id", + "type": "INT", + "null": false, + "primary": true, + "autoincrement": true + }, + "marketing_promotion_name": { + "name": "marketing_promotion_name", + "type": "VARCHAR(255)", + "null": false + }, + "marketing_promotion_description": { + "name": "marketing_promotion_description", + "type": "TEXT", + "null": true + }, + "marketing_promotion_calendar": { + "name": "marketing_promotion_calendar", + "type": "INT", + "null": false, + "foreignTable": "calendar", + "foreignKey": "calendar_id" + }, + "marketing_promotion_costs": { + "name": "marketing_promotion_costs", + "type": "INT", + "null": false + }, + "marketing_promotion_budget": { + "name": "marketing_promotion_budget", + "type": "INT", + "null": false + }, + "marketing_promotion_earnings": { + "name": "marketing_promotion_earnings", + "type": "INT", + "null": false + }, + "marketing_promotion_start": { + "name": "marketing_promotion_start", + "type": "DATETIME", + "null": false + }, + "marketing_promotion_end": { + "name": "marketing_promotion_end", + "type": "DATETIME", + "null": false + }, + "marketing_promotion_progress": { + "name": "marketing_promotion_progress", + "type": "INT", + "null": false + }, + "marketing_promotion_progress_type": { + "name": "marketing_promotion_progress_type", + "type": "INT", + "null": false + }, + "marketing_promotion_created_at": { + "name": "marketing_promotion_created_at", + "type": "DATETIME", + "null": false + }, + "marketing_promotion_created_by": { + "name": "marketing_promotion_created_by", + "type": "INT", + "null": false, + "foreignTable": "account", + "foreignKey": "account_id" + } + } + }, + "marketing_promotion_media": { + "name": "marketing_promotion_media", + "fields": { + "marketing_promotion_media_id": { + "name": "marketing_promotion_media_id", + "type": "INT", + "null": false, + "primary": true, + "autoincrement": true + }, + "marketing_promotion_media_src": { + "name": "marketing_promotion_media_src", + "type": "INT", + "null": false, + "foreignTable": "marketing_promotion", + "foreignKey": "marketing_promotion_id" + }, + "marketing_promotion_media_dst": { + "name": "marketing_promotion_media_dst", + "type": "INT", + "null": false, + "foreignTable": "media", + "foreignKey": "media_id" + } + } + }, + "marketing_promotion_task_relation": { + "name": "marketing_promotion_task_relation", + "fields": { + "marketing_promotion_task_relation_id": { + "name": "marketing_promotion_task_relation_id", + "type": "INT", + "null": false, + "primary": true, + "autoincrement": true + }, + "marketing_promotion_task_relation_src": { + "name": "marketing_promotion_task_relation_src", + "type": "INT", + "null": false, + "foreignTable": "task", + "foreignKey": "task_id" + }, + "marketing_promotion_task_relation_dst": { + "name": "marketing_promotion_task_relation_dst", + "type": "INT", + "null": false, + "foreignTable": "marketing_promotion", + "foreignKey": "marketing_promotion_id" + } + } + } +} \ No newline at end of file