Interest rates
Data license: CC-BY-4.0 · Data source: bankproducts.info
0 rows where product_id = "neon:free" sorted by snapshot_date descending
This data as json
0 records
CREATE TABLE interest_rate (
id TEXT PRIMARY KEY, -- sgkb:sparkonto:credit:tier1
product_id TEXT NOT NULL REFERENCES product(id),
bank_id TEXT NOT NULL REFERENCES bank(id), -- denormalized
rate_type TEXT NOT NULL, -- credit (paid to customer), debit (charged to customer),
-- bonus (conditional extra), discount (reduction on base),
-- overdraft (penalty rate)
rate REAL, -- percentage value (0.050 = 0.050%); NULL = on request / not published
tier_floor REAL, -- balance threshold lower bound; NULL = from zero
tier_ceiling REAL, -- balance threshold upper bound; NULL = unlimited
tenor_months INTEGER, -- term length in months (24 = 2yr); NULL = no fixed term
currency TEXT DEFAULT 'CHF',
snapshot_date TEXT NOT NULL, -- date the rate was observed (YYYY-MM-DD)
valid_from TEXT, -- date the rate took effect (YYYY-MM-DD)
note TEXT, -- conditions, fine print
source_document_id INTEGER REFERENCES source_document(id)
);
CREATE INDEX idx_interest_rate_product ON interest_rate(product_id);
CREATE INDEX idx_interest_rate_bank ON interest_rate(bank_id);
CREATE INDEX idx_interest_rate_snapshot ON interest_rate(bank_id, snapshot_date);
CREATE INDEX idx_interest_rate_type ON interest_rate(rate_type, bank_id);