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.
37 lines
737 B
37 lines
737 B
|
2 days ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
class PeopleCountingHourly extends Model
|
||
|
|
{
|
||
|
|
protected $table = 'people_counting_hourly';
|
||
|
|
|
||
|
|
protected $fillable = [
|
||
|
|
'venue_id',
|
||
|
|
'venue_name',
|
||
|
|
'stat_date',
|
||
|
|
'hour',
|
||
|
|
'enter',
|
||
|
|
'exit',
|
||
|
|
'passing',
|
||
|
|
'data_source',
|
||
|
|
];
|
||
|
|
|
||
|
|
protected $casts = [
|
||
|
|
'venue_id' => 'integer',
|
||
|
|
'stat_date' => 'date',
|
||
|
|
'hour' => 'integer',
|
||
|
|
'enter' => 'integer',
|
||
|
|
'exit' => 'integer',
|
||
|
|
'passing' => 'integer',
|
||
|
|
];
|
||
|
|
|
||
|
|
public function venue(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Venue::class, 'venue_id');
|
||
|
|
}
|
||
|
|
}
|