_table = 'holders'; $this->_primary = 'id'; $this->_fields = [ "id", //int(11) NOT NULL AUTO_INCREMENT, "en_id", //int(11) NOT NULL COMMENT '企业id', "name", //varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '股东姓名', "number", //int(20) NOT NULL COMMENT '联系电话', "dends", //varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '分红股份', "shares", //varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '0' COMMENT '原始股份', "address", //varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL COMMENT '联系地址', "remk", //varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL COMMENT '备注', ]; $this->_readonly = ['id']; $this->_create_autofill = [ 'createTime' => time() ]; $this->_update_autofill = [ 'updateTime' => time() ]; parent::__construct($serviceDB); } }