Work.php 938 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\bug\model;
  3. use think\model\concern\SoftDelete;class Work extends Base
  4. {
  5. //设置字段信息
  6. use SoftDelete;
  7. protected $schema = [
  8. 'id' =>'int',//
  9. 'work_name' =>'varchar',//岗位名称
  10. 'belong' =>'tinyint',//系统归属1采销2结算3数据统计
  11. 'level' =>'tinyint',//账号等级
  12. 'status' =>'tinyint',//状态 启禁用
  13. 'apply_name' =>'varchar',//
  14. 'apply_id' =>'int',//
  15. 'createTime' =>'datetime',//
  16. 'updateTime' =>'datetime',//
  17. 'delete_time' =>'datetime',//
  18. ];
  19. protected $updateTime='updateTime';
  20. protected $createTime='createTime';
  21. protected $deleteTime = 'delete_time';
  22. public static $blongCn=["","采销系统","结算系统","报表系统"];
  23. public function WorkTemplate(){
  24. return $this->belongsTo(WorkTemplate::class,"id","work_id")->bind(["action","process_action"]);
  25. }
  26. }