update big migrate
All checks were successful
Build, Push and Deploy / build-and-push (push) Successful in 4m17s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 20s
Build, Push and Deploy / deploy-staging (push) Successful in 35s
Build, Push and Deploy / deploy-production (push) Has been skipped

This commit is contained in:
2026-05-05 15:29:32 +07:00
parent e34027132e
commit 30de18d283
24 changed files with 970 additions and 30 deletions

View File

@@ -11,14 +11,16 @@
*/
public function up(): void
{
Schema::create('departments', function (Blueprint $table) {
$table->id();
$table->foreignId('business_id')->constrained()->cascadeOnDelete();
$table->string('name')->nullable();
$table->text('description')->nullable();
$table->boolean('status')->default(1);
$table->timestamps();
});
if (!Schema::hasTable('departments')) {
Schema::create('departments', function (Blueprint $table) {
$table->id();
$table->foreignId('business_id')->constrained()->cascadeOnDelete();
$table->string('name')->nullable();
$table->text('description')->nullable();
$table->boolean('status')->default(1);
$table->timestamps();
});
}
}
/**

View File

@@ -11,14 +11,16 @@
*/
public function up(): void
{
Schema::create('designations', function (Blueprint $table) {
$table->id();
$table->string('name')->nullable();
$table->foreignId('business_id')->constrained()->cascadeOnDelete();
$table->text('description')->nullable();
$table->boolean('status')->default(1);
$table->timestamps();
});
if (!Schema::hasTable('designations')) {
Schema::create('designations', function (Blueprint $table) {
$table->id();
$table->string('name')->nullable();
$table->foreignId('business_id')->constrained()->cascadeOnDelete();
$table->text('description')->nullable();
$table->boolean('status')->default(1);
$table->timestamps();
});
}
}
/**

View File

@@ -11,19 +11,21 @@
*/
public function up(): void
{
Schema::create('shifts', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->foreignId('business_id')->constrained()->cascadeOnDelete();
$table->time('start_time');
$table->time('end_time');
$table->time('start_break_time')->nullable();
$table->time('end_break_time')->nullable();
$table->time('break_time')->nullable();
$table->string('break_status')->nullable();
$table->boolean('status')->default(1);
$table->timestamps();
});
if (!Schema::hasTable('shifts')) {
Schema::create('shifts', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->foreignId('business_id')->constrained()->cascadeOnDelete();
$table->time('start_time');
$table->time('end_time');
$table->time('start_break_time')->nullable();
$table->time('end_break_time')->nullable();
$table->time('break_time')->nullable();
$table->string('break_status')->nullable();
$table->boolean('status')->default(1);
$table->timestamps();
});
}
}
/**