Mineplex/Mineplex.Database/030-mail.sql

17 lines
375 B
MySQL
Raw Permalink Normal View History

create or replace table mail
(
id int auto_increment
primary key,
accountId int not null,
sender varchar(64) not null,
message varchar(1024) not null,
archived tinyint not null,
deleted tinyint not null,
timeSent timestamp default current_timestamp() not null on update current_timestamp()
)
charset=latin1;
create or replace index accountId
on mail (accountId);