Allow multiple reminder dates for a single chat group
This commit is contained in:
@@ -1,15 +1,29 @@
|
||||
// @generated automatically by Diesel CLI.
|
||||
|
||||
diesel::table! {
|
||||
chat (id) {
|
||||
id -> Integer,
|
||||
telegram_id -> BigInt,
|
||||
calendar -> Text,
|
||||
next_appointment_start -> Nullable<BigInt>,
|
||||
next_appointment_end -> Nullable<BigInt>,
|
||||
last_reminder -> Nullable<BigInt>,
|
||||
pinned_message_id -> Nullable<Integer>,
|
||||
locale -> Nullable<Text>,
|
||||
remind_days_ahead -> BigInt,
|
||||
}
|
||||
chat (id) {
|
||||
id -> Integer,
|
||||
telegram_id -> BigInt,
|
||||
calendar -> Text,
|
||||
next_appointment_start -> Nullable<BigInt>,
|
||||
next_appointment_end -> Nullable<BigInt>,
|
||||
last_reminder -> Nullable<BigInt>,
|
||||
pinned_message_id -> Nullable<Integer>,
|
||||
locale -> Nullable<Text>,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::table! {
|
||||
reminder (id) {
|
||||
id -> Integer,
|
||||
chat_id -> Integer,
|
||||
days_ahead -> BigInt,
|
||||
}
|
||||
}
|
||||
|
||||
diesel::joinable!(reminder -> chat (chat_id));
|
||||
|
||||
diesel::allow_tables_to_appear_in_same_query!(
|
||||
chat,
|
||||
reminder,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user