You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
746 B
Rust
43 lines
746 B
Rust
table! {
|
|
gifs (id) {
|
|
id -> Int8,
|
|
category -> Nullable<Varchar>,
|
|
name -> Nullable<Varchar>,
|
|
url -> Varchar,
|
|
}
|
|
}
|
|
|
|
table! {
|
|
guild_playlists (guild_id, name) {
|
|
guild_id -> Int8,
|
|
name -> Varchar,
|
|
url -> Varchar,
|
|
}
|
|
}
|
|
|
|
table! {
|
|
guild_settings (guild_id, key) {
|
|
guild_id -> Int8,
|
|
key -> Varchar,
|
|
value -> Nullable<Varchar>,
|
|
}
|
|
}
|
|
|
|
table! {
|
|
statistics (id) {
|
|
id -> Int8,
|
|
version -> Varchar,
|
|
command -> Varchar,
|
|
executed_at -> Timestamp,
|
|
success -> Bool,
|
|
error_msg -> Nullable<Text>,
|
|
}
|
|
}
|
|
|
|
allow_tables_to_appear_in_same_query!(
|
|
gifs,
|
|
guild_playlists,
|
|
guild_settings,
|
|
statistics,
|
|
);
|