<?php

namespace Modules\Authentication\Database\Seeders;

use Carbon\Carbon;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class InstituteTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     */
    public function run(): void
    {
        DB::table('institutes')->insert([
            [
                // 'owner_id' => 1,
                // 'assigned_to' => 1,
                'name' => 'Green Valley School',
                'address' => '123 Main Street, City',
                'institute_type' => 'School',
                'phone' => '1234567890',
                'domain' => 'institute1.com',
                'platform' => 'WEB',
                'status' => 1,
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now(),
            ],
            [
                // 'owner_id' => 1,
                // 'assigned_to' => 1,
                'name' => 'Tech University',
                'address' => '456 Technology Ave, City',
                'institute_type' => 'University',
                'phone' => '9876543210',
                'domain' => 'institute2.com',
                'platform' => 'APP',
                'status' => 1,
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now(),
            ],
        ]);

        DB::table('branches')->insert([
            [
                'institute_id' => 1,
                'name' => 'Primary School',
                'status' => 1,
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now(),
            ],
            [
                'institute_id' => 1,
                'name' => 'Hight School',
                'status' => 1,
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now(),
            ],
            [
                'institute_id' => 1,
                'name' => 'Collage',
                'status' => 1,
                'created_at' => Carbon::now(),
                'updated_at' => Carbon::now(),
            ],
        ]);
    }
}
