table! {
notifications (id) {
id -> Text,
payload_title -> Text,
payload_body -> Text,
created -> Timestamp,
recipients -> Array<Text>,
}
}
table! {
user_notifications (notification_id) {
notification_id -> Text,
user_id -> Text,
unread -> Bool,
}
}
table! {
notification_properties (id) {
id -> Int8,
notification_id -> Text,
property -> Text,
property_value -> Text,
}
}
joinable!(user_notifications -> notifications (notification_id));
joinable!(notification_properties -> notifications (notification_id));
allow_tables_to_appear_in_same_query!(notifications, user_notifications, notification_properties);