new_users fields are more explicit

also easier to work with given current goals
This commit is contained in:
shockrah 2020-02-07 15:43:46 -08:00
parent c2c82aec9b
commit 57db968568
2 changed files with 10 additions and 2 deletions

View File

@ -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`)
);

View File

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