oms-Accounting/Admin/Install/db.json
Dennis Eichhorn 05d1e46ef7 code fixes
2024-03-15 20:24:37 +00:00

541 lines
19 KiB
JSON
Executable File

{
"accounting_account": {
"name": "accounting_account",
"fields": {
"accounting_account_id": {
"name": "accounting_account_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_account_code": {
"name": "accounting_account_code",
"type": "VARCHAR(50)",
"null": false
},
"accounting_account_type": {
"name": "accounting_account_type",
"type": "TINYINT",
"null": false
},
"accounting_account_parent": {
"name": "accounting_account_parent",
"type": "INT",
"default": null,
"null": true
},
"accounting_account_account": {
"name": "accounting_account_account",
"type": "INT",
"default": null,
"null": true,
"foreignTable": "account",
"foreignKey": "account_id"
},
"accounting_account_tax1_account": {
"name": "accounting_account_tax1_account",
"type": "INT",
"default": null,
"null": true,
"foreignTable": "accounting_account",
"foreignKey": "accounting_account_id"
},
"accounting_account_tax2_account": {
"name": "accounting_account_tax2_account",
"type": "INT",
"default": null,
"null": true,
"foreignTable": "accounting_account",
"foreignKey": "accounting_account_id"
},
"accounting_account_unit": {
"name": "accounting_account_unit",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "unit",
"foreignKey": "unit_id"
}
}
},
"accounting_account_l11n": {
"name": "accounting_account_l11n",
"fields": {
"accounting_account_l11n_id": {
"name": "accounting_account_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_account_l11n_title": {
"name": "accounting_account_l11n_title",
"type": "VARCHAR(255)",
"null": false
},
"accounting_account_l11n_account": {
"name": "accounting_account_l11n_account",
"type": "INT(11)",
"null": false,
"foreignTable": "accounting_account",
"foreignKey": "accounting_account_id"
},
"accounting_account_l11n_lang": {
"name": "accounting_account_l11n_lang",
"type": "VARCHAR(2)",
"null": false,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"accounting_costcenter": {
"name": "accounting_costcenter",
"fields": {
"accounting_costcenter_id": {
"name": "accounting_costcenter_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_costcenter_code": {
"name": "accounting_costcenter_code",
"type": "VARCHAR(255)",
"null": false
},
"accounting_costcenter_parent": {
"name": "accounting_costcenter_parent",
"type": "INT",
"default": null,
"null": true
},
"accounting_costcenter_unit": {
"name": "accounting_costcenter_unit",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "unit",
"foreignKey": "unit_id"
}
}
},
"accounting_costcenter_l11n": {
"name": "accounting_costcenter_l11n",
"fields": {
"accounting_costcenter_l11n_id": {
"name": "accounting_costcenter_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_costcenter_l11n_name": {
"name": "accounting_costcenter_l11n_name",
"type": "VARCHAR(255)",
"null": false
},
"accounting_costcenter_l11n_description": {
"name": "accounting_costcenter_l11n_description",
"type": "VARCHAR(255)",
"null": false
},
"accounting_costcenter_l11n_costcenter": {
"name": "accounting_costcenter_l11n_costcenter",
"type": "INT",
"null": false,
"foreignTable": "accounting_costcenter",
"foreignKey": "accounting_costcenter_id"
},
"accounting_costcenter_l11n_language": {
"name": "accounting_costcenter_l11n_language",
"type": "VARCHAR(2)",
"default": null,
"null": true,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"accounting_costobject": {
"name": "accounting_costobject",
"fields": {
"accounting_costobject_id": {
"name": "accounting_costobject_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_costobject_code": {
"name": "accounting_costobject_code",
"type": "VARCHAR(255)",
"null": false
},
"accounting_costobject_parent": {
"name": "accounting_costobject_parent",
"type": "INT",
"default": null,
"null": true
},
"accounting_costobject_unit": {
"name": "accounting_costobject_unit",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "unit",
"foreignKey": "unit_id"
}
}
},
"accounting_costobject_l11n": {
"name": "accounting_costobject_l11n",
"fields": {
"accounting_costobject_l11n_id": {
"name": "accounting_costobject_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_costobject_l11n_name": {
"name": "accounting_costobject_l11n_name",
"type": "VARCHAR(255)",
"null": false
},
"accounting_costobject_l11n_description": {
"name": "accounting_costobject_l11n_description",
"type": "VARCHAR(255)",
"null": false
},
"accounting_costobject_l11n_costobject": {
"name": "accounting_costobject_l11n_costobject",
"type": "INT",
"null": false,
"foreignTable": "accounting_costobject",
"foreignKey": "accounting_costobject_id"
},
"accounting_costobject_l11n_language": {
"name": "accounting_costobject_l11n_language",
"type": "VARCHAR(2)",
"default": null,
"null": true,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"accounting_batch": {
"name": "accounting_batch",
"fields": {
"accounting_batch_id": {
"name": "accounting_batch_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_batch_title": {
"name": "accounting_batch_title",
"type": "VARCHAR(50)",
"null": false
},
"accounting_batch_creator": {
"name": "accounting_batch_creator",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"accounting_batch_created": {
"name": "accounting_batch_created",
"type": "DATETIME",
"null": false
},
"accounting_batch_type": {
"name": "accounting_batch_type",
"type": "TINYINT",
"default": null,
"null": true
}
}
},
"accounting_posting": {
"name": "accounting_posting",
"fields": {
"accounting_posting_id": {
"name": "accounting_posting_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_posting_status": {
"name": "accounting_posting_status",
"type": "TINYINT",
"null": false
},
"accounting_posting_number": {
"name": "accounting_posting_number",
"type": "VARCHAR(255)",
"null": false
},
"accounting_posting_account": {
"name": "accounting_posting_account",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "accounting_account",
"foreignKey": "accounting_account_id"
},
"accounting_posting_paymentterms": {
"@todo": "only install in providing case + then use foreignTable/Key",
"name": "accounting_posting_paymentterms",
"type": "INT",
"null": true,
"default": null
},
"accounting_posting_payment": {
"description": "should this handle the dues?",
"name": "accounting_posting_payment",
"type": "INT",
"null": true,
"default": null
},
"accounting_posting_dun_level": {
"name": "accounting_posting_dun_level",
"type": "TINYINT",
"null": false
},
"accounting_posting_dun_stop": {
"name": "accounting_posting_dun_stop",
"type": "TINYINT(1)",
"null": false
},
"accounting_posting_bill": {
"@todo": "only install in providing case + then use foreignTable/Key",
"name": "accounting_posting_bill",
"type": "INT",
"null": true
},
"accounting_posting_batch": {
"name": "accounting_posting_batch",
"type": "INT",
"null": true,
"foreignTable": "accounting_batch",
"foreignKey": "accounting_batch_id"
},
"accounting_posting_value": {
"name": "accounting_posting_value",
"type": "BIGINT",
"null": false
},
"accounting_posting_createdat": {
"name": "accounting_posting_createdat",
"type": "DATETIME",
"null": false
},
"accounting_posting_createdby": {
"name": "accounting_posting_createdby",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"accounting_posting_performance": {
"name": "accounting_posting_performance",
"type": "DATETIME",
"null": false
},
"accounting_posting_unit": {
"name": "accounting_posting_unit",
"type": "INT",
"null": false,
"foreignTable": "unit",
"foreignKey": "unit_id"
}
}
},
"accounting_posting_note": {
"name": "accounting_posting_note",
"fields": {
"accounting_posting_note_id": {
"name": "accounting_posting_note_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_posting_note_dst": {
"name": "accounting_posting_note_dst",
"type": "INT",
"null": false,
"foreignTable": "editor_doc",
"foreignKey": "editor_doc_id"
},
"accounting_posting_note_src": {
"name": "accounting_posting_note_src",
"type": "INT",
"null": false,
"foreignTable": "accounting_posting",
"foreignKey": "accounting_posting_id"
}
}
},
"accounting_posting_media": {
"name": "accounting_posting_media",
"fields": {
"accounting_posting_media_id": {
"name": "accounting_posting_media_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_posting_media_dst": {
"name": "accounting_posting_media_dst",
"type": "INT",
"null": false,
"foreignTable": "media",
"foreignKey": "media_id"
},
"accounting_posting_media_src": {
"name": "accounting_posting_media_src",
"type": "INT",
"null": false,
"foreignTable": "accounting_posting",
"foreignKey": "accounting_posting_id"
}
}
},
"accounting_posting_eq": {
"name": "accounting_posting_eq",
"description": "Marks posts as equalized credit/debit",
"fields": {
"accounting_posting_eq_id": {
"name": "accounting_posting_eq_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_posting_eq_1": {
"name": "accounting_posting_eq_1",
"type": "INT",
"null": true,
"foreignTable": "accounting_posting",
"foreignKey": "accounting_posting_id"
},
"accounting_posting_eq_2": {
"name": "accounting_posting_eq_2",
"type": "INT",
"null": true,
"foreignTable": "accounting_posting",
"foreignKey": "accounting_posting_id"
}
}
},
"accounting_posting_ele": {
"name": "accounting_posting_ele",
"fields": {
"accounting_posting_ele_id": {
"name": "accounting_posting_ele_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"accounting_posting_ele_status": {
"description": "debit/credit",
"name": "accounting_posting_ele_status",
"type": "TINYINT",
"null": false
},
"accounting_posting_ele_text": {
"description": "debit/credit",
"name": "accounting_posting_ele_text",
"type": "VARCHAR(255)",
"null": false
},
"accounting_posting_ele_type": {
"description": "debit/credit",
"name": "accounting_posting_ele_type",
"type": "TINYINT",
"null": false
},
"accounting_posting_ele_account": {
"name": "accounting_posting_ele_account",
"type": "INT",
"null": false,
"foreignTable": "accounting_account",
"foreignKey": "accounting_account_id"
},
"accounting_posting_ele_cc": {
"name": "accounting_posting_ele_cc",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "accounting_costcenter",
"foreignKey": "accounting_costcenter_id"
},
"accounting_posting_ele_co": {
"name": "accounting_posting_ele_co",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "accounting_costobject",
"foreignKey": "accounting_costobject_id"
},
"accounting_posting_ele_value": {
"name": "accounting_posting_ele_value",
"type": "BIGINT",
"null": false
},
"accounting_posting_ele_tax": {
"name": "accounting_posting_ele_tax",
"type": "INT",
"null": false
},
"accounting_posting_ele_createdat": {
"name": "accounting_posting_ele_createdat",
"type": "DATETIME",
"null": false
},
"accounting_posting_ele_createdby": {
"name": "accounting_posting_ele_createdby",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"accounting_posting_ele_performance": {
"name": "accounting_posting_ele_performance",
"type": "DATETIME",
"null": false
},
"accounting_posting_ele_opposite": {
"description": "Often you have a 1:1 match between credit/debit posting, this speeds it up. Alternatively you have to find the opposite postings through the posting",
"name": "accounting_posting_ele_opposite",
"type": "INT",
"null": false,
"foreignTable": "accounting_posting_ele",
"foreignKey": "accounting_posting_ele_id"
},
"accounting_posting_ele_posting": {
"name": "accounting_posting_ele_posting",
"type": "INT",
"null": false,
"foreignTable": "accounting_posting",
"foreignKey": "accounting_posting_id"
},
"accounting_posting_ele_unit": {
"name": "accounting_posting_ele_unit",
"type": "INT",
"null": false,
"foreignTable": "unit",
"foreignKey": "unit_id"
}
}
}
}