<?php
/**
 * Created by PhpStorm.
 * User: Gss
 * Date: 2021/4/8 0008
 * Time: 19:31
 */

namespace JinDouYun\Dao\Finance;


use JinDouYun\Dao\BaseDao;

class DRefundAccount extends BaseDao
{
    public function __construct($serviceDB = 'finance')
    {
        $this->_table = 'qianniao_refund_account_1';
        $this->_primary = 'id';
        $this->_fields = [
                'id',//int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'id',
                'refundId',//int(10) NOT NULL COMMENT '退款单id',
                'accountId',//int(10) NOT NULL COMMENT '账户id',
                'accountNumber',//varchar(255) NOT NULL COMMENT '账号',
                'accountName',//varchar(255) NOT NULL COMMENT '账号名称',
                'money',//decimal(15,4) DEFAULT '0.0000' COMMENT '退款金额',
                'payWay',//varchar(50) NOT NULL COMMENT '结算方式',
                'remark',//text COMMENT '备注',
                'operatorId',//int(10) NOT NULL COMMENT '操作人员id',
                'createTime',//int(10) DEFAULT NULL COMMENT '创建时间',
                'updateTime',//int(10) DEFAULT NULL COMMENT '修改时间',
                'extends',//json DEFAULT NULL COMMENT '扩展字段',
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
            'createTime' => time()
        ];
        $this->_update_autofill = [
            'updateTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}