schema(rust) first pass
This commit is contained in:
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,
|
||||
);
|
||||
Reference in New Issue
Block a user