schema(rust) first pass

This commit is contained in:
shockrah 2020-02-05 14:17:07 -08:00
parent 7c3420287e
commit 12b666518c

22
server/src/schema.rs Normal file
View File

@ -0,0 +1,22 @@
table! {
invites (id) {
id -> Unsigned<Bigint>,
expires -> Unsigned<Bigint>,
uses -> Nullable<Integer>,
}
}
table! {
users (id) {
id -> Bigint,
username -> Varchar,
display -> Nullable<Varchar>,
password -> Varchar,
email -> Nullable<Varchar>,
}
}
allow_tables_to_appear_in_same_query!(
invites,
users,
);