<?php

namespace App\Models;

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

class GroupPenerimaModel extends Model
{
    use HasFactory;
    use SoftDeletes;
    protected $table = 'group_penerima';
    protected $primaryKey = 'id';
    protected $fillable = ['message_id','created_at','deleted_at','group_id'];
    public $timestamps = false;
    protected $dates = ['deleted_at'];

    public function kelompok()
    {
        return $this->belongsTo(GroupModel::class,'group_id');
    }

}
