new_users fields are more explicit
also easier to work with given current goals
This commit is contained in:
parent
c2c82aec9b
commit
57db968568
@ -1,6 +1,6 @@
|
||||
-- Used only for those that have been given an invite and are currently using that invite
|
||||
CREATE TABLE IF NOT EXISTS `new_users` (
|
||||
`token` bigint NOT NULL,
|
||||
`invite_id` bigint NOT NULL,
|
||||
`token` VARCHAR(255) NOT NULL,
|
||||
`invite_id` bigint UNSIGNED NOT NULL,
|
||||
PRIMARY KEY(`token`)
|
||||
);
|
@ -6,6 +6,13 @@ table! {
|
||||
}
|
||||
}
|
||||
|
||||
table! {
|
||||
new_users (token) {
|
||||
token -> Varchar,
|
||||
invite_id -> Unsigned<Bigint>,
|
||||
}
|
||||
}
|
||||
|
||||
table! {
|
||||
users (id) {
|
||||
id -> Bigint,
|
||||
@ -18,5 +25,6 @@ table! {
|
||||
|
||||
allow_tables_to_appear_in_same_query!(
|
||||
invites,
|
||||
new_users,
|
||||
users,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user