DGoodsSupport.Class.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: kang
  5. * Date: 2021/3/27
  6. * Time: 12:03
  7. */
  8. namespace JinDouYun\Dao\Goods;
  9. use JinDouYun\Dao\BaseDao;
  10. class DGoodsSupport extends BaseDao
  11. {
  12. public function __construct($serviceDB = 'default')
  13. {
  14. $this->_table = "goods_service";
  15. $this->_primary = 'id';
  16. $this->_fields = [
  17. 'id' , // int(11) NOT NULL AUTO_INCREMENT COMMENT '商品服务主键id',
  18. 'servicesName' , // varchar(255) NOT NULL COMMENT '商品服务名称',
  19. 'describe' , // varchar(255) DEFAULT NULL COMMENT '商品服务描述',
  20. 'Icon' , // mediumblob COMMENT '商品服务图标',
  21. 'createTime' , // int(11) NOT NULL COMMENT '创建时间',
  22. 'updateTime' , // int(11) DEFAULT NULL COMMENT '修改时间',
  23. 'extends' , // json NOT NULL COMMENT '扩展字段',
  24. 'deleteStatus' , // tinyint(3) NOT NULL DEFAULT '5' COMMENT '删除状态 4是删除,5是正常',
  25. 'enterprise' , // int(11) NOT NULL DEFAULT '0' COMMENT '企业id',
  26. ];
  27. $this->_readonly = ['id'];
  28. $this->_create_autofill = [
  29. 'createTime' => time()
  30. ];
  31. $this->_update_autofill = [
  32. 'updateTime' => time()
  33. ];
  34. parent::__construct($serviceDB);
  35. }
  36. }