v2board/app/Models/Order.php

18 lines
347 B
PHP
Raw Normal View History

2019-10-29 15:33:36 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Order extends Model
{
protected $table = 'v2_order';
protected $dateFormat = 'U';
2019-11-29 01:58:20 +08:00
protected $guarded = ['id'];
2021-08-01 22:56:11 +08:00
protected $casts = [
'created_at' => 'timestamp',
2021-08-06 00:43:01 +08:00
'updated_at' => 'timestamp',
'surplus_order_ids' => 'array'
2021-08-01 22:56:11 +08:00
];
2019-10-29 15:33:36 +08:00
}