User company addded

This commit is contained in:
2024-11-09 18:49:54 +05:00
parent 95c6d5746b
commit a566b7ac61
8 changed files with 175 additions and 10 deletions

View File

@@ -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
*