mirror of
https://github.com/aziascreations/BakaShrot.git
synced 2026-11-23 20:58:46 +01:00
35 lines
682 B
Plaintext
35 lines
682 B
Plaintext
table archives {
|
|
// UTC Unix Timestamp after which this archived message should be deleted.
|
|
delete_by integer [not null]
|
|
|
|
message_data text [not null]
|
|
}
|
|
|
|
table data {
|
|
group_id integer [not null]
|
|
node_id integer [not null]
|
|
message_id integer [not null]
|
|
message_data text [not null]
|
|
|
|
indexes {
|
|
(group_id, node_id)
|
|
message_id
|
|
}
|
|
}
|
|
|
|
// Create it, but we'll implement this later.
|
|
table attachements {
|
|
group_id integer [not null]
|
|
node_id integer [not null]
|
|
message_id integer [not null]
|
|
attachement_data blob [not null]
|
|
|
|
indexes {
|
|
(group_id, node_id)
|
|
message_id
|
|
}
|
|
}
|
|
|
|
// Note, ignore it
|
|
// msg_type TEXT GENERATED ALWAYS AS (data ->> '$.messageData.MsgType') VIRTUAL
|