_table = 'personnel'; $this->_primary = 'id'; $this->_fields = [ 'id',// int unsigned NOT NULL AUTO_INCREMENT, 'en_id',// int NOT NULL, 'avatar',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL, 'name',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名', 'duties',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '职务', 'phone',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系方式', 'address',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '地址', 'job_no',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '工号', 'business',// varchar(255) COLLATE utf8mb4_general_ci NOT NULL COMMENT '业务', 'type',// tinyint NOT NULL COMMENT '1招商2连锁3共享股东4高管', ]; $this->_readonly = ['id']; $this->_create_autofill = [ 'createTime' => time() ]; parent::__construct($serviceDB); } }