oms-Editor/Admin/Install/db.json

220 lines
7.0 KiB
JSON
Executable File

{
"editor_doc_type": {
"name": "editor_doc_type",
"fields": {
"editor_doc_type_id": {
"name": "editor_doc_type_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"editor_doc_type_name": {
"name": "editor_doc_type_name",
"type": "VARCHAR(255)",
"null": false
}
}
},
"editor_doc_type_l11n": {
"name": "editor_doc_type_l11n",
"fields": {
"editor_doc_type_l11n_id": {
"name": "editor_doc_type_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"editor_doc_type_l11n_title": {
"name": "editor_doc_type_l11n_title",
"type": "VARCHAR(255)",
"null": false
},
"editor_doc_type_l11n_type": {
"name": "editor_doc_type_l11n_type",
"type": "INT",
"null": false,
"foreignTable": "editor_doc_type",
"foreignKey": "editor_doc_type_id"
},
"editor_doc_type_l11n_language": {
"name": "editor_doc_type_l11n_language",
"type": "VARCHAR(2)",
"default": null,
"null": true,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"editor_doc": {
"name": "editor_doc",
"fields": {
"editor_doc_id": {
"name": "editor_doc_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"editor_doc_type": {
"name": "editor_doc_type",
"type": "INT",
"null": true,
"foreignTable": "editor_doc_type",
"foreignKey": "editor_doc_type_id"
},
"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_versioned": {
"name": "editor_doc_versioned",
"type": "TINYINT",
"null": false
},
"editor_doc_version": {
"name": "editor_doc_version",
"type": "VARCHAR(50)",
"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"
}
}
},
"editor_doc_versioned": {
"name": "editor_doc_versioned",
"fields": {
"editor_doc_versioned_id": {
"name": "editor_doc_versioned_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"editor_doc_versioned_title": {
"name": "editor_doc_versioned_title",
"type": "VARCHAR(255)",
"null": false
},
"editor_doc_versioned_version": {
"name": "editor_doc_versioned_version",
"type": "VARCHAR(50)",
"null": false
},
"editor_doc_versioned_content": {
"name": "editor_doc_versioned_content",
"type": "TEXT",
"null": false
},
"editor_doc_versioned_plain": {
"name": "editor_doc_versioned_plain",
"type": "TEXT",
"null": false
},
"editor_doc_versioned_doc": {
"name": "editor_doc_versioned_doc",
"type": "INT",
"null": false,
"foreignTable": "editor_doc",
"foreignKey": "editor_doc_id"
},
"editor_doc_versioned_at": {
"name": "editor_doc_versioned_at",
"type": "DATETIME",
"null": false
},
"editor_doc_versioned_by": {
"name": "editor_doc_versioned_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
}
}
}
}