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,15 @@
CREATE TABLE service_coa_mapping (
ServiceCoaMappingID int(11) NOT NULL AUTO_INCREMENT,
ServiceCoaMappingM_ItemID int(11) NOT NULL,
ServiceCoaMappingCoaJasaID int(11) NOT NULL,
ServiceCoaMappingCoaHutangID int(11) NOT NULL,
ServiceCoaMappingIsActive char(1) NOT NULL DEFAULT 'Y',
ServiceCoaMappingCreated datetime NULL DEFAULT current_timestamp(),
ServiceCoaMappingLastUpdated datetime NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
ServiceCoaMappingUserID int(11) NULL DEFAULT 0,
PRIMARY KEY (ServiceCoaMappingID),
KEY ServiceCoaMappingM_ItemID (ServiceCoaMappingM_ItemID),
KEY ServiceCoaMappingCoaJasaID (ServiceCoaMappingCoaJasaID),
KEY ServiceCoaMappingCoaHutangID (ServiceCoaMappingCoaHutangID),
KEY ServiceCoaMappingIsActive (ServiceCoaMappingIsActive)
);