'object', 'updated_at' => 'timestamp', 'created_at' => 'timestamp', 'deleted_at' => 'timestamp', ]; const STATUS_DRAFT = 1; const STATUS_SENT = 2; const STATUS_APPROVED = 3; const STATUS_EXPIRED = -1; public function company() { return $this->belongsTo(Company::class); } public function user() { return $this->belongsTo(User::class); } public function client() { return $this->belongsTo(Client::class); } public function assigned_user() { return $this->belongsTo(User::class ,'assigned_user_id', 'id'); } public function invitations() { return $this->hasMany(QuoteInvitation::class); } public function documents() { return $this->morphMany(Document::class, 'documentable'); } }