extend users table
This commit is contained in:
parent
7e678fc2f3
commit
90379aa218
@ -20,10 +20,30 @@ diesel::table! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
diesel::table! {
|
diesel::table! {
|
||||||
users (id) {
|
teloxide_dialogues (chat_id) {
|
||||||
id -> Int8,
|
chat_id -> Int8,
|
||||||
is_admin -> Bool,
|
dialogue -> Bytea,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
diesel::allow_tables_to_appear_in_same_query!(literals, messages, users,);
|
diesel::table! {
|
||||||
|
users (id) {
|
||||||
|
id -> Int8,
|
||||||
|
is_admin -> Bool,
|
||||||
|
#[max_length = 255]
|
||||||
|
first_name -> Varchar,
|
||||||
|
#[max_length = 255]
|
||||||
|
last_name -> Nullable<Varchar>,
|
||||||
|
#[max_length = 255]
|
||||||
|
username -> Nullable<Varchar>,
|
||||||
|
#[max_length = 10]
|
||||||
|
language_code -> Nullable<Varchar>,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
diesel::allow_tables_to_appear_in_same_query!(
|
||||||
|
literals,
|
||||||
|
messages,
|
||||||
|
teloxide_dialogues,
|
||||||
|
users,
|
||||||
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user