代码功能更新

This commit is contained in:
root
2025-05-18 07:42:27 +00:00
parent 7fc1d422a1
commit 4a90c41da2
2083 changed files with 695218 additions and 3 deletions
+38
View File
@@ -0,0 +1,38 @@
<?php
/**
* 会员管理模型
*/
namespace app\model;
use laytp\BaseModel;
use think\model\concern\SoftDelete;
class Order extends BaseModel
{
use SoftDelete;
//模型名
protected $name = 'order';
//附加属性
protected $append = ['create_time','end_time'];
//时间戳字段转换
protected $type = [
'end_time' => 'timestamp:Y-m-d H:i:s',
'create_time' => 'timestamp:Y-m-d H:i:s',
];
//表名
//关联模型
public function avatarPicFile(){
return $this->belongsTo('app\model\Files','avatar_pic','id');
}
}