2021-03-15 01:35:55 +03:00
|
|
|
CREATE TABLE sends (
|
|
|
|
uuid CHAR(36) NOT NULL PRIMARY KEY,
|
|
|
|
user_uuid CHAR(36) REFERENCES users (uuid),
|
|
|
|
organization_uuid CHAR(36) REFERENCES organizations (uuid),
|
|
|
|
|
|
|
|
name TEXT NOT NULL,
|
|
|
|
notes TEXT,
|
|
|
|
|
|
|
|
atype INTEGER NOT NULL,
|
|
|
|
data TEXT NOT NULL,
|
2021-03-15 18:42:20 +03:00
|
|
|
akey TEXT NOT NULL,
|
2021-03-15 01:35:55 +03:00
|
|
|
password_hash BLOB,
|
|
|
|
password_salt BLOB,
|
|
|
|
password_iter INTEGER,
|
|
|
|
|
|
|
|
max_access_count INTEGER,
|
|
|
|
access_count INTEGER NOT NULL,
|
|
|
|
|
|
|
|
creation_date DATETIME NOT NULL,
|
|
|
|
revision_date DATETIME NOT NULL,
|
|
|
|
expiration_date DATETIME,
|
|
|
|
deletion_date DATETIME NOT NULL,
|
|
|
|
|
|
|
|
disabled BOOLEAN NOT NULL
|
|
|
|
);
|