01 2020
This commit is contained in:
parent
bed91c4f4a
commit
c8948338bb
122 changed files with 7911 additions and 1639 deletions
81
app/Models/StatusHistory.php
Normal file
81
app/Models/StatusHistory.php
Normal file
|
|
@ -0,0 +1,81 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Reliese\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class StatusHistory
|
||||
*
|
||||
* @property int $id
|
||||
* @property int $status_id
|
||||
* @property int $lead_id
|
||||
* @property int $sf_guard_user_id
|
||||
* @property Carbon $date
|
||||
* @property string $remarks
|
||||
* @property Carbon $target_date
|
||||
* @property Carbon $created_at
|
||||
* @property Lead $lead
|
||||
* @property SfGuardUser $sf_guard_user
|
||||
* @property Status $status
|
||||
* @package App\Models
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory whereCreatedAt($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory whereDate($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory whereId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory whereLeadId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory whereRemarks($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory whereSfGuardUserId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory whereStatusId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|\App\Models\StatusHistory whereTargetDate($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class StatusHistory extends Model
|
||||
{
|
||||
protected $connection = 'mysql';
|
||||
|
||||
protected $table = 'status_history';
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'status_id' => 'int',
|
||||
'lead_id' => 'int',
|
||||
'sf_guard_user_id' => 'int'
|
||||
];
|
||||
|
||||
protected $dates = [
|
||||
'date',
|
||||
'target_date'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'status_id',
|
||||
'lead_id',
|
||||
'sf_guard_user_id',
|
||||
'date',
|
||||
'remarks',
|
||||
'target_date'
|
||||
];
|
||||
|
||||
public function lead()
|
||||
{
|
||||
return $this->belongsTo(Lead::class);
|
||||
}
|
||||
|
||||
public function sf_guard_user()
|
||||
{
|
||||
return $this->belongsTo(SfGuardUser::class);
|
||||
}
|
||||
|
||||
public function status()
|
||||
{
|
||||
return $this->belongsTo(Status::class);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue