DFinanceType.Class.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace JinDouYun\Dao\Finance;
  3. use JinDouYun\Dao\BaseDao;
  4. class DFinanceType extends BaseDao
  5. {
  6. public function __construct($serviceDB = 'default')
  7. {
  8. $this->_table = 'finance_type';
  9. $this->_primary = 'id';
  10. $this->_fields = [
  11. 'id',//int(11) NOT NULL AUTO_INCREMENT COMMENT '财务类型Id',
  12. 'enterpriseId',//int(11) DEFAULT NULL COMMENT '企业id',
  13. 'link',//tinyint(1) DEFAULT NULL COMMENT '归属单据(1应收单 2应付单)',
  14. 'name',//varchar(50) DEFAULT NULL COMMENT '财务类型名称',
  15. 'isDefault',//tinyint(1) DEFAULT '4' COMMENT '是否默认(5默认 4非默认)',
  16. 'enableStatus',//tinyint(1) DEFAULT '5' COMMENT '是否启用(5启用 4禁用)',
  17. 'deleteStatus',//tinyint(1) DEFAULT NULL COMMENT '是否删除(5未删除)',
  18. 'createTime',//int(11) DEFAULT NULL COMMENT '创建时间',
  19. 'updateTime',//int(11) DEFAULT NULL COMMENT '修改时间',
  20. 'extends',//json DEFAULT NULL COMMENT '扩展字段',
  21. 'isSystem',//tinyint(1) DEFAULT '4' COMMENT '是否系统默认',
  22. ];
  23. $this->_readonly = ['id'];
  24. $this->_create_autofill = [
  25. 'createTime' => time()
  26. ];
  27. $this->_update_autofill = [
  28. 'updateTime' => time()
  29. ];
  30. parent::__construct($serviceDB);
  31. }
  32. }