2021-03-24 20:15:55 +01:00
|
|
|
CREATE TABLE emergency_access (
|
|
|
|
uuid CHAR(36) NOT NULL PRIMARY KEY,
|
|
|
|
grantor_uuid CHAR(36) REFERENCES users (uuid),
|
|
|
|
grantee_uuid CHAR(36) REFERENCES users (uuid),
|
|
|
|
email VARCHAR(255),
|
|
|
|
key_encrypted TEXT,
|
|
|
|
atype INTEGER NOT NULL,
|
|
|
|
status INTEGER NOT NULL,
|
|
|
|
wait_time_days INTEGER NOT NULL,
|
|
|
|
recovery_initiated_at DATETIME,
|
|
|
|
last_notification_at DATETIME,
|
|
|
|
updated_at DATETIME NOT NULL,
|
|
|
|
created_at DATETIME NOT NULL
|
2021-09-01 12:54:47 +02:00
|
|
|
);
|