nthmail/migration.sql
Guilherme Rugai Freire 369115d781
initial commit
2024-02-18 01:26:53 -03:00

13 lines
247 B
SQL

CREATE TABLE inboxes (
id integer not null primary key,
addr text unique
);
CREATE TABLE mails (
id integer not null primary key,
inbox_id id,
from_addr text,
data blob,
FOREIGN KEY(inbox_id) REFERENCES inboxes(id)
);