|
@@ -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();
|
|
|
});
|
|
|
}
|