<?php

namespace Modules\Mall\Models;

use Encore\Admin\Traits\DefaultDatetimeFormat;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\Pivot;
use Modules\Mall\Models\Traits\BelongsToShop;
use Modules\User\Traits\BelongsToUser;

class ShopStaffer extends Pivot
{

    use BelongsToShop,
        BelongsToUser,
        DefaultDatetimeFormat;

    protected $table = 'mall_shop_staffers';

    /**
     * Notes   : 职位
     * @Date   : 2021/7/1 4:38 下午
     * @Author : < Jason.C >
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function job(): BelongsTo
    {
        return $this->belongsTo(Job::class);
    }

}
