You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
558 B
27 lines
558 B
<?php
|
|
|
|
namespace App\Entities\Users;
|
|
|
|
use App\Entities\Projects\Project;
|
|
use App\Entities\Users\User;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @author Nafies Luthfi <nafiesL@gmail.com>
|
|
*/
|
|
class Event extends Model
|
|
{
|
|
protected $table = 'user_events';
|
|
protected $guarded = ['id', 'created_at', 'updated_at'];
|
|
protected $casts = ['is_allday' => 'boolean'];
|
|
|
|
public function user()
|
|
{
|
|
return $this->belongsTo(User::class);
|
|
}
|
|
|
|
public function project()
|
|
{
|
|
return $this->belongsTo(Project::class);
|
|
}
|
|
}
|