first commit
This commit is contained in:
commit
405df0a122
3083 changed files with 69203 additions and 0 deletions
51
dev/Models/CompanyUser.php
Normal file
51
dev/Models/CompanyUser.php
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class CompanyUser
|
||||
*
|
||||
* @property int $company_id
|
||||
* @property int $user_id
|
||||
* @property Company $company
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @package App\Models
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser whereCompanyId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|CompanyUser whereUserId($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class CompanyUser extends Model
|
||||
{
|
||||
protected $table = 'company_user';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'company_id' => 'int',
|
||||
'user_id' => 'int'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'company_id',
|
||||
'user_id'
|
||||
];
|
||||
|
||||
public function company()
|
||||
{
|
||||
return $this->belongsTo(Company::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class, 'user_id');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue