<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class QuestionSetup extends LegacyModel
{
    protected $table = 'questionsetup';

    protected function casts(): array
    {
        return [
            'createdtime' => 'datetime',
        ];
    }

    public function group(): BelongsTo
    {
        return $this->belongsTo(StudentGroup::class, 'questionsetclassid');
    }
}
