User company addded
This commit is contained in:
@@ -7,8 +7,32 @@ use App\Modules\Bank\Models\Bank;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
/**
|
||||
* @property int $id [primary,unique]
|
||||
* @property \App\Modules\UserCompany\Types\CompanyType $company_type
|
||||
* @property string $name
|
||||
* @property string $ssb [unique]
|
||||
* @property string $hb [unique]
|
||||
* @property bool $default [default: false]
|
||||
* @property int $user_id
|
||||
* @property int $bank_id
|
||||
* @property \Illuminate\Support\Carbon $created_at
|
||||
* @property \Illuminate\Support\Carbon $updated_at
|
||||
*/
|
||||
class UserCompany extends Model
|
||||
{
|
||||
/**
|
||||
* Get the attributes that should be cast.
|
||||
*
|
||||
* @return array<string, string>
|
||||
*/
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'default' => 'boolean',
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* User
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user