Merge branch 'staging' of https://git.putrakuningan.com/daengdeni/lpj into andydev
This commit is contained in:
@@ -18,23 +18,30 @@ return new class extends Migration
|
||||
$table->string('jenis_kantor');
|
||||
$table->string('nomor_ijin_usaha');
|
||||
$table->string('province_code');
|
||||
$table->string('city_code');
|
||||
$table->string('district_code');
|
||||
$table->string('village_code');
|
||||
$table->string('city_code')->nullable();
|
||||
$table->string('district_code')->nullable();
|
||||
$table->string('village_code')->nullable();
|
||||
$table->string('address');
|
||||
$table->string('postal_code');
|
||||
$table->string('nomor_telepon_kantor');
|
||||
$table->string('postal_code')->nullable();
|
||||
$table->string('nomor_telepon_kantor')->nullable();
|
||||
$table->string('email_kantor');
|
||||
$table->string('detail_email_kantor')->nullable();
|
||||
$table->string('nama_pimpinan');
|
||||
$table->string('nomor_hp_pimpinan');
|
||||
$table->string('nama_pic_reviewer');
|
||||
$table->string('nomor_hp_pic_reviewer');
|
||||
$table->string('nama_pic_admin');
|
||||
$table->string('nomor_hp_pic_admin');
|
||||
$table->string('nama_pic_marketing');
|
||||
$table->string('nomor_hp_pic_marketing');
|
||||
$table->string('ijin_usaha_id')->nullable();
|
||||
$table->string('jenis_aset_id')->nullable();
|
||||
$table->string('nama_pic_reviewer')->nullable();
|
||||
$table->string('detail_nama_pic_reviewer')->nullable();
|
||||
$table->string('nomor_hp_pic_reviewer')->nullable();
|
||||
$table->string('detail_nomor_hp_pic_reviewer')->nullable();
|
||||
$table->string('nama_pic_admin')->nullable();
|
||||
$table->string('detail_nama_pic_admin')->nullable();
|
||||
$table->string('nomor_hp_pic_admin')->nullable();
|
||||
$table->string('detail_nomor_hp_pic_admin')->nullable();
|
||||
$table->string('nama_pic_marketing')->nullable();
|
||||
$table->string('detail_nama_pic_marketing')->nullable();
|
||||
$table->string('nomor_hp_pic_marketing')->nullable();
|
||||
$table->string('detail_nomor_hp_pic_marketing')->nullable();
|
||||
$table->string('ijin_usaha_id');
|
||||
$table->string('jenis_aset_id');
|
||||
$table->string('attachment')->nullable();
|
||||
$table->boolean('status')->default(true)->nullable();
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
|
||||
@@ -4,20 +4,22 @@ use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class () extends Migration {
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('penilaian_team', function (Blueprint $table) {
|
||||
Schema::create('permohonan_histories', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->unsignedBigInteger('penilaian_id');
|
||||
$table->unsignedBigInteger('team_id');
|
||||
$table->unsignedBigInteger('user_id');
|
||||
$table->string('role');
|
||||
$table->boolean('status')->default(true);
|
||||
$table->char('authorized_status', 1)->nullable();
|
||||
$table->unsignedBigInteger('permohonan_id');
|
||||
$table->string('status');
|
||||
$table->text('keterangan')->nullable();
|
||||
$table->json('before_request')->nullable();
|
||||
$table->json('after_request')->nullable();
|
||||
$table->string('file_path')->nullable();
|
||||
$table->unsignedBigInteger('user_id')->nullable();
|
||||
$table->timestamps();
|
||||
$table->timestamp('authorized_at')->nullable();
|
||||
$table->unsignedBigInteger('authorized_by')->nullable();
|
||||
@@ -25,6 +27,9 @@ return new class () extends Migration {
|
||||
$table->unsignedBigInteger('created_by')->nullable();
|
||||
$table->unsignedBigInteger('updated_by')->nullable();
|
||||
$table->unsignedBigInteger('deleted_by')->nullable();
|
||||
|
||||
$table->foreign('permohonan_id')->references('id')->on('permohonan')->onDelete('cascade');
|
||||
$table->foreign('user_id')->references('id')->on('users')->onDelete('set null');
|
||||
});
|
||||
}
|
||||
|
||||
@@ -33,6 +38,6 @@ return new class () extends Migration {
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('penilai_team');
|
||||
Schema::dropIfExists('permohonan_histories');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user