Lots of changes

This commit is contained in:
Simon Pocrnjič
2024-11-13 22:11:07 +01:00
parent 90a5858320
commit 953ff38d64
76 changed files with 2822 additions and 427 deletions
@@ -15,7 +15,7 @@ public function up(): void
$table->id();
$table->string('name',50);
$table->string('description',125)->nullable();
$table->unsignedTinyInteger('deleted')->default(0);
$table->softDeletes();
$table->timestamps();
});
@@ -24,7 +24,8 @@ public function up(): void
$table->id();
$table->string('name',50);
$table->string('description',125)->nullable();
$table->unsignedTinyInteger('deleted')->default(0);
$table->string('color_tag', 50)->nullable();
$table->softDeletes();
$table->timestamps();
});
@@ -33,7 +34,7 @@ public function up(): void
$table->id();
$table->string('name',50);
$table->string('description',125)->nullable();
$table->unsignedTinyInteger('deleted')->default(0);
$table->softDeletes();
$table->timestamps();
});
@@ -42,7 +43,7 @@ public function up(): void
$table->id();
$table->string('name',50);
$table->string('description',125)->nullable();
$table->unsignedTinyInteger('deleted')->default(0);
$table->softDeletes();
$table->timestamps();
});
@@ -62,7 +63,7 @@ public function up(): void
$table->foreignId('group_id')->references('id')->on('person_groups');
$table->foreignId('type_id')->references('id')->on('person_types');
$table->unsignedTinyInteger('active')->default(1);
$table->unsignedTinyInteger('deleted')->default(0);
$table->softDeletes();
$table->foreignIdFor(\App\Models\User::class);
$table->timestamps();
});
@@ -75,7 +76,7 @@ public function up(): void
$table->string('description',125)->nullable();
$table->foreignIdFor(\App\Models\Person\Person::class);
$table->unsignedTinyInteger('active')->default(1);
$table->unsignedTinyInteger('deleted')->default(0);
$table->softDeletes();
$table->foreignIdFor(\App\Models\User::class);
$table->timestamps();
@@ -89,7 +90,7 @@ public function up(): void
$table->string('description',125)->nullable();
$table->foreignIdFor(\App\Models\Person\Person::class);
$table->unsignedTinyInteger('active')->default(1);
$table->unsignedTinyInteger('deleted')->default(0);
$table->softDeletes();
$table->foreignIdFor(\App\Models\User::class);
$table->timestamps();