update
parent
587bdaeb81
commit
5a71b80854
|
@ -38,9 +38,15 @@ class HomeController extends Controller
|
|||
$data['dataset'] = Dataset::orderBy('DatasetId','DESC')->whereIn('instansi_id',[auth()->user()->ms_instansi_id])->limit(10)->get();
|
||||
}
|
||||
// $data['dataset'] = Dataset::orderBy('DatasetId','DESC')->limit(10)->get();
|
||||
$data['group'] = Group::where('MsGroupId','!=',1)->where('name','!=','Balai')->get();
|
||||
$data['resource'] = Template::with(['dataset'])->where('show_dashboard',1)->get();
|
||||
$data['classDataset'] = Dataset::class;
|
||||
$data['group'] = Group::where('MsGroupId','!=',1)->where('name','!=','Balai')->get();
|
||||
if(session('group_id') == 1){
|
||||
$data['resource'] = Template::with(['dataset'])->where('show_dashboard',1)->get();
|
||||
}else{
|
||||
$data['resource'] = Template::with(['dataset'])->whereHas('dataset',function($query){
|
||||
$query->where('instansi_id',auth()->user()->ms_instansi_id);
|
||||
})->where('show_dashboard',1)->get();
|
||||
}
|
||||
$data['classDataset'] = Dataset::class;
|
||||
|
||||
return view($this->template.'.dashboard',$data);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable1 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable10 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable11 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable12 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable13 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable14 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable15 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable16 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable17 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable18 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable19 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable2 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable20 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable21 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable22 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable23 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable24 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable25 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable26 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable27 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable28 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable29 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable3 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable30 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable31 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable32 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable33 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable34 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable35 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable36 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable37 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable38 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable39 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable39A extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable4 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable40 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable41 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable41A extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable42 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable43 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable43A extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable43B extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable44 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable44A extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable44B extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable45 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable46 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable47 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable48 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable48A extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable49 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable5 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable50 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable50A extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable51 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable52 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable53 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable54 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable55 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable56 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable57 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable58 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable59 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable6 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable60 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable60A extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable61 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable7 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable8 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models\Dataset;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DatasetTable9 extends Model
|
||||
{
|
||||
use HasFactory;
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table1', function (Blueprint $table) {
|
||||
$table->id('DatasetTable1Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('nama_kawasan_1')->nullable();
|
||||
$table->string('nama_kawasan_2')->nullable();
|
||||
$table->string('nama_kawasan_3')->nullable();
|
||||
$table->string('nama_kawasan_4')->nullable();
|
||||
$table->float('luas_kawasan')->default(0);
|
||||
$table->float('tutupan_lahan_vegetasi')->default(0);
|
||||
$table->float('tutupan_lahan_area_terbangun')->default(0);
|
||||
$table->float('tutupan_lahan_tanah_terbuka')->default(0);
|
||||
$table->float('tutupan_lahan_badan_air')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table1s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table2', function (Blueprint $table) {
|
||||
$table->id('DatasetTable2Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('kabupaten_kota')->nullable();
|
||||
$table->float('luas_lahan_non_pertanian')->default(0);
|
||||
$table->float('luas_lahan_sawah')->default(0);
|
||||
$table->float('luas_lahan_kering')->default(0);
|
||||
$table->float('luas_lahan_perkebunan')->default(0);
|
||||
$table->float('luas_lahan_hutan')->default(0);
|
||||
$table->float('luas_lahan_badan_air')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table2s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table3', function (Blueprint $table) {
|
||||
$table->id('DatasetTable3Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('fungsi_hutan')->nullable();
|
||||
$table->float('luas')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table3s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table4', function (Blueprint $table) {
|
||||
$table->id('DatasetTable4Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('golongan')->nullable();
|
||||
$table->string('nama_spesies_latin')->nullable();
|
||||
$table->string('nama_spesies_lokal')->nullable();
|
||||
$table->string('status_endemik')->nullable();
|
||||
$table->string('status_terancam')->nullable();
|
||||
$table->string('status_dilindungi')->nullable();
|
||||
$table->string('status_tidak_dilindungi')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table4s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table5', function (Blueprint $table) {
|
||||
$table->id('DatasetTable5Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('nama_perusahaan')->nullable();
|
||||
$table->string('sk')->nullable();
|
||||
$table->string('jenis_satwa')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table5s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,46 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table6', function (Blueprint $table) {
|
||||
$table->id('DatasetTable6Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('kabupaten_kota')->nullable();
|
||||
$table->float('kritis_hutan')->default(0);
|
||||
$table->float('kritis_non_hutan')->default(0);
|
||||
$table->float('sangat_kritis_hutan')->default(0);
|
||||
$table->float('sangat_kritis_non_hutan')->default(0);
|
||||
$table->float('potensial_kritis_hutan')->default(0);
|
||||
$table->float('potensial_kritis_non_hutan')->default(0);
|
||||
$table->float('agak_kritis_hutan')->default(0);
|
||||
$table->float('agak_kritis_non_hutan')->default(0);
|
||||
$table->float('tidak_agak_kritis_hutan')->default(0);
|
||||
$table->float('tidak_agak_kritis_non_hutan')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table6s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table7', function (Blueprint $table) {
|
||||
$table->id('DatasetTable7Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('tebel_tanah')->nullable();
|
||||
$table->string('ambang_kritis_erosi')->nullable();
|
||||
$table->string('besaran_erosi')->nullable();
|
||||
$table->string('status')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table7s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table8', function (Blueprint $table) {
|
||||
$table->id('DatasetTable8Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('parameter')->nullable();
|
||||
$table->string('ambang_kritis')->nullable();
|
||||
$table->string('hasil_pengamatan')->nullable();
|
||||
$table->string('status')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table8s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table9', function (Blueprint $table) {
|
||||
$table->id('DatasetTable9Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('parameter')->nullable();
|
||||
$table->string('ambang_kritis')->nullable();
|
||||
$table->string('hasil_pengamatan')->nullable();
|
||||
$table->string('melebihi')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table9s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table10', function (Blueprint $table) {
|
||||
$table->id('DatasetTable10Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->float('luas_lokasi')->default(0);
|
||||
$table->float('persentase_tutupan')->default(0);
|
||||
$table->float('kerapatan')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table10s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table11', function (Blueprint $table) {
|
||||
$table->id('DatasetTable11Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->float('luas')->default(0);
|
||||
$table->float('persentase_area_kerusakan')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table11s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,42 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table12', function (Blueprint $table) {
|
||||
$table->id('DatasetTable12Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('golongan')->nullable();
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->float('luas_tutupan')->default(0);
|
||||
$table->float('sangat_baik')->default(0);
|
||||
$table->float('baik')->default(0);
|
||||
$table->float('sedang')->default(0);
|
||||
$table->float('rusak')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table12s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table13', function (Blueprint $table) {
|
||||
$table->id('DatasetTable13Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('jenis_penggunaan_baru')->nullable();
|
||||
$table->float('luas_lama')->default(0);
|
||||
$table->float('luas_baru')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table13s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table14', function (Blueprint $table) {
|
||||
$table->id('DatasetTable14Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('jenis_pemanfaatan_lahan')->nullable();
|
||||
$table->float('jumlah')->default(0);
|
||||
$table->string('skala_usaha')->nullable();
|
||||
$table->float('luas')->default(0);
|
||||
$table->string('keterangan')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table14s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table15', function (Blueprint $table) {
|
||||
$table->id('DatasetTable15Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('jenis_bahan_galian')->nullable();
|
||||
$table->string('nama_perusahaan')->nullable();
|
||||
$table->float('luas_penambangan')->default(0);
|
||||
$table->float('luas_area_produksi')->default(0);
|
||||
$table->float('produksi')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table15s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,44 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table16', function (Blueprint $table) {
|
||||
$table->id('DatasetTable16Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('kabupaten_kota')->nullable();
|
||||
$table->string('lokasi_penanaman')->nullable();
|
||||
$table->float('penghijauan_target')->default(0);
|
||||
$table->float('penghijauan_luas_realisasi')->default(0);
|
||||
$table->integer('penghijauan_realisasi_jumlah_pohon')->default(0);
|
||||
$table->integer('penghijauan_jumlah_pohon_hidup')->default(0);
|
||||
$table->float('reboisasi_target')->default(0);
|
||||
$table->float('reboisasi_luas_realisasi')->default(0);
|
||||
$table->integer('reboisasi_realisasi_jumlah_pohon')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table16s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,41 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table17', function (Blueprint $table) {
|
||||
$table->id('DatasetTable17Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('kabupaten_kota')->nullable();
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->float('luas')->default(0);
|
||||
$table->float('kedalaman_maksimal')->default(0);
|
||||
$table->float('persentase_kerusakan')->default(0);
|
||||
$table->string('penyebab_kerusakan')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table17s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,40 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table18', function (Blueprint $table) {
|
||||
$table->id('DatasetTable18Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('kabupaten_kota')->nullable();
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->float('jumlah_produksi')->default(0);
|
||||
$table->float('jumlah_luas')->default(0);
|
||||
$table->string('keterangan')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table18s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table19', function (Blueprint $table) {
|
||||
$table->id('DatasetTable19Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('kabupaten_kota')->nullable();
|
||||
$table->integer('jumlah_unit')->default(0);
|
||||
$table->float('luas')->default(0);
|
||||
$table->string('keterangan')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table19s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,38 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table20', function (Blueprint $table) {
|
||||
$table->id('DatasetTable20Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('nama_spesies')->nullable();
|
||||
$table->string('bagian_diperdagangkan')->nullable();
|
||||
$table->string('status_cites')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table20s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table21', function (Blueprint $table) {
|
||||
$table->id('DatasetTable21Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('nama_perusahaan')->nullable();
|
||||
$table->float('luas_pemanfaatan_aliran_air')->default(0);
|
||||
$table->float('luas_wisata_alam')->default(0);
|
||||
$table->float('luas_perlindungan_kehati')->default(0);
|
||||
$table->float('luas_penyelamatan_lingkungan')->default(0);
|
||||
$table->float('luas_penyerapan_karbon')->default(0);
|
||||
$table->string('sk')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table21s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,76 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table22', function (Blueprint $table) {
|
||||
$table->id('DatasetTable22Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->date('waktu')->nullable();
|
||||
$table->string('lat')->nullable();
|
||||
$table->string('long')->nullable();
|
||||
$table->string('tempratur')->nullable();
|
||||
$table->string('ph')->nullable();
|
||||
$table->string('kekeruhan')->nullable();
|
||||
$table->string('warna')->nullable();
|
||||
$table->string('rasa')->nullable();
|
||||
$table->string('bau')->nullable();
|
||||
$table->string('tds')->nullable();
|
||||
$table->string('bod')->nullable();
|
||||
$table->string('cod')->nullable();
|
||||
$table->string('do')->nullable();
|
||||
$table->string('fosfat')->nullable();
|
||||
$table->string('no3')->nullable();
|
||||
$table->string('nh3')->nullable();
|
||||
$table->string('arsen')->nullable();
|
||||
$table->string('kobalt')->nullable();
|
||||
$table->string('barium')->nullable();
|
||||
$table->string('boron')->nullable();
|
||||
$table->string('selenium')->nullable();
|
||||
$table->string('kadmium')->nullable();
|
||||
$table->string('khrom')->nullable();
|
||||
$table->string('tembaga')->nullable();
|
||||
$table->string('besi')->nullable();
|
||||
$table->string('timbal')->nullable();
|
||||
$table->string('mangan')->nullable();
|
||||
$table->string('air_raksa')->nullable();
|
||||
$table->string('seng')->nullable();
|
||||
$table->string('khlorida')->nullable();
|
||||
$table->string('sianida')->nullable();
|
||||
$table->string('fluorida')->nullable();
|
||||
$table->string('nitrit')->nullable();
|
||||
$table->string('sulfat')->nullable();
|
||||
$table->string('khlorin_bebas')->nullable();
|
||||
$table->string('belereng')->nullable();
|
||||
$table->string('fecal_coliform')->nullable();
|
||||
$table->string('total_coliform')->nullable();
|
||||
$table->string('gross')->nullable();
|
||||
$table->string('grossb')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table22s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,63 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table23', function (Blueprint $table) {
|
||||
$table->id('DatasetTable23Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->date('waktu')->nullable();
|
||||
$table->string('lat')->nullable();
|
||||
$table->string('long')->nullable();
|
||||
$table->string('lokasi_sampling')->nullable();
|
||||
$table->string('warna')->nullable();
|
||||
$table->string('kecerahan')->nullable();
|
||||
$table->string('kekeruhan')->nullable();
|
||||
$table->string('tss')->nullable();
|
||||
$table->string('sampah')->nullable();
|
||||
$table->string('lapisan_minyak')->nullable();
|
||||
$table->string('tempratur')->nullable();
|
||||
$table->string('ph')->nullable();
|
||||
$table->string('salinitas')->nullable();
|
||||
$table->string('do')->nullable();
|
||||
$table->string('bod5')->nullable();
|
||||
$table->string('cod')->nullable();
|
||||
$table->string('amonia_total')->nullable();
|
||||
$table->string('no2n')->nullable();
|
||||
$table->string('no3n')->nullable();
|
||||
$table->string('po4p')->nullable();
|
||||
$table->string('sianida')->nullable();
|
||||
$table->string('sulfida')->nullable();
|
||||
$table->string('klor')->nullable();
|
||||
$table->string('minyak_bumi')->nullable();
|
||||
$table->string('fenol')->nullable();
|
||||
$table->string('pestisida')->nullable();
|
||||
$table->string('pcb')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table23s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,50 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table24', function (Blueprint $table) {
|
||||
$table->id('DatasetTable24Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->string('lat')->nullable();
|
||||
$table->string('long')->nullable();
|
||||
$table->string('jan')->nullable();
|
||||
$table->string('feb')->nullable();
|
||||
$table->string('mar')->nullable();
|
||||
$table->string('apr')->nullable();
|
||||
$table->string('mei')->nullable();
|
||||
$table->string('jun')->nullable();
|
||||
$table->string('jul')->nullable();
|
||||
$table->string('agust')->nullable();
|
||||
$table->string('sept')->nullable();
|
||||
$table->string('okt')->nullable();
|
||||
$table->string('nov')->nullable();
|
||||
$table->string('des')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table24s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table25', function (Blueprint $table) {
|
||||
$table->id('DatasetTable25Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->float('mata_air')->default(0); // Mata Air
|
||||
$table->float('ledeng_pam')->default(0); // Ledeng/PAM
|
||||
$table->float('sumur_bor_pompa')->default(0); // Sumur Bor/Pompa
|
||||
$table->float('sumur_tak_terlindung')->default(0); // Sumur Tak Terlindung
|
||||
$table->float('sungai')->default(0); // Sungai
|
||||
$table->float('terlindung_air')->default(0);
|
||||
$table->float('air_kemasan')->default(0);
|
||||
$table->string('lainnya')->nullable();
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table25s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,49 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table26', function (Blueprint $table) {
|
||||
$table->id('DatasetTable26Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('lokasi_pemantauan')->nullable(); // Lokasi Pemantauan
|
||||
$table->string('latitude')->nullable(); // Latitude (7 digit desimal cukup presisi)
|
||||
$table->string('longitude')->nullable(); // Longitude
|
||||
$table->timestamp('waktu_pemantauan')->nullable(); // Waktu Pemantauan
|
||||
$table->float('ph')->default(0); // pH biasanya 0-14 (cukup 5,2)
|
||||
$table->float('dhl')->default(0); // DHL (konduktivitas)
|
||||
$table->float('so4')->default(0); // SO4
|
||||
$table->float('no3')->default(0); // NO3
|
||||
$table->float('cr')->default(0); // Cr
|
||||
$table->float('nh4')->default(0); // NH4
|
||||
$table->float('na')->default(0); // Na
|
||||
$table->float('ca2')->default(0); // Ca2+
|
||||
$table->float('mg2')->default(0); // Mg2+
|
||||
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table26s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,43 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table27', function (Blueprint $table) {
|
||||
$table->id('DatasetTable27Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('nama_sungai')->nullable(); // Nama Sungai
|
||||
$table->string('lokasi')->nullable(); // Lokasi
|
||||
$table->float('panjang')->default(0); // Panjang (km)
|
||||
$table->float('lebar_permukaan')->default(0); // Lebar Permukaan (m)
|
||||
$table->float('lebar_dasar')->default(0); // Lebar Dasar (m)
|
||||
$table->float('kedalaman')->default(0); // Kedalaman (m)
|
||||
$table->float('debit_maks')->default(0); // Debit Maks (m³/dtk)
|
||||
$table->float('debit_min')->default(0); // Debit Min (m³/dtk)
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table27s');
|
||||
}
|
||||
};
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::create('dataset_table28', function (Blueprint $table) {
|
||||
$table->id('DatasetTable28Id');
|
||||
$table->integer('instansi_id');
|
||||
$table->integer('template_id');
|
||||
$table->integer('tahun');
|
||||
$table->string('nama_danau')->nullable();
|
||||
$table->string('lokasi')->nullable();
|
||||
$table->float('luas')->default(0);
|
||||
$table->float('volume')->default(0);
|
||||
$table->integer('created_by');
|
||||
$table->timestampsTz();
|
||||
$table->softdeletesTz();
|
||||
|
||||
$table->foreign('instansi_id')->references('MsInstansiId')->on('ms_instansi')->cascadeOnDelete();
|
||||
$table->foreign('template_id')->references('MsTemplateId')->on('ms_template')->cascadeOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('dataset_table28s');
|
||||
}
|
||||
};
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue