event implementation

This commit is contained in:
Čarodej
2021-11-19 17:08:49 +01:00
parent 496a6ea5a7
commit 7c5cb79677
32 changed files with 135 additions and 121 deletions

View File

@@ -48,7 +48,7 @@ class UserFactory extends Factory
$user
->settings()
->create([
'storage_capacity' => $this->faker->randomNumber(1),
'max_storage_amount' => $this->faker->randomNumber(1),
'name' => $this->faker->name,
'address' => $this->faker->address,
'state' => $this->faker->state,

View File

@@ -15,7 +15,7 @@ class CreateUserSettingsTable extends Migration
{
Schema::create('user_settings', function (Blueprint $table) {
$table->uuid('user_id')->index();
$table->integer('storage_capacity')->default(5);
$table->integer('max_storage_amount')->default(5);
$table->string('avatar')->nullable();
$table->string('color')->nullable();
$table->text('name')->nullable();