| 1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Factories\HasFactory;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\Relations\BelongsTo;
- /**
- * @property int $id
- * @property int $franchisee_id
- * @property string $description
- * @property int $start_month
- * @property int|null $end_month
- * @property float $percentage
- * @property \Carbon\Carbon $created_at
- * @property \Carbon\Carbon $updated_at
- * @property-read \App\Models\Franchisee $franchisee
- */
- class FranchiseeMaintenanceBracket extends Model
- {
- use HasFactory;
- protected $table = 'franchisee_maintenance_brackets';
- protected $guarded = ['id'];
- protected $casts = [
- 'percentage' => 'decimal:4',
- 'created_at' => 'datetime',
- 'updated_at' => 'datetime',
- ];
- public function franchisee(): BelongsTo
- {
- return $this->belongsTo(Franchisee::class, 'franchisee_id');
- }
- }
|