Rename database tables to use plural names

This commit is contained in:
Manuel Vögele
2024-01-22 16:45:21 +01:00
parent 97ca239ee1
commit d338f89a15
6 changed files with 42 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
// @generated automatically by Diesel CLI.
diesel::table! {
chat (id) {
chats (id) {
id -> Integer,
telegram_id -> BigInt,
calendar -> Text,
@@ -14,16 +14,16 @@ diesel::table! {
}
diesel::table! {
reminder (id) {
reminders (id) {
id -> Integer,
chat_id -> Integer,
days_ahead -> BigInt,
}
}
diesel::joinable!(reminder -> chat (chat_id));
diesel::joinable!(reminders -> chats (chat_id));
diesel::allow_tables_to_appear_in_same_query!(
chat,
reminder,
chats,
reminders,
);