<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class DetailTransaksiStiker extends Model
{
    use HasFactory;

    protected $table = 'detail_transaksi_stiker';

    protected $fillable = [
        'notrans','nopol','jenis_mobil','adm','kategori','jenis_member','akses','akses_out','status','merk','tipe','tahun','warna','keterangan'
    ];

    public function transaksi()
    {
        return $this->belongsTo(TransaksiStiker::class, 'notrans', 'notrans');
    }

}
