mirror of
https://github.com/status-im/status-go.git
synced 2025-01-16 17:57:09 +00:00
9 lines
232 B
MySQL
9 lines
232 B
MySQL
|
CREATE TABLE IF NOT EXISTS dapps (
|
||
|
name TEXT PRIMARY KEY
|
||
|
) WITHOUT ROWID;
|
||
|
|
||
|
CREATE TABLE IF NOT EXISTS permissions (
|
||
|
dapp_name TEXT NOT NULL,
|
||
|
permission TEXT NOT NULL,
|
||
|
FOREIGN KEY(dapp_name) REFERENCES dapps(name) ON DELETE CASCADE
|
||
|
)
|