| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- use Illuminate\Database\Eloquent\SoftDeletes;
- /**
- * @property int $id
- * @property int $unit_id
- * @property string|null $tax_regime
- * @property string|null $bank
- * @property string|null $agency
- * @property string|null $account
- * @property string|null $account_type
- * @property string|null $account_holder
- * @property string|null $pix_key
- * @property string|null $billing_method
- * @property string|null $due_date
- * @property string|null $financial_email
- * @property string|null $group
- * @property float|null $maintenance_fee
- * @property float|null $marketing_fund
- * @property float|null $tbr
- * @property \Carbon\Carbon $created_at
- * @property \Carbon\Carbon $updated_at
- * @property \Carbon\Carbon|null $deleted_at
- * @property-read \App\Models\Unit $unit
- */
- class UnitFinancial extends Model
- {
- use HasFactory, SoftDeletes;
- protected $table = 'unit_financials';
- protected $guarded = ['id'];
- protected $casts = [
- 'maintenance_fee' => 'decimal:2',
- 'marketing_fund' => 'decimal:2',
- 'tbr' => 'decimal:2',
- 'created_at' => 'datetime',
- 'updated_at' => 'datetime',
- 'deleted_at' => 'datetime',
- ];
- public function unit(): BelongsTo
- {
- return $this->belongsTo(Unit::class, 'unit_id');
- }
- }
|