oms-Editor/Admin/Install/db.json

72 lines
2.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_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"
}
}
}
}