Files
be-accone/sql-collections/sql-service-coa-mapping.sql

16 lines
831 B
SQL

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)
);