add aggr
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Model;
|
||||
|
||||
/**
|
||||
* @property string $refresh_date 格式 Y-m-d
|
||||
* @property string $aggregate_view 视图名(如 orders_daily_by_created)
|
||||
* @property \Carbon\Carbon $created_at 入队时间
|
||||
*/
|
||||
class AggregateRefreshQueue extends Model
|
||||
{
|
||||
protected ?string $table = 'aggregate_refresh_queue';
|
||||
|
||||
public bool $timestamps = false;
|
||||
|
||||
public bool $incrementing = false;
|
||||
|
||||
protected string $primaryKey = 'refresh_date';
|
||||
|
||||
protected array $fillable = [
|
||||
'refresh_date',
|
||||
'aggregate_view',
|
||||
'created_at',
|
||||
];
|
||||
|
||||
protected array $casts = [
|
||||
'created_at' => 'datetime',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user