added points to sale and logic backend
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE sale
|
||||
ADD COLUMN pointsUsed INT NOT NULL DEFAULT 0,
|
||||
ADD COLUMN pointsDiscountAmount DECIMAL(10, 2) NOT NULL DEFAULT 0.00;
|
||||
@@ -230,6 +230,8 @@ CREATE TABLE IF NOT EXISTS sale (
|
||||
couponDiscountAmount DECIMAL(10, 2) NOT NULL DEFAULT 0.00,
|
||||
employeeDiscountAmount DECIMAL(10, 2) NOT NULL DEFAULT 0.00,
|
||||
pointsEarned INT NOT NULL DEFAULT 0,
|
||||
pointsUsed INT NOT NULL DEFAULT 0,
|
||||
pointsDiscountAmount DECIMAL(10, 2) NOT NULL DEFAULT 0.00,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
CONSTRAINT fk_sale_employee FOREIGN KEY (employeeId) REFERENCES users(id),
|
||||
|
||||
Reference in New Issue
Block a user