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.
38 lines
788 B
38 lines
788 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class PeopleCountingDaily extends Model
|
|
{
|
|
protected $table = 'people_counting_daily';
|
|
|
|
protected $fillable = [
|
|
'venue_id',
|
|
'venue_name',
|
|
'stat_date',
|
|
'enter',
|
|
'exit',
|
|
'passing',
|
|
'update_count',
|
|
'last_update',
|
|
];
|
|
|
|
protected $casts = [
|
|
'venue_id' => 'integer',
|
|
'stat_date' => 'date',
|
|
'enter' => 'integer',
|
|
'exit' => 'integer',
|
|
'passing' => 'integer',
|
|
'update_count' => 'integer',
|
|
'last_update' => 'datetime',
|
|
];
|
|
|
|
public function venue(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Venue::class, 'venue_id');
|
|
}
|
|
}
|