Files
backend/database/migrations/018_product_variant_reward_points.sql
T
Ali Reza bb59d5e9ba Initial commit: Meshkee CMS API
NestJS backend with Prisma, Docker Compose for Postgres/Redis, and deploy docs for the production VM.
2026-07-21 17:52:36 +03:30

8 lines
307 B
SQL

-- Reward points earned when purchasing a store item variant (festival rewards — usage later)
ALTER TABLE product_variants
ADD COLUMN reward_points INTEGER;
ALTER TABLE product_variants
ADD CONSTRAINT product_variants_reward_points_non_negative
CHECK (reward_points IS NULL OR reward_points >= 0);