feat: add limit owner

This commit is contained in:
efrilm
2026-10-02 23:30:03 +07:00
parent b372821b23
commit fbe7e97dc7
18 changed files with 533 additions and 172 deletions
@@ -0,0 +1 @@
ALTER TABLE categories DROP COLUMN owner_fee_percent;
@@ -0,0 +1,4 @@
-- The owner's share of revenue in the parent category budget report. NULL keeps the
-- default share, so only the parent categories with a different fee carry a value.
ALTER TABLE categories ADD COLUMN owner_fee_percent NUMERIC(5,2)
CONSTRAINT chk_categories_owner_fee_percent CHECK (owner_fee_percent >= 0 AND owner_fee_percent <= 100);