mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-11 22:30:59 +04:30
NestJS backend with Prisma, Docker Compose for Postgres/Redis, and deploy docs for the production VM.
8 lines
307 B
SQL
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);
|