Continue consolidated Postbank alpha with private saved beneficiaries

This commit is contained in:
unimatrixgit 2026-11-13 23:04:14 +01:00
commit 4eae923d6a

View file

@ -72,3 +72,14 @@ CREATE TABLE IF NOT EXISTS pb_account_options (
terms_version VARCHAR(64) NOT NULL, updated_at BIGINT NOT NULL,
FOREIGN KEY(account_id) REFERENCES pb_accounts(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS pb_beneficiaries (
id CHAR(36) PRIMARY KEY, owner_id CHAR(36) NOT NULL, account_id BIGINT UNSIGNED NOT NULL,
label VARCHAR(80) NOT NULL, created_at BIGINT NOT NULL, updated_at BIGINT NOT NULL,
UNIQUE KEY owner_beneficiary(owner_id,account_id),
FOREIGN KEY(account_id) REFERENCES pb_accounts(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
CREATE TABLE IF NOT EXISTS pb_contact_locks (
owner_id CHAR(36) PRIMARY KEY
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;