DiverseYouthNightSchool/application/admin/model/xilufitness/work/CampPlan.php

40 lines
640 B
PHP
Raw Normal View History

2024-11-04 10:49:10 +08:00
<?php
namespace app\admin\model\xilufitness\work;
use think\Model;
class CampPlan extends Model
{
// 表名
protected $name = 'xilufitness_work_camp_plan';
// 自动写入时间戳字段
protected $autoWriteTimestamp = 'integer';
// 定义时间戳字段名
protected $createTime = 'createtime';
protected $updateTime = 'updatetime';
protected $deleteTime = false;
// 追加属性
protected $append = [
];
protected function setDayDateAttr($value)
{
return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value);
}
}