You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
403 B
PHTML
20 lines
403 B
PHTML
|
2 months ago
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
class UserSurveyOption extends Model
|
||
|
|
{
|
||
|
|
protected $connection = "default";
|
||
|
|
protected $table = "user_survey_options";
|
||
|
|
|
||
|
|
public function question()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(UserSurveyQuestion::class, 'question_id', 'id');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function responses()
|
||
|
|
{
|
||
|
|
return $this->hasMany(UserSurveyResponse::class, 'option_id', 'id');
|
||
|
|
}
|
||
|
|
}
|