mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-07 22:28:39 +00:00
Move schema to json
This commit is contained in:
parent
a2053c1880
commit
c4958abd7b
130
Admin/Install/db.json
Normal file
130
Admin/Install/db.json
Normal file
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user