1
0
mirror of https://github.com/actix/examples synced 2024-12-03 10:12:14 +01:00
examples/simple-auth-server/src/schema.rs
2018-12-09 18:55:36 +03:00

21 lines
316 B
Rust

table! {
invitations (id) {
id -> Uuid,
email -> Varchar,
expires_at -> Timestamp,
}
}
table! {
users (email) {
email -> Varchar,
password -> Varchar,
created_at -> Timestamp,
}
}
allow_tables_to_appear_in_same_query!(
invitations,
users,
);