You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
818 B
43 lines
818 B
<?php |
|
|
|
namespace App\Models; |
|
|
|
use Dcat\Admin\Traits\HasDateTimeFormatter; |
|
|
|
use Illuminate\Database\Eloquent\Model; |
|
|
|
class MinimumLimitTuition extends Model |
|
{ |
|
use HasDateTimeFormatter; |
|
|
|
|
|
protected $table = 'minimum_limit_tuition'; |
|
|
|
const CREATED_AT = 'create_time'; |
|
const UPDATED_AT = 'update_time'; |
|
public $timestamps = true; |
|
|
|
public function freshTimestamp() |
|
{ |
|
return time(); |
|
} |
|
|
|
|
|
/*避免转换时间戳为时间字符串*/ |
|
public function fromDateTime($value) |
|
{ |
|
return $value; |
|
} |
|
|
|
|
|
protected function serializeDate(\DateTimeInterface $date) |
|
{ |
|
return $date->format('Y-m-d H:i:s'); |
|
} |
|
|
|
const TYPE_NEW = 1; //类型 1新生 2老生 |
|
const TYPE_OLD = 2; |
|
|
|
const STATUS_YES = 1; //状态 1正常 |
|
const STATUS_NO = 2; //禁用 |
|
}
|
|
|