34968-vm/migrations/20251015_create_coupons_table.sql
Flatlogic Bot ec17506c33 V9
2025-10-15 02:41:21 +00:00

7 lines
261 B
SQL

CREATE TABLE IF NOT EXISTS "coupons" (
"id" SERIAL PRIMARY KEY,
"code" VARCHAR(255) NOT NULL UNIQUE,
"discount_percentage" DECIMAL(5, 2) NOT NULL,
"is_active" BOOLEAN NOT NULL DEFAULT TRUE,
"created_at" TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);