add crud signer
This commit is contained in:
@ -16,6 +16,7 @@ return new class extends Migration
|
||||
Schema::table('', function (Blueprint $table) {
|
||||
Schema::create('fasilitas', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nomor_cif');
|
||||
$table->string('nomor_rekening');
|
||||
$table->string('jenis_fasilitas');
|
||||
$table->string('saldo');
|
||||
@ -44,4 +45,4 @@ return new class extends Migration
|
||||
{
|
||||
Schema::dropIfExists('fasilitas');
|
||||
}
|
||||
};
|
||||
};
|
||||
|
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('fasilitas', function (Blueprint $table) {
|
||||
$table->string('nomor_cif');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('fasilitas', function (Blueprint $table) {
|
||||
|
||||
});
|
||||
}
|
||||
};
|
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('fasilitas', function (Blueprint $table) {
|
||||
$table->string('cabang');
|
||||
$table->string('periode');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('fasilitas', function (Blueprint $table) {
|
||||
|
||||
});
|
||||
}
|
||||
};
|
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('signers', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('nomor_cif');
|
||||
$table->string('deputy_director_name');
|
||||
$table->string('executive_officer_name');
|
||||
$table->string('keterangan');
|
||||
$table->string('status', 1)->default('1');
|
||||
$table->timestamps();
|
||||
$table->softDeletes();
|
||||
$table->unsignedBigInteger("created_by")->nullable();
|
||||
$table->unsignedBigInteger("updated_by")->nullable();
|
||||
$table->unsignedBigInteger("deleted_by")->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('signers');
|
||||
}
|
||||
};
|
@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::table('fasilitas', function (Blueprint $table) {
|
||||
$table->string('signer_id');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('fasilitas', function (Blueprint $table) {
|
||||
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user