Upload Data temp realisasi belanja dbh
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateUnitSatuanTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('unit_satuan', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string("nama_satuan",10);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('unit_satuan');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class CreateTempRealisasiBelanjaTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('temp_realisasi_belanja', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string("tahun_anggaran",4);
|
||||
$table->string("jenis_belanja",50);
|
||||
$table->string("sub_jenis_belanja",50);
|
||||
$table->string("kode_program",50);
|
||||
$table->string("nama_program",150);
|
||||
$table->string("kode_skpd",50);
|
||||
$table->string("nama_skpd",150);
|
||||
$table->string("kode_kegiatan",50);
|
||||
$table->string("nama_kegiatan",150);
|
||||
$table->string("kode_sub_kegiatan",50);
|
||||
$table->string("nama_sub_kegiatan",150);
|
||||
$table->string("kode_rsk",50);
|
||||
$table->text("nama_rsk");
|
||||
$table->string("kode_rekening",50);
|
||||
$table->string("nama_rekening",150);
|
||||
$table->decimal('jumlah_anggaran', 19, 2);
|
||||
$table->tinyInteger('volume_satuan');
|
||||
$table->string('unit_satuan',30);
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('temp_realisasi_belanja');
|
||||
}
|
||||
}
|
||||
@@ -16,6 +16,7 @@ class DatabaseSeeder extends Seeder
|
||||
// \App\Models\User::factory(10)->create();
|
||||
// $this->call(PermissionSeeder::class);
|
||||
// $this->call(RolesTableSeeder::class);
|
||||
$this->call(UsersTableSeeder::class);
|
||||
// $this->call(UsersTableSeeder::class);
|
||||
// $this->call(SatuanTableSeeder::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use App\Models\UnitSatuan;
|
||||
|
||||
class SatuanTableSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
UnitSatuan::truncate();
|
||||
|
||||
$satuan = new UnitSatuan;
|
||||
$satuan->nama_satuan = "m2";
|
||||
$satuan->save();
|
||||
|
||||
$satuan = new UnitSatuan;
|
||||
$satuan->nama_satuan = "unit";
|
||||
$satuan->save();
|
||||
|
||||
$satuan = new UnitSatuan;
|
||||
$satuan->nama_satuan = "km";
|
||||
$satuan->save();
|
||||
|
||||
$satuan = new UnitSatuan;
|
||||
$satuan->nama_satuan = "orang";
|
||||
$satuan->save();
|
||||
|
||||
$satuan = new UnitSatuan;
|
||||
$satuan->nama_satuan = "paket";
|
||||
$satuan->save();
|
||||
}
|
||||
}
|
||||
@@ -17,46 +17,46 @@ class UsersTableSeeder extends Seeder
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
// User::truncate();
|
||||
User::truncate();
|
||||
|
||||
// $user = new User;
|
||||
// $user->name = "Superadmin";
|
||||
// $user->nrk = "superadmin";
|
||||
// $user->password = Hash::make('superadmin123!');
|
||||
// $user->save();
|
||||
$user = new User;
|
||||
$user->name = "Superadmin";
|
||||
$user->nrk = "superadmin";
|
||||
$user->password = Hash::make('superadmin123!');
|
||||
$user->save();
|
||||
|
||||
// $user->assignRole('superadmin');
|
||||
$user->assignRole('superadmin');
|
||||
|
||||
// $user = new User;
|
||||
// $user->name = "admin";
|
||||
// $user->nrk = "admin";
|
||||
// $user->password = Hash::make('admin321!');
|
||||
// $user->save();
|
||||
$user = new User;
|
||||
$user->name = "admin";
|
||||
$user->nrk = "admin";
|
||||
$user->password = Hash::make('admin321!');
|
||||
$user->save();
|
||||
|
||||
// $user->assignRole('admin');
|
||||
$user->assignRole('admin');
|
||||
|
||||
// $user = new User;
|
||||
// $user->name = "anggaran";
|
||||
// $user->nrk = "anggaran";
|
||||
// $user->password = Hash::make('anggaran321');
|
||||
// $user->save();
|
||||
$user = new User;
|
||||
$user->name = "anggaran";
|
||||
$user->nrk = "anggaran";
|
||||
$user->password = Hash::make('anggaran321');
|
||||
$user->save();
|
||||
|
||||
// $user->assignRole('anggaran');
|
||||
$user->assignRole('anggaran');
|
||||
|
||||
// $user = new User;
|
||||
// $user->name = "skpd";
|
||||
// $user->nrk = "skpd";
|
||||
// $user->password = Hash::make('skpd321');
|
||||
// $user->save();
|
||||
$user = new User;
|
||||
$user->name = "skpd";
|
||||
$user->nrk = "skpd";
|
||||
$user->password = Hash::make('skpd321');
|
||||
$user->save();
|
||||
|
||||
// $user->assignRole('skpd');
|
||||
$user->assignRole('skpd');
|
||||
|
||||
// $user = new User;
|
||||
// $user->name = "bendahara";
|
||||
// $user->nrk = "bendahara";
|
||||
// $user->password = Hash::make('bendahara321');
|
||||
// $user->save();
|
||||
$user = new User;
|
||||
$user->name = "bendahara";
|
||||
$user->nrk = "bendahara";
|
||||
$user->password = Hash::make('bendahara321');
|
||||
$user->save();
|
||||
|
||||
// $user->assignRole('bendahara');
|
||||
$user->assignRole('bendahara');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user