From 811c6902ac954897618fb846d9a1928f6fc4ac7b Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 6 May 2020 00:35:01 -0700 Subject: [PATCH] new users schema changed column names to be more concise --- server/migrations/2020-02-04-083551_users/up.sql | 8 ++++---- server/src/schema.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/migrations/2020-02-04-083551_users/up.sql b/server/migrations/2020-02-04-083551_users/up.sql index 8e416ee..b67a006 100644 --- a/server/migrations/2020-02-04-083551_users/up.sql +++ b/server/migrations/2020-02-04-083551_users/up.sql @@ -4,10 +4,10 @@ -- password: yea -- email: used for signing in to the server CREATE TABLE IF NOT EXISTS `users` ( - `userid` bigint UNSIGNED NOT NULL auto_increment, - `username` varchar(255) NOT NULL, - `key` varchar(255) NOT NULL, + `id` bigint UNSIGNED NOT NULL auto_increment, + `name` varchar(255) NOT NULL, + `secret` varchar(255) NOT NULL, `date` bigint UNSIGNED NOT NULL, `status` int NOT NULL, - PRIMARY KEY( `userid` ) + PRIMARY KEY( `id` ) ); \ No newline at end of file diff --git a/server/src/schema.rs b/server/src/schema.rs index 22bc4e5..020daa0 100644 --- a/server/src/schema.rs +++ b/server/src/schema.rs @@ -18,10 +18,10 @@ table! { } table! { - users (userid) { - userid -> Unsigned, - username -> Varchar, - key -> Varchar, + users (id) { + id -> Unsigned, + name -> Varchar, + secret -> Varchar, date -> Unsigned, status -> Integer, }