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,36 @@
CREATE TABLE stock_inventory (
StockInventoryID int(11) NOT NULL AUTO_INCREMENT,
StockInventoryStockID int(11) NOT NULL,
StockInventoryRuanganID int(11) NOT NULL,
StockInventoryBarcode varchar(128) DEFAULT NULL,
StockInventoryCabangID int(11) NOT NULL,
StockInventoryCreatedUserID int(11) NOT NULL,
StockInventoryCreated datetime NOT NULL DEFAULT current_timestamp(),
StockInventoryLastUpdated datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
StockInventoryIsActive char(1) NOT NULL DEFAULT 'Y',
PRIMARY KEY (StockInventoryID),
KEY StockInventoryStockID (StockInventoryStockID),
KEY StockInventoryBarcode (StockInventoryBarcode),
KEY StockInventoryRuanganID (StockInventoryRuanganID),
KEY StockInventoryCabangID (StockInventoryCabangID),
KEY StockInventoryIsActive (StockInventoryIsActive)
);
CREATE TABLE stock_asset (
StockAssetID int(11) NOT NULL AUTO_INCREMENT,
StockAssetStockID int(11) NOT NULL,
StockAssetRuanganID int(11) NOT NULL,
StockAssetBarcode varchar(128) DEFAULT NULL,
StockAssetCabangID int(11) NOT NULL,
StockAssetCreatedUserID int(11) NOT NULL,
StockAssetCreated datetime NOT NULL DEFAULT current_timestamp(),
StockAssetLastUpdated datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
StockAssetIsActive char(1) NOT NULL DEFAULT 'Y',
PRIMARY KEY (StockAssetID),
KEY StockAssetStockID (StockAssetStockID),
KEY StockAssetBarcode (StockAssetBarcode),
KEY StockAssetRuanganID (StockAssetRuanganID),
KEY StockAssetCabangID (StockAssetCabangID),
KEY StockAssetIsActive (StockAssetIsActive)
);