<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class KuesionerLearningStyle extends Model
{
    use HasFactory;
    protected $table = 'kuesioner_learning_style';
    protected $primaryKey = 'id_ls';
    protected $fillable = [
        'email',
        'visual',
        'auditory',
        'readwrite',
        'kinesthetic',
        'id_lstyle',
        'result',
    ];

    public function user()
    {
        return $this->belongsTo(User::class, 'email', 'email');
    }
}