add sql collection and update endpoint mapping service coa

This commit is contained in:
2026-09-03 16:51:54 +07:00
parent 93dc515be1
commit 48a5c43cd8
9 changed files with 517 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
CREATE TABLE contract_asset_attachment (
ContractAssetAttachmentID int(11) NOT NULL AUTO_INCREMENT,
ContractAssetAttachmentPurchaseOrderID int(11) NOT NULL,
ContractAssetAttachmentPurchaseOrderAssetContractID int(11) NOT NULL,
ContractAssetAttachmentFileName varchar(255) DEFAULT NULL,
ContractAssetAttachmentDate date DEFAULT NULL,
ContractAssetAttachmentIsActive char(1) DEFAULT 'Y',
ContractAssetAttachmentCreated datetime NOT NULL DEFAULT current_timestamp(),
ContractAssetAttachmentLastUpdated datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
ContractAssetAttachmentUserID int(11) DEFAULT 0,
PRIMARY KEY (ContractAssetAttachmentID),
KEY ContractAssetAttachmentPurchaseOrderID (ContractAssetAttachmentPurchaseOrderID),
KEY ContractAssetAttachmentIsActive (ContractAssetAttachmentIsActive)
);