oms-Accounting/Admin/Install/db.json
2021-02-20 10:59:06 +01:00

263 lines
8.7 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_name": {
"name": "accounting_account_name",
"type": "VARCHAR(50)",
"null": false
},
"accounting_account_description": {
"name": "accounting_account_description",
"type": "VARCHAR(255)",
"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_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_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_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_batch": {
"name": "accounting_posting_batch",
"type": "INT",
"null": false,
"foreignTable": "accounting_batch",
"foreignKey": "accounting_batch_id"
},
"accounting_posting_receipt": {
"name": "accounting_posting_receipt",
"type": "INT",
"default": null,
"null": true
},
"accounting_posting_receipt_ext": {
"name": "accounting_posting_receipt_ext",
"type": "INT",
"default": null,
"null": true
},
"accounting_posting_price": {
"name": "accounting_posting_price",
"type": "BIGINT",
"null": false
}
}
},
"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_type": {
"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_value": {
"name": "accounting_posting_ele_value",
"type": "BIGINT",
"null": false
},
"accounting_posting_ele_tax": {
"name": "accounting_posting_ele_tax",
"type": "INT",
"null": false
}
}
}
}