oms-QA/Admin/Install/db.json

300 lines
9.3 KiB
JSON
Executable File

{
"qa_app": {
"name": "qa_app",
"fields": {
"qa_app_id": {
"name": "qa_app_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"qa_app_name": {
"name": "qa_app_name",
"type": "VARCHAR(255)",
"default": null
},
"qa_app_unit": {
"name": "qa_app_unit",
"type": "INT",
"default": null,
"null": true,
"foreignTable": "unit",
"foreignKey": "unit_id"
}
}
},
"qa_question": {
"name": "qa_question",
"fields": {
"qa_question_id": {
"name": "qa_question_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"qa_question_status": {
"name": "qa_question_status",
"type": "INT",
"null": false
},
"qa_question_title": {
"name": "qa_question_title",
"type": "VARCHAR(255)",
"null": false
},
"qa_question_language": {
"name": "qa_question_language",
"type": "VARCHAR(3)",
"null": false
},
"qa_question_question": {
"name": "qa_question_question",
"type": "TEXT",
"null": false
},
"qa_question_question_raw": {
"name": "qa_question_question_raw",
"type": "TEXT",
"null": false
},
"qa_question_created_at": {
"name": "qa_question_created_at",
"type": "DATETIME",
"null": false
},
"qa_question_created_by": {
"name": "qa_question_created_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"qa_question_app": {
"name": "qa_question_app",
"type": "INT",
"null": false,
"foreignTable": "qa_app",
"foreignKey": "qa_app_id"
}
}
},
"qa_question_media": {
"name": "qa_question_media",
"fields": {
"qa_question_media_id": {
"name": "qa_question_media_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"qa_question_media_src": {
"name": "qa_question_media_src",
"type": "INT",
"null": false,
"foreignTable": "qa_question",
"foreignKey": "qa_question_id"
},
"qa_question_media_dst": {
"name": "qa_question_media_dst",
"type": "INT",
"null": false,
"foreignTable": "media",
"foreignKey": "media_id"
}
}
},
"qa_question_vote": {
"name": "qa_question_vote",
"fields": {
"qa_question_vote_id": {
"name": "qa_question_vote_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"qa_question_vote_question": {
"name": "qa_question_vote_question",
"type": "INT",
"null": false,
"foreignTable": "qa_question",
"foreignKey": "qa_question_id"
},
"qa_question_vote_created_by": {
"name": "qa_question_vote_created_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"qa_question_vote_created_for": {
"name": "qa_question_vote_created_for",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"qa_question_vote_score": {
"name": "qa_question_vote_score",
"type": "TINYINT",
"null": false
},
"qa_question_vote_created_at": {
"name": "qa_question_vote_created_at",
"type": "DATETIME",
"null": false
}
}
},
"qa_tag": {
"name": "qa_tag",
"fields": {
"qa_tag_id": {
"name": "qa_tag_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"qa_tag_dst": {
"name": "qa_tag_dst",
"type": "INT",
"null": false,
"foreignTable": "qa_question",
"foreignKey": "qa_question_id"
},
"qa_tag_src": {
"name": "qa_tag_src",
"type": "INT",
"null": false,
"foreignTable": "tag",
"foreignKey": "tag_id"
}
}
},
"qa_answer": {
"name": "qa_answer",
"fields": {
"qa_answer_id": {
"name": "qa_answer_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"qa_answer_status": {
"name": "qa_answer_status",
"type": "INT",
"default": null,
"null": true
},
"qa_answer_accepted": {
"name": "qa_answer_accepted",
"type": "TINYINT",
"null": false
},
"qa_answer_answer": {
"name": "qa_answer_answer",
"type": "TEXT",
"null": false
},
"qa_answer_answer_raw": {
"name": "qa_answer_answer_raw",
"type": "TEXT",
"null": false
},
"qa_answer_created_at": {
"name": "qa_answer_created_at",
"type": "DATETIME",
"null": false
},
"qa_answer_created_by": {
"name": "qa_answer_created_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"qa_answer_question": {
"name": "qa_answer_question",
"type": "INT",
"default": null,
"null": true,
"foreignTable": "qa_question",
"foreignKey": "qa_question_id"
}
}
},
"qa_answer_media": {
"name": "qa_answer_media",
"fields": {
"qa_answer_media_id": {
"name": "qa_answer_media_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"qa_answer_media_src": {
"name": "qa_answer_media_src",
"type": "INT",
"null": false,
"foreignTable": "qa_answer",
"foreignKey": "qa_answer_id"
},
"qa_answer_media_dst": {
"name": "qa_answer_media_dst",
"type": "INT",
"null": false,
"foreignTable": "media",
"foreignKey": "media_id"
}
}
},
"qa_answer_vote": {
"name": "qa_answer_vote",
"fields": {
"qa_answer_vote_id": {
"name": "qa_answer_vote_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"qa_answer_vote_answer": {
"name": "qa_answer_vote_answer",
"type": "INT",
"null": false,
"foreignTable": "qa_answer",
"foreignKey": "qa_answer_id"
},
"qa_answer_vote_created_by": {
"name": "qa_answer_vote_created_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"qa_answer_vote_created_for": {
"name": "qa_answer_vote_created_for",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"qa_answer_vote_score": {
"name": "qa_answer_vote_score",
"type": "TINYINT",
"null": false
},
"qa_answer_vote_created_at": {
"name": "qa_answer_vote_created_at",
"type": "DATETIME",
"null": false
}
}
}
}