10 lines
440 B
SQL
10 lines
440 B
SQL
CREATE TABLE {{p}}snoozed_messages (
|
|
id VARCHAR(64) PRIMARY KEY,
|
|
message_uid BIGINT NOT NULL,
|
|
message_folder VARCHAR(512) NOT NULL,
|
|
wake_at BIGINT NOT NULL,
|
|
created_at VARCHAR(64) NOT NULL DEFAULT (CAST(CURRENT_TIMESTAMP AS CHAR)),
|
|
UNIQUE KEY idx_snoozed_messages_unique (message_uid, message_folder),
|
|
INDEX idx_snoozed_messages_wake (wake_at)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|