FEAT[BE] :add marketing type and conversion fields to marketing entities and services

This commit is contained in:
aguhh18
2026-02-03 13:32:37 +07:00
parent f75225b81b
commit f59cdd821a
9 changed files with 141 additions and 101 deletions
@@ -0,0 +1,9 @@
-- Add marketing_type to marketings table
ALTER TABLE marketings
ADD COLUMN IF NOT EXISTS marketing_type VARCHAR(50);
-- Add convertion fields to marketing_products table
ALTER TABLE marketing_products
ADD COLUMN IF NOT EXISTS convertion_unit VARCHAR(20),
ADD COLUMN IF NOT EXISTS weight_per_convertion NUMERIC(15, 3),
ADD COLUMN IF NOT EXISTS week INTEGER;