<?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');
    }

    
   



	
}
