<?php
namespace app\common\model;

use think\Model;

class UserPaystub extends Model
{
	// 设置字段信息
    protected $schema = [
        'id'          		=> 'int',
		'realname'			=> 'string',
		'idcard'			=> 'string',
		'entrydate'			=> 'string',
		'workhour'			=> 'float',
		'pricehour'			=> 'float',
		'grantmoney'		=> 'float',
		'insuremoney'		=> 'float',
		'watermoney'		=> 'float',
		'taxmoney'			=> 'float',
		'actualmoney'		=> 'float',
		'monthtime'			=> 'string',
		'remark'			=> 'string',
		'telephone'  		=> 'string',
		'createtime'		=> 'int'
    ];
	
	// 设置字段自动转换类型
	protected $type = [
		'createtime'  => 'timestamp:Y-m-d H:i:s'
    ];

	
}