<?php


namespace JinDouYun\Dao\System;

use JinDouYun\Dao\BaseDao;

/**
 * Description: 打印模版
 * Class DReceiptTemplate
 * @package JinDouYun\Dao\System
 */
class DReceiptTemplate extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'receipt_template';
        $this->_primary = 'id';
        $this->_fields = [
            "id",//int(10) NOT NULL AUTO_INCREMENT COMMENT '分销商表',
            "enterpriseId",// int(11) NOT NULL COMMENT '企业id',
            "title",//varchar(255) DEFAULT NULL COMMENT '单据名称',
            "fieldsData",//json DEFAULT NULL COMMENT '单据数据',
            "remark",//varchar(255) DEFAULT NULL COMMENT '备注',
            "operatorName",//varchar(255) DEFAULT NULL COMMENT '操作人',
            "operatorId",//int(10) DEFAULT '0' COMMENT '操作人Id',
            "receiptType",//int(10) DEFAULT '0' COMMENT '单据类型',
            "createTime",//int(10) DEFAULT NULL COMMENT '创建时间',
            "updateTime",//int(10) DEFAULT NULL COMMENT '修改时间',
            "extend",//json DEFAULT NULL COMMENT '扩展字段',
            "describe",//
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
            'createTime' => time()
        ];
        $this->_update_autofill = [
            'updateTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}