Business.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Name: 芸众商城系统
  5. * Author: 广州市芸众信息科技有限公司
  6. * Profile: 广州市芸众信息科技有限公司位于国际商贸中心的广州,专注于移动电子商务生态系统打造,拥有芸众社交电商系统、区块链数字资产管理系统、供应链管理系统、电子合同等产品/服务。官网 :www.yunzmall.com www.yunzshop.com
  7. * Date: 2021/9/22
  8. * Time: 13:37
  9. */
  10. namespace business\common\models;
  11. use app\common\models\BaseModel;
  12. use \app\backend\modules\member\models\Member;
  13. use Illuminate\Database\Eloquent\Builder;
  14. use Illuminate\Database\Eloquent\SoftDeletes;
  15. class Business extends BaseModel
  16. {
  17. public $table = 'yz_work_wechat_platform_crop';
  18. public $timestamps = true;
  19. protected $guarded = [];
  20. protected $appends = [];
  21. protected $casts = [];
  22. const IDENTITY_DESC = [
  23. 1 => '员工',
  24. 2 => '管理员',
  25. 3 => '创建人',
  26. 4 => '法人',
  27. 5 => '法人、创建人'
  28. ];
  29. const STATUS_NORMAL = 1;//状态正常
  30. const STATUS_BAN = -1;//状态停用
  31. public function hasOneMember()
  32. {
  33. return $this->hasOne(Member::class, 'uid', 'member_uid');
  34. }
  35. }