add sql collection and update endpoint mapping service coa
This commit is contained in:
36
sql-collections/sql-stock-inventory.sql
Normal file
36
sql-collections/sql-stock-inventory.sql
Normal 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)
|
||||
);
|
||||
Reference in New Issue
Block a user