_table = "account_type"; $this->_primary = 'id'; $this->_fields = [ 'id', //int(10) NOT NULL AUTO_INCREMENT COMMENT '费用类型主键id', 'enterpriseId',//企业id 'name', //char(255) NOT NULL COMMENT '账目类型', 'type', //tinyint(10) NOT NULL COMMENT '收支类型 5收入 4支出', 'remarks', //varchar(255) NOT NULL COMMENT '备注', 'createTime', //int(11) NOT NULL COMMENT '创建时间', 'updateTime', //int(11) NOT NULL COMMENT '修改时间', 'extends', //json DEFAULT NULL COMMENT '扩展', 'deleteStatus' //删除状态 ]; $this->_readonly = ['id']; $this->_create_autofill = [ 'createTime' => time() ]; $this->_update_autofill = [ 'updateTime' => time() ]; parent::__construct($serviceDB); } }