<?php
/**
 * 分销等级升级条件Dao
 * Created by PhpStorm.
 * User: haoren
 * Date: 2020/07/22
 * Time: 15:00
 */

namespace JinDouYun\Dao\Commission;

use JinDouYun\Dao\BaseDao;

class DCommissionGradeCondition extends BaseDao
{
    public function __construct($serviceDB = 'default')
    {
        $this->_table = 'commission_grade_condition';
        $this->_primary = 'id';
        $this->_fields = [
              "id", // int(10) NOT NULL AUTO_INCREMENT COMMENT '分销商等级升级条件表',
              "type",
              "key", // varchar(255) DEFAULT NULL COMMENT '别名key',
              "title", // varchar(255) DEFAULT NULL COMMENT '条件标题',
              "desc", // varchar(255) DEFAULT NULL COMMENT '条件描述',
        ];
        $this->_readonly = ['id'];
        $this->_create_autofill = [
//            'createTime' => time()
        ];
        $this->_update_autofill = [
//            'updateTime' => time()
        ];

        parent::__construct($serviceDB);
    }
}