aboutsummaryrefslogtreecommitdiff
path: root/src/db/schema.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-08-16 21:14:30 -0400
committerNathan Perry <np@nathanperry.dev>2024-08-16 21:15:07 -0400
commitef056edf92b678265a4666e1f9405e3b0ce66a42 (patch)
treeb3766d47ae2898d2a46f108de4e2be0ede6c400b /src/db/schema.rs
parentc5ce454319a7d54d3967c6ea7695543e943a37b2 (diff)
repo: overhaul for multitenancy
Diffstat (limited to 'src/db/schema.rs')
-rw-r--r--src/db/schema.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db/schema.rs b/src/db/schema.rs
index e89b24a..bc17e29 100644
--- a/src/db/schema.rs
+++ b/src/db/schema.rs
@@ -30,6 +30,7 @@ diesel::table! {
invocation_records (id) {
id -> Int4,
user_id -> Int8,
+ guild -> Int8,
message_id -> Int8,
meme_id -> Int4,
time -> Timestamp,
@@ -40,6 +41,7 @@ diesel::table! {
diesel::table! {
memes (id) {
id -> Int4,
+ guild -> Int8,
title -> Varchar,
content -> Nullable<Text>,
image_id -> Nullable<Int4>,
@@ -60,6 +62,7 @@ diesel::table! {
tombstones (id) {
id -> Int4,
meme_id -> Int4,
+ guild -> Int8,
deleted_by -> Int8,
deleted_at -> Timestamp,
metadata_id -> Nullable<Int4>,