123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- /**
- * 股份记录
- * Created by PhpStorm.
- * User: wxj
- * Date: 2019/10/31
- * Time: 15:02
- */
- namespace JinDouYun\Dao\Holders;
- use JinDouYun\Dao\BaseDao;
- class DHoldersRecord extends BaseDao
- {
- public function __construct($serviceDB = 'default')
- {
- $this->_table = 'holders_record';
- $this->_primary = 'id';
- $this->_fields = [
- "id", // int unsigned NOT NULL AUTO_INCREMENT,
- "hol_id",// int NOT NULL COMMENT '股东id',
- "en_id",// int NOT NULL,
- 'number', // decimal(10,2) NOT NULL COMMENT '变动数量',
- 'before',// decimal(10,2) NOT NULL,
- 'after',// decimal(10,2) NOT NULL COMMENT '变动后',
- 'pm',// tinyint NOT NULL COMMENT '0减少1增加',
- 'type',// tinyint NOT NULL COMMENT '变动类型1原始股份2分红股份',
- 'remarks',// text COLLATE utf8mb4_general_ci COMMENT '备注',
- 'createTime',// int NOT NULL COMMENT '时间',
- ];
- $this->_readonly = ['id'];
- $this->_create_autofill = [
- 'createTime' => time()
- ];
- parent::__construct($serviceDB);
- }
- }
|