diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-05-03 22:08:54 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-05-03 22:11:02 -0400 |
| commit | a52eae2964e8e86bf3e587f17d607025f07efdbb (patch) | |
| tree | 4d73278ab811280d57fde01d7635e4b3898b09f2 /src/db/schema.rs | |
| parent | 652a36f172df43c080d6dc1d3680166ee3045f82 (diff) | |
support message deletion0.1.4
Diffstat (limited to 'src/db/schema.rs')
| -rw-r--r-- | src/db/schema.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/db/schema.rs b/src/db/schema.rs index 1822204..8749731 100644 --- a/src/db/schema.rs +++ b/src/db/schema.rs @@ -45,12 +45,23 @@ table! { } } +table! { + tombstones (id) { + id -> Int4, + meme_id -> Int4, + deleted_by -> Int8, + deleted_at -> Timestamp, + metadata_id -> Nullable<Int4>, + } +} + joinable!(audio -> metadata (metadata_id)); joinable!(audit_records -> metadata (metadata_id)); joinable!(images -> metadata (metadata_id)); joinable!(memes -> audio (audio_id)); joinable!(memes -> images (image_id)); joinable!(memes -> metadata (metadata_id)); +joinable!(tombstones -> metadata (metadata_id)); allow_tables_to_appear_in_same_query!( audio, @@ -58,4 +69,5 @@ allow_tables_to_appear_in_same_query!( images, memes, metadata, + tombstones, ); |
