v2board/app/Models/Coupon.php

19 lines
381 B
PHP
Raw Normal View History

2019-12-31 17:49:24 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Coupon extends Model
{
protected $table = 'v2_coupon';
protected $dateFormat = 'U';
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',
2021-12-28 01:59:59 +08:00
'limit_plan_ids' => 'array',
'limit_period' => 'array'
2021-08-01 22:56:11 +08:00
];
2019-12-31 17:49:24 +08:00
}