<?php

namespace app\common\model;

use think\Model;

class OutCode extends Model
{
    // 设置字段信息
    protected $schema = [
        'id'          => 'int',
        'code'        => 'string',
        'status'      => 'int',
        'userid'      => 'int',
        'money'       => 'float',
        'create_time' => 'int',
        'use_time'    => 'int',
        'workerid'    => 'int',
        'agentid'     => 'int',
    ];

    // 设置字段自动转换类型
    protected $type = [
        'create_time' => 'timestamp:Y-m-d H:i:s',
        'use_time'    => 'timestamp:Y-m-d H:i:s',
    ];

}