Revert "voucher"

This reverts commit cfe690a40f.
This commit is contained in:
Aditya Siregar
2025-09-16 19:31:39 +07:00
parent 36c2352cb2
commit 12ee54390f
15 changed files with 2 additions and 1199 deletions
-17
View File
@@ -1,17 +0,0 @@
-- Create vouchers table
CREATE TABLE IF NOT EXISTS vouchers (
id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
name VARCHAR(255) NOT NULL,
email VARCHAR(255),
phone_number VARCHAR(20),
voucher_code VARCHAR(50) NOT NULL UNIQUE,
winner_number INTEGER NOT NULL,
created_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP
);
-- Create index on voucher_code for faster lookups
CREATE INDEX IF NOT EXISTS idx_vouchers_voucher_code ON vouchers(voucher_code);
-- Create index on winner_number for sorting
CREATE INDEX IF NOT EXISTS idx_vouchers_winner_number ON vouchers(winner_number);