oms-Billing/Admin/Install/db.json
Dennis Eichhorn 0722a5dea0
Some checks failed
Image optimization / general_image_workflow (push) Has been cancelled
CI / general_module_workflow_php (push) Has been cancelled
CI / general_module_workflow_js (push) Has been cancelled
fix permissions
2025-04-02 14:15:04 +00:00

1640 lines
57 KiB
JSON

{
"billing_payment_term": {
"name": "billing_payment_term",
"fields": {
"billing_payment_term_id": {
"name": "billing_payment_term_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_payment_term_code": {
"comment": "In days",
"name": "billing_payment_term_code",
"type": "VARCHAR(100)",
"null": false,
"unique": true
},
"billing_payment_term_due": {
"comment": "In days",
"name": "billing_payment_term_due",
"type": "INT",
"null": false
}
}
},
"billing_payment_term_l11n": {
"name": "billing_payment_term_l11n",
"fields": {
"billing_payment_term_l11n_id": {
"name": "billing_payment_term_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_payment_term_l11n_name": {
"name": "billing_payment_term_l11n_name",
"type": "VARCHAR(255)",
"null": false
},
"billing_payment_term_l11n_term": {
"name": "billing_payment_term_l11n_term",
"type": "INT",
"null": false,
"foreignTable": "billing_payment_term",
"foreignKey": "billing_payment_term_id"
},
"billing_payment_term_l11n_language": {
"name": "billing_payment_term_l11n_language",
"type": "VARCHAR(2)",
"default": null,
"null": true,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"billing_shipping_term": {
"name": "billing_shipping_term",
"fields": {
"billing_shipping_term_id": {
"name": "billing_shipping_term_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_shipping_term_code": {
"comment": "In days",
"name": "billing_shipping_term_code",
"type": "VARCHAR(100)",
"null": false,
"unique": true
}
}
},
"billing_shipping_term_l11n": {
"name": "billing_shipping_term_l11n",
"fields": {
"billing_shipping_term_l11n_id": {
"name": "billing_shipping_term_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_shipping_term_l11n_name": {
"name": "billing_shipping_term_l11n_name",
"type": "VARCHAR(255)",
"null": false
},
"billing_shipping_term_l11n_term": {
"name": "billing_shipping_term_l11n_term",
"type": "INT",
"null": false,
"foreignTable": "billing_shipping_term",
"foreignKey": "billing_shipping_term_id"
},
"billing_shipping_term_l11n_language": {
"name": "billing_shipping_term_l11n_language",
"type": "VARCHAR(2)",
"default": null,
"null": true,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"billing_price": {
"name": "billing_price",
"fields": {
"billing_price_id": {
"name": "billing_price_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_price_name": {
"name": "billing_price_name",
"type": "VARCHAR(255)",
"null": false
},
"billing_price_promocode": {
"name": "billing_price_promocode",
"type": "VARCHAR(50)",
"null": false
},
"billing_price_item": {
"name": "billing_price_item",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_item",
"foreignKey": "itemmgmt_item_id"
},
"billing_price_itemsalesgroup": {
"name": "billing_price_itemsalesgroup",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_price_itemproductgroup": {
"name": "billing_price_itemproductgroup",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_price_itemsegment": {
"name": "billing_price_itemsegment",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_price_itemsection": {
"name": "billing_price_itemsection",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_price_itemtype": {
"name": "billing_price_itemtype",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_price_client": {
"name": "billing_price_client",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
},
"billing_price_clientgroup": {
"name": "billing_price_clientgroup",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
},
"billing_price_clientsegment": {
"name": "billing_price_clientsegment",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
},
"billing_price_clientsection": {
"name": "billing_price_clientsection",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
},
"billing_price_clienttype": {
"name": "billing_price_clienttype",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
},
"billing_price_clientcountry": {
"name": "billing_price_clientcountry",
"type": "VARCHAR(2)",
"null": true,
"default": null,
"foreignTable": "country",
"foreignKey": "country_code2"
},
"billing_price_supplier": {
"name": "billing_price_supplier",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "suppliermgmt_supplier",
"foreignKey": "suppliermgmt_supplier_id"
},
"billing_price_unit": {
"name": "billing_price_unit",
"type": "INT",
"null": true,
"default": null
},
"billing_price_type": {
"name": "billing_price_type",
"type": "TINYINT(1)",
"null": false
},
"billing_price_status": {
"name": "billing_price_status",
"type": "TINYINT(1)",
"null": false
},
"billing_price_quantity": {
"name": "billing_price_quantity",
"type": "BIGINT",
"null": false
},
"billing_price_price": {
"name": "billing_price_price",
"type": "BIGINT",
"null": false
},
"billing_price_price_new": {
"name": "billing_price_price_new",
"type": "BIGINT",
"null": false
},
"billing_price_discount": {
"name": "billing_price_discount",
"type": "BIGINT",
"null": false
},
"billing_price_discountp": {
"name": "billing_price_discountp",
"type": "BIGINT",
"null": false
},
"billing_price_bonus": {
"name": "billing_price_bonus",
"type": "BIGINT",
"null": false
},
"billing_price_multiply": {
"name": "billing_price_multiply",
"type": "TINYINT(1)",
"null": false
},
"billing_price_currency": {
"name": "billing_price_currency",
"type": "VARCHAR(3)",
"null": true,
"default": null,
"foreignTable": "currency",
"foreignKey": "currency_code"
},
"billing_price_start": {
"name": "billing_price_start",
"type": "DATETIME",
"null": true,
"default": null
},
"billing_price_end": {
"name": "billing_price_end",
"type": "DATETIME",
"null": true,
"default": null
}
}
},
"billing_tax": {
"name": "billing_tax",
"fields": {
"billing_tax_id": {
"name": "billing_tax_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_tax_client_code": {
"name": "billing_tax_client_code",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "clientmgmt_attr_value",
"foreignKey": "clientmgmt_attr_value_id"
},
"billing_tax_supplier_code": {
"name": "billing_tax_supplier_code",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "suppliermgmt_attr_value",
"foreignKey": "suppliermgmt_attr_value_id"
},
"billing_tax_item_code": {
"name": "billing_tax_item_code",
"type": "INT",
"null": false,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_tax_code": {
"comment": "tax abbr. code",
"name": "billing_tax_code",
"type": "VARCHAR(10)",
"null": false
},
"billing_tax_type": {
"comment": "sales/purchase",
"name": "billing_tax_type",
"type": "TINYINT",
"null": false
},
"billing_tax_account": {
"name": "billing_tax_account",
"type": "VARCHAR(10)",
"null": false,
"default": null
},
"billing_tax_tax1_account": {
"name": "billing_tax_tax1_account",
"type": "VARCHAR(10)",
"null": false,
"default": null
},
"billing_tax_tax2_account": {
"name": "billing_tax_tax2_account",
"type": "VARCHAR(10)",
"null": false,
"default": null
},
"billing_tax_refund_account": {
"name": "billing_tax_refund_account",
"type": "VARCHAR(10)",
"null": false,
"default": null
},
"billing_tax_discount_account": {
"name": "billing_tax_discount_account",
"type": "VARCHAR(10)",
"null": false,
"default": null
},
"billing_tax_cashback_account": {
"name": "billing_tax_cashback_account",
"type": "VARCHAR(10)",
"null": false,
"default": null
},
"billing_tax_overpayment_account": {
"name": "billing_tax_overpayment_account",
"type": "VARCHAR(10)",
"null": false,
"default": null
},
"billing_tax_underpayment_account": {
"name": "billing_tax_underpayment_account",
"type": "VARCHAR(10)",
"null": false,
"default": null
},
"billing_tax_min_price": {
"name": "billing_tax_min_price",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_tax_max_price": {
"name": "billing_tax_max_price",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_tax_start": {
"name": "billing_tax_start",
"type": "DATETIME",
"null": true,
"default": null
},
"billing_tax_end": {
"name": "billing_tax_end",
"type": "DATETIME",
"null": true,
"default": null
}
}
},
"billing_type": {
"name": "billing_type",
"fields": {
"billing_type_id": {
"name": "billing_type_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_type_name": {
"name": "billing_type_name",
"type": "VARCHAR(50)",
"null": false
},
"billing_type_number_format": {
"name": "billing_type_number_format",
"type": "VARCHAR(255)",
"null": false
},
"billing_type_transfer_type": {
"comment": "What kind of bill is it?",
"name": "billing_type_transfer_type",
"type": "TINYINT",
"null": false
},
"billing_type_default_template": {
"name": "billing_type_default_template",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "media",
"foreignKey": "media_id"
},
"billing_type_transfer_stock": {
"comment": "Does this bill type move stock?",
"name": "billing_type_transfer_stock",
"type": "TINYINT(1)",
"null": false
},
"billing_type_accounting": {
"comment": "Is this bill relevant for accounting",
"name": "billing_type_accounting",
"type": "TINYINT(1)",
"null": false
},
"billing_type_sign": {
"comment": "1 = from->to direction, -1 = to->from direction = credit note",
"name": "billing_type_sign",
"type": "TINYINT(1)",
"null": false
},
"billing_type_email": {
"comment": "send email on archive",
"name": "billing_type_email",
"type": "TINYINT(1)",
"null": false
},
"billing_type_account_format": {
"name": "billing_type_account_format",
"type": "VARCHAR(255)",
"null": false
},
"billing_type_is_template": {
"comment": "What kind of bill is it?",
"name": "billing_type_is_template",
"type": "TINYINT(1)",
"null": false
}
}
},
"billing_bill_type_media_rel": {
"name": "billing_bill_type_media_rel",
"fields": {
"billing_bill_type_media_rel_id": {
"name": "billing_bill_type_media_rel_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_bill_type_media_rel_src": {
"name": "billing_bill_type_media_rel_src",
"type": "INT",
"null": false,
"foreignTable": "billing_type",
"foreignKey": "billing_type_id"
},
"billing_bill_type_media_rel_dst": {
"name": "billing_bill_type_media_rel_dst",
"type": "INT",
"null": false,
"foreignTable": "media",
"foreignKey": "media_id"
}
}
},
"billing_type_l11n": {
"name": "billing_type_l11n",
"fields": {
"billing_type_l11n_id": {
"name": "billing_type_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_type_l11n_name": {
"name": "billing_type_l11n_name",
"type": "VARCHAR(255)",
"null": false
},
"billing_type_l11n_type": {
"name": "billing_type_l11n_type",
"type": "INT",
"null": false,
"foreignTable": "billing_type",
"foreignKey": "billing_type_id"
},
"billing_type_l11n_language": {
"name": "billing_type_l11n_language",
"type": "VARCHAR(2)",
"default": null,
"null": true,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"billing_bill": {
"name": "billing_bill",
"fields": {
"billing_bill_id": {
"name": "billing_bill_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_bill_sequence": {
"name": "billing_bill_sequence",
"type": "INT",
"null": false,
"multi_autoincrement": [
"billing_bill_unit",
"billing_bill_type"
]
},
"billing_bill_number": {
"name": "billing_bill_number",
"type": "VARCHAR(255)",
"null": false
},
"billing_bill_external": {
"name": "billing_bill_external",
"type": "VARCHAR(255)",
"null": false
},
"billing_bill_info": {
"name": "billing_bill_info",
"type": "TEXT",
"null": false
},
"billing_bill_status": {
"name": "billing_bill_status",
"type": "TINYINT",
"null": false
},
"billing_bill_paymentstatus": {
"name": "billing_bill_paymentstatus",
"type": "TINYINT",
"null": false
},
"billing_bill_type": {
"name": "billing_bill_type",
"type": "INT",
"null": false,
"foreignTable": "billing_type",
"foreignKey": "billing_type_id"
},
"billing_bill_tag": {
"name": "billing_bill_tag",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "tag",
"foreignKey": "tag_id"
},
"billing_bill_template": {
"name": "billing_bill_template",
"type": "TINYINT(1)",
"null": false
},
"billing_bill_archived": {
"name": "billing_bill_archived",
"type": "TINYINT(1)",
"null": false
},
"billing_bill_account_no": {
"name": "billing_bill_account_no",
"type": "VARCHAR(50)",
"null": false
},
"billing_bill_tax_type": {
"name": "billing_bill_tax_type",
"type": "INT",
"null": true,
"default": null
},
"billing_bill_supplier": {
"name": "billing_bill_supplier",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "suppliermgmt_supplier",
"foreignKey": "suppliermgmt_supplier_id"
},
"billing_bill_client": {
"name": "billing_bill_client",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
},
"billing_bill_header": {
"name": "billing_bill_header",
"type": "TEXT",
"null": false
},
"billing_bill_footer": {
"name": "billing_bill_footer",
"type": "TEXT",
"null": false
},
"billing_bill_stock_from": {
"name": "billing_bill_stock_from",
"type": "INT",
"null": true,
"default": null
},
"billing_bill_stock_to": {
"name": "billing_bill_stock_to",
"type": "INT",
"null": true,
"default": null
},
"billing_bill_shipTo": {
"name": "billing_bill_shipTo",
"type": "VARCHAR(255)",
"null": false
},
"billing_bill_shipFAO": {
"name": "billing_bill_shipFAO",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_shipAddr": {
"name": "billing_bill_shipAddr",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_shipCity": {
"name": "billing_bill_shipCity",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_shipZip": {
"name": "billing_bill_shipZip",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_shipCountry": {
"name": "billing_bill_shipCountry",
"type": "VARCHAR(3)",
"default": null,
"null": true
},
"billing_bill_billTo": {
"name": "billing_bill_billTo",
"type": "VARCHAR(255)",
"null": false
},
"billing_bill_billFAO": {
"name": "billing_bill_billFAO",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_billAddr": {
"name": "billing_bill_billAddr",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_billCity": {
"name": "billing_bill_billCity",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_billZip": {
"name": "billing_bill_billZip",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_billCountry": {
"name": "billing_bill_billCountry",
"type": "VARCHAR(3)",
"default": null,
"null": true
},
"billing_bill_created_at": {
"name": "billing_bill_created_at",
"type": "DATETIME",
"null": false
},
"billing_bill_date": {
"name": "billing_bill_date",
"type": "DATETIME",
"default": null,
"null": true
},
"billing_bill_performance_date": {
"name": "billing_bill_performance_date",
"type": "DATETIME",
"default": null,
"null": true
},
"billing_bill_created_by": {
"name": "billing_bill_created_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"billing_bill_netprofit": {
"name": "billing_bill_netprofit",
"type": "BIGINT",
"null": false
},
"billing_bill_netcosts": {
"name": "billing_bill_netcosts",
"type": "BIGINT",
"null": false
},
"billing_bill_netsales": {
"name": "billing_bill_netsales",
"type": "BIGINT",
"null": false
},
"billing_bill_grosssales": {
"name": "billing_bill_grosssales",
"type": "BIGINT",
"null": false
},
"billing_bill_netdiscount": {
"name": "billing_bill_netdiscount",
"type": "BIGINT",
"null": false
},
"billing_bill_taxp": {
"name": "billing_bill_taxp",
"type": "BIGINT",
"null": false
},
"billing_bill_currency": {
"name": "billing_bill_currency",
"type": "VARCHAR(3)",
"null": false
},
"billing_bill_language": {
"name": "billing_bill_language",
"type": "VARCHAR(3)",
"null": true,
"default": null,
"foreignTable": "language",
"foreignKey": "language_639_1"
},
"billing_bill_fiaccount": {
"name": "billing_bill_fiaccount",
"type": "VARCHAR(10)",
"null": false
},
"billing_bill_rep": {
"name": "billing_bill_rep",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "sales_rep",
"foreignKey": "sales_rep_id"
},
"billing_bill_referral": {
"name": "billing_bill_referral",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "account",
"foreignKey": "account_id"
},
"billing_bill_reference": {
"name": "billing_bill_reference",
"type": "INT",
"null": false
},
"billing_bill_accsegment": {
"comment": "attribute values",
"name": "billing_bill_accsegment",
"type": "INT",
"null": true,
"default": null
},
"billing_bill_accsection": {
"comment": "attribute values",
"name": "billing_bill_accsection",
"type": "INT",
"null": true,
"default": null
},
"billing_bill_accgroup": {
"comment": "attribute values",
"name": "billing_bill_accgroup",
"type": "INT",
"null": true,
"default": null
},
"billing_bill_acctype": {
"comment": "attribute values",
"name": "billing_bill_acctype",
"type": "INT",
"null": true,
"default": null
},
"billing_bill_payment": {
"comment": "should this handle the dues?",
"name": "billing_bill_payment",
"type": "INT",
"null": false
},
"billing_bill_payment_text": {
"name": "billing_bill_payment_text",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_paymentterms": {
"name": "billing_bill_paymentterms",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "billing_payment_term",
"foreignKey": "billing_payment_term_id"
},
"billing_bill_paymentterms_text": {
"name": "billing_bill_paymentterms_text",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_ship_type": {
"name": "billing_bill_ship_type",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "billing_shipping_term",
"foreignKey": "billing_shipping_term_id"
},
"billing_bill_ship_text": {
"name": "billing_bill_ship_text",
"type": "VARCHAR(255)",
"default": null,
"null": true
},
"billing_bill_unit": {
"name": "billing_bill_unit",
"type": "INT",
"null": false,
"foreignTable": "unit",
"foreignKey": "unit_id"
},
"billing_bill_approval": {
"name": "billing_bill_approval",
"type": "INT",
"null": false
}
}
},
"billing_subscription": {
"comment": "https://learn.microsoft.com/en-us/graph/outlook-schedule-recurring-events",
"name": "billing_subscription",
"fields": {
"billing_subscription_id": {
"name": "billing_subscription_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_subscription_status": {
"name": "billing_subscription_status",
"type": "TINYINT(1)",
"null": false
},
"billing_subscription_start": {
"name": "billing_subscription_start",
"type": "DATETIME",
"null": false
},
"billing_subscription_end": {
"name": "billing_subscription_end",
"type": "DATETIME",
"null": true,
"default": null
},
"billing_subscription_price": {
"name": "billing_subscription_price",
"type": "BIGINT",
"null": false
},
"billing_subscription_quantity": {
"name": "billing_subscription_quantity",
"type": "BIGINT",
"null": false
},
"billing_subscription_bill": {
"name": "billing_subscription_bill",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "billing_bill",
"foreignKey": "billing_bill_id"
},
"billing_subscription_item": {
"name": "billing_subscription_item",
"type": "INT",
"null": false,
"foreignTable": "itemmgmt_item",
"foreignKey": "itemmgmt_item_id"
},
"billing_subscription_autorenew": {
"name": "billing_subscription_autorenew",
"type": "TINYINT(1)",
"null": false
},
"billing_subscription_client": {
"name": "billing_subscription_client",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "clientmgmt_client",
"foreignKey": "clientmgmt_client_id"
}
}
},
"billing_bill_element": {
"name": "billing_bill_element",
"fields": {
"billing_bill_element_id": {
"name": "billing_bill_element_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_bill_element_order": {
"name": "billing_bill_element_order",
"type": "INT",
"null": false
},
"billing_bill_element_item": {
"name": "billing_bill_element_item",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_item",
"foreignKey": "itemmgmt_item_id"
},
"billing_bill_element_container": {
"name": "billing_bill_element_container",
"type": "INT",
"null": false,
"default": null,
"foreignTable": "itemmgmt_item_container",
"foreignKey": "itemmgmt_item_container_id"
},
"billing_bill_element_subscription": {
"name": "billing_bill_element_subscription",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "billing_subscription",
"foreignKey": "billing_subscription_id"
},
"billing_bill_element_item_segment": {
"name": "billing_bill_element_item_segment",
"type": "INT",
"default": null,
"null": true
},
"billing_bill_element_item_number": {
"name": "billing_bill_element_item_number",
"type": "VARCHAR(255)",
"null": false
},
"billing_bill_element_item_name": {
"name": "billing_bill_element_item_name",
"type": "VARCHAR(255)",
"null": false
},
"billing_bill_element_item_desc": {
"name": "billing_bill_element_item_desc",
"type": "VARCHAR(255)",
"null": false
},
"billing_bill_element_quantity": {
"name": "billing_bill_element_quantity",
"type": "BIGINT",
"null": false
},
"billing_bill_element_single_netlistprice": {
"name": "billing_bill_element_single_netlistprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_single_grosslistprice": {
"name": "billing_bill_element_single_grosslistprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_total_netlistprice": {
"name": "billing_bill_element_total_netlistprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_total_grosslistprice": {
"name": "billing_bill_element_total_grosslistprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_single_netsalesprice": {
"name": "billing_bill_element_single_netsalesprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_single_effectivenetsalesprice": {
"name": "billing_bill_element_single_effectivenetsalesprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_single_grosssalesprice": {
"name": "billing_bill_element_single_grosssalesprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_total_netsalesprice": {
"name": "billing_bill_element_total_netsalesprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_total_grosssalesprice": {
"name": "billing_bill_element_total_grosssalesprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_single_netpurchaseprice": {
"name": "billing_bill_element_single_netpurchaseprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_total_netpurchaseprice": {
"name": "billing_bill_element_total_netpurchaseprice",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_single_netprofit": {
"name": "billing_bill_element_single_netprofit",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_total_netprofit": {
"name": "billing_bill_element_total_netprofit",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_price_discount_single": {
"name": "billing_bill_element_price_discount_single",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_price_discount_total": {
"name": "billing_bill_element_price_discount_total",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_percentage_discount_single": {
"name": "billing_bill_element_percentage_discount_single",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_percentage_discount_total": {
"name": "billing_bill_element_percentage_discount_total",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_quantity_discount": {
"name": "billing_bill_element_quantity_discount",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_price_single_net": {
"name": "billing_bill_element_price_single_net",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_price_total_net": {
"name": "billing_bill_element_price_total_net",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_tax_price": {
"name": "billing_bill_element_tax_price",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_tax_combination": {
"name": "billing_bill_element_tax_combination",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "billing_tax",
"foreignKey": "billing_tax_id"
},
"billing_bill_element_tax_type": {
"name": "billing_bill_element_tax_type",
"type": "VARCHAR(10)",
"null": true,
"default": null
},
"billing_bill_element_tax_percentage": {
"name": "billing_bill_element_tax_percentage",
"type": "INT",
"null": true,
"default": null
},
"billing_bill_element_price_single_gross": {
"name": "billing_bill_element_price_single_gross",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_price_total_gross": {
"name": "billing_bill_element_price_total_gross",
"type": "BIGINT",
"null": true,
"default": null
},
"billing_bill_element_segment": {
"comment": "attribute values",
"name": "billing_bill_element_segment",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_bill_element_section": {
"comment": "attribute values",
"name": "billing_bill_element_section",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_bill_element_salesgroup": {
"comment": "attribute values",
"name": "billing_bill_element_salesgroup",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_bill_element_productgroup": {
"comment": "attribute values",
"name": "billing_bill_element_productgroup",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_bill_element_itemtype": {
"comment": "attribute values",
"name": "billing_bill_element_itemtype",
"type": "INT",
"null": true,
"default": null,
"foreignTable": "itemmgmt_attr_value",
"foreignKey": "itemmgmt_attr_value_id"
},
"billing_bill_element_bill": {
"name": "billing_bill_element_bill",
"type": "INT",
"null": false,
"foreignTable": "billing_bill",
"foreignKey": "billing_bill_id"
},
"billing_bill_element_fiaccount": {
"name": "billing_bill_element_fiaccount",
"type": "VARCHAR(10)",
"null": false
},
"billing_bill_element_costcenter": {
"name": "billing_bill_element_costcenter",
"type": "VARCHAR(10)",
"null": false
},
"billing_bill_element_costobject": {
"name": "billing_bill_element_costobject",
"type": "VARCHAR(10)",
"null": false
},
"billing_bill_element_promotion": {
"name": "billing_bill_element_promotion",
"type": "VARCHAR(10)",
"default": null,
"null": true
},
"billing_bill_element_event": {
"name": "billing_bill_element_event",
"type": "INT",
"default": null,
"null": true
},
"billing_bill_element_approval": {
"name": "billing_bill_element_approval",
"type": "INT",
"null": false
}
}
},
"billing_attr_type": {
"name": "billing_attr_type",
"fields": {
"billing_attr_type_id": {
"name": "billing_attr_type_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_attr_type_name": {
"name": "billing_attr_type_name",
"type": "VARCHAR(255)",
"null": false,
"unique": true
},
"billing_attr_type_datatype": {
"name": "billing_attr_type_datatype",
"type": "INT(11)",
"null": false
},
"billing_attr_type_fields": {
"name": "billing_attr_type_fields",
"type": "INT(11)",
"null": false
},
"billing_attr_type_custom": {
"name": "billing_attr_type_custom",
"type": "TINYINT(1)",
"null": false
},
"billing_attr_type_repeatable": {
"name": "billing_attr_type_repeatable",
"type": "TINYINT(1)",
"null": false
},
"billing_attr_type_internal": {
"name": "billing_attr_type_internal",
"type": "TINYINT(1)",
"null": false
},
"billing_attr_type_required": {
"comment": "Every item must have this attribute type if set to true.",
"name": "billing_attr_type_required",
"type": "TINYINT(1)",
"null": false
},
"billing_attr_type_pattern": {
"comment": "This is a regex validation pattern.",
"name": "billing_attr_type_pattern",
"type": "VARCHAR(255)",
"null": false
}
}
},
"billing_attr_type_l11n": {
"name": "billing_attr_type_l11n",
"fields": {
"billing_attr_type_l11n_id": {
"name": "billing_attr_type_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_attr_type_l11n_title": {
"name": "billing_attr_type_l11n_title",
"type": "VARCHAR(255)",
"null": false
},
"billing_attr_type_l11n_type": {
"name": "billing_attr_type_l11n_type",
"type": "INT(11)",
"null": false,
"foreignTable": "billing_attr_type",
"foreignKey": "billing_attr_type_id"
},
"billing_attr_type_l11n_lang": {
"name": "billing_attr_type_l11n_lang",
"type": "VARCHAR(2)",
"null": false,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"billing_attr_value": {
"name": "billing_attr_value",
"fields": {
"billing_attr_value_id": {
"name": "billing_attr_value_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_attr_value_default": {
"name": "billing_attr_value_default",
"type": "TINYINT(1)",
"null": false
},
"billing_attr_value_valueStr": {
"name": "billing_attr_value_valueStr",
"type": "VARCHAR(255)",
"null": true,
"default": null
},
"billing_attr_value_valueInt": {
"name": "billing_attr_value_valueInt",
"type": "INT(11)",
"null": true,
"default": null
},
"billing_attr_value_valueDec": {
"name": "billing_attr_value_valueDec",
"type": "DECIMAL(19,5)",
"null": true,
"default": null
},
"billing_attr_value_valueDat": {
"name": "billing_attr_value_valueDat",
"type": "DATETIME",
"null": true,
"default": null
},
"billing_attr_value_unit": {
"name": "billing_attr_value_unit",
"type": "VARCHAR(255)",
"null": false
},
"billing_attr_value_deptype": {
"name": "billing_attr_value_deptype",
"type": "INT(11)",
"null": true,
"default": null,
"foreignTable": "billing_attr_type",
"foreignKey": "billing_attr_type_id"
},
"billing_attr_value_depvalue": {
"name": "billing_attr_value_depvalue",
"type": "INT(11)",
"null": true,
"default": null,
"foreignTable": "billing_attr_value",
"foreignKey": "billing_attr_value_id"
}
}
},
"billing_attr_value_l11n": {
"name": "billing_attr_value_l11n",
"fields": {
"billing_attr_value_l11n_id": {
"name": "billing_attr_value_l11n_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_attr_value_l11n_title": {
"name": "billing_attr_value_l11n_title",
"type": "VARCHAR(255)",
"null": false
},
"billing_attr_value_l11n_value": {
"name": "billing_attr_value_l11n_value",
"type": "INT(11)",
"null": false,
"foreignTable": "billing_attr_value",
"foreignKey": "billing_attr_value_id"
},
"billing_attr_value_l11n_lang": {
"name": "billing_attr_value_l11n_lang",
"type": "VARCHAR(2)",
"null": false,
"foreignTable": "language",
"foreignKey": "language_639_1"
}
}
},
"billing_bill_attr_default": {
"name": "billing_bill_attr_default",
"fields": {
"billing_bill_attr_default_id": {
"name": "billing_bill_attr_default_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_bill_attr_default_type": {
"name": "billing_bill_attr_default_type",
"type": "INT(11)",
"null": false,
"foreignTable": "billing_attr_type",
"foreignKey": "billing_attr_type_id"
},
"billing_bill_attr_default_value": {
"name": "billing_bill_attr_default_value",
"type": "INT(11)",
"null": false,
"foreignTable": "billing_attr_value",
"foreignKey": "billing_attr_value_id"
}
}
},
"billing_bill_attr": {
"name": "billing_bill_attr",
"fields": {
"billing_bill_attr_id": {
"name": "billing_bill_attr_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_bill_attr_bill": {
"name": "billing_bill_attr_bill",
"type": "INT(11)",
"null": false,
"foreignTable": "billing_bill",
"foreignKey": "billing_bill_id"
},
"billing_bill_attr_type": {
"name": "billing_bill_attr_type",
"type": "INT(11)",
"null": false,
"foreignTable": "billing_attr_type",
"foreignKey": "billing_attr_type_id"
},
"billing_bill_attr_value": {
"name": "billing_bill_attr_value",
"type": "INT(11)",
"null": true,
"default": null,
"foreignTable": "billing_attr_value",
"foreignKey": "billing_attr_value_id"
}
}
},
"billing_bill_media": {
"name": "billing_bill_media",
"fields": {
"billing_bill_media_id": {
"name": "billing_bill_media_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_bill_media_src": {
"name": "billing_bill_media_src",
"type": "INT",
"null": false,
"foreignTable": "billing_bill",
"foreignKey": "billing_bill_id"
},
"billing_bill_media_dst": {
"name": "billing_bill_media_dst",
"type": "INT",
"null": false,
"foreignTable": "media",
"foreignKey": "media_id"
}
}
},
"billing_bill_note": {
"name": "billing_bill_note",
"fields": {
"billing_bill_note_id": {
"name": "billing_bill_note_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_bill_note_bill": {
"name": "billing_bill_note_bill",
"type": "INT",
"null": false,
"foreignTable": "billing_bill",
"foreignKey": "billing_bill_id"
},
"billing_bill_note_doc": {
"name": "billing_bill_note_doc",
"type": "INT",
"null": false,
"foreignTable": "editor_doc",
"foreignKey": "editor_doc_id"
}
}
},
"billing_bill_responsible": {
"name": "billing_bill_responsible",
"fields": {
"billing_bill_responsible_id": {
"name": "billing_bill_responsible_id",
"type": "INT",
"null": false,
"primary": true,
"autoincrement": true
},
"billing_bill_responsible_bill": {
"name": "billing_bill_responsible_bill",
"type": "INT",
"null": false,
"foreignTable": "billing_bill",
"foreignKey": "billing_bill_id"
},
"billing_bill_responsible_group": {
"name": "billing_bill_responsible_group",
"type": "INT",
"null": false,
"foreignTable": "group",
"foreignKey": "group_id"
},
"billing_bill_responsible_status": {
"name": "billing_bill_responsible_status",
"type": "INT",
"null": false
},
"billing_bill_responsible_type": {
"name": "billing_bill_responsible_type",
"type": "INT",
"null": false
},
"billing_bill_responsible_account": {
"name": "billing_bill_responsible_account",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"billing_bill_responsible_forwarded_by": {
"name": "billing_bill_responsible_forwarded_by",
"type": "INT",
"null": false,
"foreignTable": "account",
"foreignKey": "account_id"
},
"billing_bill_responsible_forwarded_at": {
"name": "billing_bill_responsible_forwarded_at",
"type": "DATETIME",
"null": false
}
}
}
}