From c61b156f1bd93ec4aadd8adc78523b42b0232918 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sun, 4 Sep 2016 23:30:15 +0200 Subject: User creation and authentication --- .../2016_09_04_081740_create_users_table.php | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2016_09_04_081740_create_users_table.php (limited to 'database') diff --git a/database/migrations/2016_09_04_081740_create_users_table.php b/database/migrations/2016_09_04_081740_create_users_table.php new file mode 100644 index 0000000..c5586dc --- /dev/null +++ b/database/migrations/2016_09_04_081740_create_users_table.php @@ -0,0 +1,33 @@ +increments('id'); + $table->string('email')->unique(); + $table->string('name')->unique(); + $table->string('password'); + $table->integer('points')->default(0); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::drop('users'); + } +} -- cgit v1.2.3