penambahan table dan model surveyor

This commit is contained in:
majid
2024-10-16 08:50:11 +07:00
parent bb7eae74f3
commit 78618098ca
38 changed files with 1985 additions and 692 deletions

View File

@@ -0,0 +1,23 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\BentukTanahFactory;
class BentukTanah extends Model
{
use HasFactory;
protected $table = 'bentuk_tanah';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): BentukTanahFactory
{
//return BentukTanahFactory::new();
}
}

View File

@@ -0,0 +1,22 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\GolonganMasySekitarFactory;
class GolonganMasySekitar extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): GolonganMasySekitarFactory
{
//return GolonganMasySekitarFactory::new();
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\JenisBangunanFactory;
class JenisBangunan extends Model
{
use HasFactory;
protected $table = 'jenis_bangunan';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): JenisBangunanFactory
{
//return JenisBangunanFactory::new();
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\KetinggianTanahFactory;
class KetinggianTanah extends Model
{
use HasFactory;
protected $table = 'ketinggian_tanah';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): KetinggianTanahFactory
{
//return KetinggianTanahFactory::new();
}
}

View File

@@ -0,0 +1,23 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\KondisiBangunanFactory;
class KondisiBangunan extends Model
{
use HasFactory;
protected $table = 'kondisi_bangunan';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): KondisiBangunanFactory
{
//return KondisiBangunanFactory::new();
}
}

View File

@@ -0,0 +1,23 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\KondisiFisikTanahFactory;
class KondisiFisikTanah extends Model
{
use HasFactory;
protected $table = 'kondisi_fisik_tanah';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): KondisiFisikTanahFactory
{
//return KondisiFisikTanahFactory::new();
}
}

View File

@@ -0,0 +1,23 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\KonturTanahFactory;
class KonturTanah extends Model
{
use HasFactory;
protected $table = 'kontur_tanah';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): KonturTanahFactory
{
//return KonturTanahFactory::new();
}
}

View File

@@ -0,0 +1,22 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\LaliLintasLokasiFactory;
class LaliLintasLokasi extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): LaliLintasLokasiFactory
{
//return LaliLintasLokasiFactory::new();
}
}

View File

@@ -0,0 +1,22 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\LaluLintasLokasiFactory;
class LaluLintasLokasi extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): LaluLintasLokasiFactory
{
//return LaluLintasLokasiFactory::new();
}
}

View File

@@ -0,0 +1,22 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\PerkerasanJalanFactory;
class PerkerasanJalan extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): PerkerasanJalanFactory
{
//return PerkerasanJalanFactory::new();
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\PosisiKavlingFactory;
class PosisiKavling extends Model
{
use HasFactory;
protected $table = 'posisi_kavling';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): PosisiKavlingFactory
{
//return PosisiKavlingFactory::new();
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\SaranaPelengkapFactory;
class SaranaPelengkap extends Model
{
use HasFactory;
protected $table = 'sarana_pelengkap';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): SaranaPelengkapFactory
{
//return SaranaPelengkapFactory::new();
}
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\SifatBangunanFactory;
class SifatBangunan extends Model
{
use HasFactory;
protected $table = 'sifat_bangunan';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): SifatBangunanFactory
{
//return SifatBangunanFactory::new();
}
}

View File

@@ -0,0 +1,31 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\SpekBangunanFactory;
class SpekBangunan extends Model
{
use HasFactory;
protected $table = 'spek_bangunan';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
public function bangunanKategori(){
return $this->belongsTo(SpekKategoriBangunan::class, 'spek_kategori_bangunan_id');
}
protected static function newFactory(): SpekBangunanFactory
{
//return SpekBangunanFactory::new();
}
}

View File

@@ -0,0 +1,28 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\SpekKategoritBangunanFactory;
class SpekKategoritBangunan extends Model
{
use HasFactory;
protected $table = 'spek_kategori_bangunan';
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
public function bangunan()
{
return $this->hasMany(SpekBangunan::class, 'spek_kategori_bangunan_id');
}
protected static function newFactory(): SpekKategoritBangunanFactory
{
//return SpekKategoritBangunanFactory::new();
}
}

View File

@@ -0,0 +1,22 @@
<?php
namespace Modules\Lpj\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Modules\Lpj\Database\Factories\TingkatKeramaianFactory;
class TingkatKeramaian extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*/
protected $fillable = [];
protected static function newFactory(): TingkatKeramaianFactory
{
//return TingkatKeramaianFactory::new();
}
}