<?php

namespace Modules\Assignment\Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Modules\Assignment\Entities\InfixAssignAssignment;
use Modules\Assignment\Entities\InfixAssignment;

class AssignmentDatabaseSeeder extends Seeder
{

    public function run()
    {
        Model::unguard();

        InfixAssignment::create([
            'title' => 'Test assignment',
            'course_id' => 1,
            'description' => '<p>This is a test assignment</p>',
            'marks' => '100',
            'min_parcentage' => '33',
            'last_date_submission' => '2025-09-30',
            'created_by' => 1,
            'assignment_from' => 1,
        ]);

        InfixAssignAssignment::create([
            'assignment_id' => 1,
            'student_id' => 3,
        ]);
    }
}
