feat(payments): add transparent balance guidance

This commit is contained in:
2026-03-11 14:52:09 +04:00
parent 8401688032
commit 79f96ba45b
25 changed files with 3855 additions and 93 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "household_billing_settings" ADD COLUMN "payment_balance_adjustment_policy" text DEFAULT 'utilities' NOT NULL;

File diff suppressed because it is too large Load Diff

View File

@@ -120,6 +120,13 @@
"when": 1773225121790,
"tag": "0016_equal_susan_delgado",
"breakpoints": true
},
{
"idx": 17,
"version": "7",
"when": 1773226133315,
"tag": "0017_gigantic_selene",
"breakpoints": true
}
]
}

View File

@@ -27,6 +27,9 @@ export const householdBillingSettings = pgTable(
.notNull()
.references(() => households.id, { onDelete: 'cascade' }),
settlementCurrency: text('settlement_currency').default('GEL').notNull(),
paymentBalanceAdjustmentPolicy: text('payment_balance_adjustment_policy')
.default('utilities')
.notNull(),
rentAmountMinor: bigint('rent_amount_minor', { mode: 'bigint' }),
rentCurrency: text('rent_currency').default('USD').notNull(),
rentDueDay: integer('rent_due_day').default(20).notNull(),