nthmail/migration.sql
Guilherme Rugai Freire 7e8327fd0d
remove inboxes table and add arrived_at column
there is no current need to have a separate table for keeping track of
the inboxes, since all emails are getting stored upon arrival and anyone
can access all mails from any rcpt address.

also, added a arrived_at column, as a utc unix timestamp. This serves
the obvious reason to have a ts on an email, but also allows this
service to delete old mail.
2024-02-20 00:42:00 -03:00

8 lines
175 B
SQL

CREATE TABLE mails (
id integer not null primary key,
arrived_at integer not null,
rcpt_addr text not null,
from_addr text not null,
data blob not null
);