schema(rust) first pass
This commit is contained in:
parent
7c3420287e
commit
12b666518c
22
server/src/schema.rs
Normal file
22
server/src/schema.rs
Normal 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,
|
||||||
|
);
|
Loading…
Reference in New Issue
Block a user