summaryrefslogtreecommitdiff
path: root/migrations/20241005021022_message.sql
blob: 189612cb49183087c309f93fbf7439d6b935a182 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
create table message (
	id text
		not null
		primary key,
	channel text
		not null
		references channel (id),
	sender text
		not null
		references login (id),
	sent_sequence bigint
		unique
		not null,
	sent_at text
		not null,
	body text
		not null
);

create index message_sent_at
on message (sent_at);