Fees
Data license: CC-BY-4.0 · Data source: bankproducts.info
0 rows where product_id = "frkb:kassenobligation" sorted by amount descending
This data as json
0 records
CREATE TABLE fee (
id TEXT PRIMARY KEY, -- zkb:privatkonto:account_mgmt
product_id TEXT NOT NULL REFERENCES product(id),
bank_id TEXT NOT NULL REFERENCES bank(id), -- denormalized
fee_type TEXT NOT NULL, -- standardized key
label TEXT, -- human-readable German label from PDF
amount REAL, -- NULL if text-only or varies
currency TEXT DEFAULT 'CHF', -- CHF, EUR, USD, percent
frequency TEXT, -- monthly, annual, quarterly, per_txn, one_time, per_annum_pct
tier TEXT, -- for tiered pricing: "3rd card onwards", "vol:>250k", "member"
channel TEXT, -- ebanking, paper, counter, atm, app, post_office, all
note TEXT, -- conditions, fine print
source_page INTEGER,
valid_from TEXT,
access_tier TEXT NOT NULL DEFAULT 'free' -- freemium gating; propagated from parent product
CHECK (access_tier IN ('free', 'pro', 'business')),
-- v3.2 (2026-08-12): structured tier bounds. NULL = open-ended.
-- tier_ceiling is EXCLUSIVE (matches interest_rate convention).
-- Populated by db/fee_tier_backfill.sql from free-text fee.label regex-parse.
tier_floor REAL
CHECK (tier_floor IS NULL OR tier_floor >= 0),
tier_ceiling REAL
CHECK (tier_ceiling IS NULL OR tier_ceiling >= 0),
-- v3.4 (2026-08-12, PR #411): compliance-tier attribution.
compliance_tier TEXT
CHECK (compliance_tier IS NULL OR compliance_tier IN ('standard', 'enhanced_monitoring', 'pep', 'sanctioned_jurisdiction'))
);
CREATE INDEX idx_fee_product ON fee(product_id);
CREATE INDEX idx_fee_bank ON fee(bank_id);
CREATE INDEX idx_fee_tier ON fee(tier_floor, tier_ceiling) WHERE tier_floor IS NOT NULL OR tier_ceiling IS NOT NULL;
CREATE INDEX idx_fee_compliance_tier ON fee(compliance_tier) WHERE compliance_tier IS NOT NULL;
CREATE INDEX idx_fee_type ON fee(fee_type);
CREATE INDEX idx_fee_category ON fee(fee_type, bank_id);
CREATE INDEX idx_fee_access_tier ON fee(access_tier);