oms-Editor/Admin/Install/db.json

103 lines
3.1 KiB
JSON
Executable File

{
"editor_doc": {
"name": "editor_doc",
"fields": {
"editor_doc_id": {
"name": "editor_doc_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"editor_doc_title": {
"name": "editor_doc_title",
"type": "VARCHAR(255)",
"null": false
},
"editor_doc_plain": {
"name": "editor_doc_plain",
"type": "TEXT",
"null": false
},
"editor_doc_content": {
"name": "editor_doc_content",
"type": "TEXT",
"null": false
},
"editor_doc_virtual": {
"name": "editor_doc_virtual",
"type": "VARCHAR(255)",
"null": false
},
"editor_doc_created_by": {
"name": "editor_doc_created_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"editor_doc_created_at": {
"name": "editor_doc_created_at",
"type": "DATETIME",
"null": false
},
"editor_doc_visible": {
"name": "editor_doc_visible",
"type": "TINYINT",
"null": false
}
}
},
"editor_doc_tag": {
"name": "editor_doc_tag",
"fields": {
"editor_doc_tag_id": {
"name": "editor_doc_tag_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"editor_doc_tag_dst": {
"name": "editor_doc_tag_dst",
"type": "INT",
"null": false,
"foreignTable": "editor_doc",
"foreignKey": "editor_doc_id"
},
"editor_doc_tag_src": {
"name": "editor_doc_tag_src",
"type": "INT",
"null": false,
"foreignTable": "tag",
"foreignKey": "tag_id"
}
}
},
"editor_doc_media": {
"name": "editor_doc_media",
"fields": {
"editor_doc_media_id": {
"name": "editor_doc_media_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"editor_doc_media_src": {
"name": "editor_doc_media_src",
"type": "INT",
"null": false,
"foreignTable": "editor_doc",
"foreignKey": "editor_doc_id"
},
"editor_doc_media_dst": {
"name": "editor_doc_media_dst",
"type": "INT",
"null": false,
"foreignTable": "media",
"foreignKey": "media_id"
}
}
}
}