mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-05-06 20:32:55 +08:00
* feat: add admin account search && delete account for user * feat: add admin account search && delete account for user
37 lines
853 B
SQL
37 lines
853 B
SQL
CREATE TABLE IF NOT EXISTS mails (
|
|
id INTEGER PRIMARY KEY,
|
|
message_id TEXT,
|
|
source TEXT,
|
|
address TEXT,
|
|
subject TEXT,
|
|
message TEXT,
|
|
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS address (
|
|
id INTEGER PRIMARY KEY,
|
|
name TEXT UNIQUE,
|
|
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
|
|
updated_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS auto_reply_mails (
|
|
id INTEGER PRIMARY KEY,
|
|
source_prefix TEXT,
|
|
name TEXT,
|
|
address TEXT UNIQUE,
|
|
subject TEXT,
|
|
message TEXT,
|
|
enabled INTEGER DEFAULT 1,
|
|
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
);
|
|
|
|
CREATE TABLE IF NOT EXISTS attachments (
|
|
id INTEGER PRIMARY KEY,
|
|
source TEXT,
|
|
address TEXT,
|
|
message_id TEXT,
|
|
data TEXT,
|
|
created_at DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
);
|