初始化项目:添加后端代码、ThinkPHP框架、前端资源
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model;
|
||||
use think\Model;
|
||||
|
||||
class CouponModel extends Model
|
||||
{
|
||||
// use SoftDelete;
|
||||
protected $deleteTime = 'deletetime';
|
||||
|
||||
protected $name = 'app_coupon';
|
||||
|
||||
protected $type = [
|
||||
// 'use_start_time' => 'timestamp',
|
||||
// 'use_end_time' => 'timestamp',
|
||||
];
|
||||
|
||||
// 追加属性
|
||||
protected $append = [
|
||||
];
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user