Browse Source

designed users table

Exylience 3 years ago
parent
commit
4919bafe6d
1 changed files with 6 additions and 0 deletions
  1. 6 0
      database/migrations/2021_05_04_083506_create_users_table.php

+ 6 - 0
database/migrations/2021_05_04_083506_create_users_table.php

@@ -15,6 +15,12 @@ class CreateUsersTable extends Migration
     {
         Schema::create('users', function (Blueprint $table) {
             $table->id();
+            $table->string('full_name');
+            $table->string('login')->unique();
+            $table->string('password');
+            $table->integer('user_group')->default(1); // TODO: нужно продумать группы пользователей и их привилегии
+            $table->dateTime('last_visit')->nullable();
+
             $table->timestamps();
         });
     }