mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
added it_update_user_settings, it_update_user_avatar test
This commit is contained in:
@@ -27,7 +27,6 @@ class UserFactory extends Factory
|
||||
'role' => $this->faker->randomElement(
|
||||
['user', 'admin']
|
||||
),
|
||||
'name' => $this->faker->name(),
|
||||
'email' => $this->faker->unique()->safeEmail,
|
||||
'email_verified_at' => now(),
|
||||
'password' => Hash::make('secret'),
|
||||
|
||||
@@ -16,8 +16,6 @@ class CreateUsersTable extends Migration
|
||||
Schema::create('users', function (Blueprint $table) {
|
||||
$table->uuid('id');
|
||||
$table->enum('role', ['admin', 'user'])->default('user');
|
||||
$table->string('name');
|
||||
$table->string('avatar')->nullable();
|
||||
$table->string('email')->unique();
|
||||
$table->timestamp('email_verified_at')->nullable();
|
||||
$table->string('password');
|
||||
|
||||
@@ -16,6 +16,7 @@ class CreateUserSettingsTable extends Migration
|
||||
Schema::create('user_settings', function (Blueprint $table) {
|
||||
$table->uuid('user_id');
|
||||
$table->integer('storage_capacity')->default(5);
|
||||
$table->string('avatar')->nullable();
|
||||
$table->text('name')->nullable();
|
||||
$table->text('address')->nullable();
|
||||
$table->text('state')->nullable();
|
||||
|
||||
Reference in New Issue
Block a user