forked from unimatrix/web
Continue consolidated Postbank alpha with private saved beneficiaries
This commit is contained in:
parent
dff64a0207
commit
4eae923d6a
1 changed files with 58 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff