<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * @property integer $id
 * @property int $id_socio
 * @property integer $id_deuda
 * @property string $estado
 * @property string $fecha_ing
 * @property string $observacion
 * @property string $created_at
 * @property string $updated_at
 * @property CtClienteDeuda $ctClienteDeuda
 * @property CoSocio $coSocio
 */
class Suspensiones extends Model
{
    /**
     * The "type" of the auto-incrementing ID.
     * 
     * @var string
     */
    protected $keyType = 'integer';

    /**
     * @var array
     */
    protected $fillable = ['id_socio', 'id_deuda', 'estado', 'fecha_ing', 'created_at', 'updated_at','observacion'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function ctClienteDeuda()
    {
        return $this->belongsTo('App\Models\CtClienteDeuda', 'id_deuda', 'id_cliente_deuda');
    }

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function coSocio()
    {
        return $this->belongsTo('App\Models\CoSocios', 'id_socio', 'IdSocios');
    }
}
