diff --git a/server/src/schema.rs b/server/src/schema.rs new file mode 100644 index 0000000..22d1baa --- /dev/null +++ b/server/src/schema.rs @@ -0,0 +1,22 @@ +table! { + invites (id) { + id -> Unsigned, + expires -> Unsigned, + uses -> Nullable, + } +} + +table! { + users (id) { + id -> Bigint, + username -> Varchar, + display -> Nullable, + password -> Varchar, + email -> Nullable, + } +} + +allow_tables_to_appear_in_same_query!( + invites, + users, +);