Update migration

This commit is contained in:
Daeng Deni Mardaeni 2023-06-12 16:59:37 +07:00
parent 61fb6e50be
commit fe0eded740
9 changed files with 36 additions and 3 deletions

View File

@ -15,12 +15,16 @@
$table->id(); $table->id();
$table->string('kode', 2); $table->string('kode', 2);
$table->string('name', 50); $table->string('name', 50);
$table->string('status', 1)->default(0);
$table->timestamps(); $table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
}); });
} }

View File

@ -16,12 +16,15 @@
$table->foreignId('directorat_id')->constrained('directorats')->onDelete('cascade'); $table->foreignId('directorat_id')->constrained('directorats')->onDelete('cascade');
$table->string('kode', 2); $table->string('kode', 2);
$table->string('name', 50); $table->string('name', 50);
$table->string('status', 1)->default(0);
$table->timestamps(); $table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
}); });
} }

View File

@ -17,12 +17,15 @@
$table->foreignId('sub_directorat_id')->constrained('sub_directorats')->onDelete('cascade'); $table->foreignId('sub_directorat_id')->constrained('sub_directorats')->onDelete('cascade');
$table->string('kode', 2); $table->string('kode', 2);
$table->string('name', 50); $table->string('name', 50);
$table->string('status', 1)->default(0);
$table->timestamps(); $table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
}); });
} }

View File

@ -18,12 +18,15 @@
$table->foreignId('job_id')->constrained('jobs')->onDelete('cascade'); $table->foreignId('job_id')->constrained('jobs')->onDelete('cascade');
$table->string('kode', 2); $table->string('kode', 2);
$table->string('name', 50); $table->string('name', 50);
$table->string('status', 1)->default(0);
$table->timestamps(); $table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
}); });
} }

View File

@ -19,12 +19,15 @@
$table->foreignId('directorat_id')->constrained('directorats')->onDelete('cascade'); $table->foreignId('directorat_id')->constrained('directorats')->onDelete('cascade');
$table->string('kode'); $table->string('kode');
$table->string('name'); $table->string('name');
$table->string('status', 1)->default(0);
$table->timestamps(); $table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
}); });
} }

View File

@ -15,12 +15,15 @@
$table->id(); $table->id();
$table->string('kode', 2); $table->string('kode', 2);
$table->string('name'); $table->string('name');
$table->string('status', 1)->default(0);
$table->timestamps(); $table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
}); });
} }

View File

@ -16,12 +16,15 @@
$table->string('kode', 2); $table->string('kode', 2);
$table->string('name'); $table->string('name');
$table->string('description')->nullable(); $table->string('description')->nullable();
$table->string('status', 1)->default(0);
$table->timestamps(); $table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
}); });
} }

View File

@ -31,13 +31,14 @@
$table->string('kode_dus', 6); $table->string('kode_dus', 6);
$table->string('kode_odner', 8); $table->string('kode_odner', 8);
$table->string('status')->default(0)->nullable(); $table->string('status')->default(0)->nullable();
$table->timestamps(); $table->timestamps();
$table->timestamp('authorized_at')->nullable();
$table->softDeletes(); $table->softDeletes();
$table->unsignedBigInteger('created_by')->nullable(); $table->unsignedBigInteger('created_by')->nullable();
$table->unsignedBigInteger('updated_by')->nullable(); $table->unsignedBigInteger('updated_by')->nullable();
$table->unsignedBigInteger('deleted_by')->nullable(); $table->unsignedBigInteger('deleted_by')->nullable();
$table->unsignedBigInteger('authorized_by')->nullable();
}); });
} }

View File

@ -1,10 +1,20 @@
@canany(['document.read','document.create','document.update','document.delete']) @canany(['document.read','document.create','document.update','document.delete'])
<!--begin:Menu item-->
<div class="menu-item {{ $route[0] == 'dus' ? 'here' : '' }}">
<!--begin:Menu link-->
<a class="menu-link {{ $route[0] == 'dus' ? 'active' : '' }}" href="{{ route('dus.index') }}">
<span class="menu-icon">{!! getIcon('parcel', 'fs-2') !!}</span>
<span class="menu-title">Dus Management</span>
</a>
<!--end:Menu link-->
</div>
<!--end:Menu item-->
<!--begin:Menu item--> <!--begin:Menu item-->
<div class="menu-item {{ $route[0] == 'document' ? 'here' : '' }}"> <div class="menu-item {{ $route[0] == 'document' ? 'here' : '' }}">
<!--begin:Menu link--> <!--begin:Menu link-->
<a class="menu-link {{ $route[0] == 'document' ? 'active' : '' }}" href="{{ route('document.index') }}"> <a class="menu-link {{ $route[0] == 'document' ? 'active' : '' }}" href="{{ route('document.index') }}">
<span class="menu-icon">{!! getIcon('profile-user', 'fs-2') !!}</span> <span class="menu-icon">{!! getIcon('file', 'fs-2') !!}</span>
<span class="menu-title">Document Management</span> <span class="menu-title">File Management</span>
</a> </a>
<!--end:Menu link--> <!--end:Menu link-->
</div> </div>