add sql collection and update endpoint mapping service coa
This commit is contained in:
46
sql-collections/sql-supplier_downpayment.sql
Normal file
46
sql-collections/sql-supplier_downpayment.sql
Normal file
@@ -0,0 +1,46 @@
|
||||
CREATE TABLE supplier_downpayment (
|
||||
SupplierDownpaymentID int(11) NOT NULL AUTO_INCREMENT,
|
||||
SupplierDownpaymentPurchasOrderID int(11) NOT NULL,
|
||||
SupplierDownpaymentSupplierID int(11) NOT NULL,
|
||||
SupplierDownpaymentAmount decimal(20,2) DEFAULT 00.0,
|
||||
SupplierDownpaymentDate date DEFAULT NULL,
|
||||
SupplierDownpaymentDueDate date DEFAULT NULL,
|
||||
SupplierDownpaymentStatus ENUM('Draft','Pending','Paid') DEFAULT 'Draft',
|
||||
SupplierDownpaymentIsLunas ENUM('Y','N') DEFAULT 'N',
|
||||
SupplierDownpaymentIsActive ENUM('Y','N') DEFAULT 'Y',
|
||||
SupplierDownpaymentCreated datetime NOT NULL DEFAULT current_timestamp(),
|
||||
SupplierDownpaymentCreatedUserID int(11) DEFAULT 0,
|
||||
SupplierDownpaymentLastUpdated datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
SupplierDownpaymentLastUpdatedUserID int(11) DEFAULT 0,
|
||||
PRIMARY KEY (SupplierDownpaymentID),
|
||||
KEY SupplierDownpaymentPurchasOrderID (SupplierDownpaymentPurchasOrderID),
|
||||
KEY SupplierDownpaymentSupplierID (SupplierDownpaymentSupplierID),
|
||||
KEY SupplierDownpaymentStatus (SupplierDownpaymentStatus),
|
||||
KEY SupplierDownpaymentIsActive (SupplierDownpaymentIsActive)
|
||||
);
|
||||
|
||||
CREATE TABLE supplier_installment (
|
||||
SupplierInstallmentID int(11) NOT NULL AUTO_INCREMENT,
|
||||
SupplierInstallmentPurchaseOrderID int(11) NOT NULL,
|
||||
SupplierInstallmentSupplierID int(11) NOT NULL,
|
||||
SupplierInstallmentSupplierInvoiceID int(11) NULL,
|
||||
SupplierInstallmentAmount decimal(20,2) DEFAULT 00.0,
|
||||
SupplierInstallmentDate date DEFAULT NULL,
|
||||
SupplierInstallmentDueDate date DEFAULT NULL,
|
||||
SupplierInstallmentPaymentID int(11) NOT NULL,
|
||||
SupplierInstallmentPaidDate date DEFAULT NULL,
|
||||
SupplierInstallmentStatus ENUM('Pending', 'Paid', 'Overdue') DEFAULT 'Pending',
|
||||
SupplierInstallmentIsLunas ENUM('Y','N') DEFAULT 'N',
|
||||
SupplierInstallmentIsActive ENUM('Y'm 'N') DEFAULT 'Y',
|
||||
SupplierInstallmentCreated datetime NOT NULL DEFAULT current_timestamp(),
|
||||
SupplierInstallmentCreatedUserID int(11) DEFAULT 0,
|
||||
SupplierInstallmentLastUpdated datetime NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||
SupplierInstallmentLastUpdatedUserID int(11) DEFAULT 0,
|
||||
PRIMARY KEY (SupplierInstallmentID),
|
||||
KEY SupplierInstallmentPurchaseOrderID (SupplierInstallmentPurchaseOrderID),
|
||||
KEY SupplierInstallmentSupplierID (SupplierInstallmentSupplierID),
|
||||
KEY SupplierInstallmentSupplierInvoiceID (SupplierInstallmentSupplierInvoiceID),
|
||||
KEY SupplierInstallmentPaymentID (SupplierInstallmentPaymentID),
|
||||
KEY SupplierInstallmentStatus (SupplierInstallmentStatus),
|
||||
KEY SupplierInstallmentIsActive (SupplierInstallmentIsActive)
|
||||
);
|
||||
Reference in New Issue
Block a user