schema(rust) first pass
This commit is contained in:
1 parent
7c3420287e
commit
12b666518c
1 file changed
+22
@@ -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