1
0
mirror of https://github.com/actix/examples synced 2024-12-04 02:32:12 +01:00
examples/simple-auth-server/src/schema.rs

21 lines
316 B
Rust
Raw Normal View History

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,
);