first change

This commit is contained in:
2025-07-27 17:40:56 +05:45
commit f8b9a6725b
3152 changed files with 229528 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('required_documents', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->string('slug')->nullable();
$table->longText('description')->nullable();
$table->string('link')->nullable();
$table->string('image')->nullable();
$table->integer('status')->nullable()->default(1);
$table->integer('order')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('required_documents');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('coops', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->string('slug')->nullable();
$table->string('link')->nullable();
$table->longText('description')->nullable();
$table->integer('status')->nullable()->default(1);
$table->integer('order')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('coops');
}
};

View File

@@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('program_levels', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->string('slug')->nullable();
$table->string('link')->nullable();
$table->longText('description')->nullable();
$table->integer('status')->nullable()->default(1);
$table->integer('order')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('program_levels');
}
};

View File

@@ -0,0 +1,71 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('programs', function (Blueprint $table) {
$table->id();
$table->string('title')->nullable();
$table->string('slug')->nullable();
$table->string('code')->nullable();
$table->text('description')->nullable();
$table->unsignedInteger('institution_id')->nullable();
$table->unsignedInteger('programlevel_id')->nullable();
$table->unsignedInteger('coop_id')->nullable();
$table->string('year')->nullable();
$table->string('psw')->nullable();
$table->text('prospects')->nullable();
$table->json('intakes')->nullable();
$table->json('required_documents')->nullable();
$table->string('application_open')->nullable();
$table->string('application_deadline')->nullable();
$table->string('fee')->nullable();
$table->string('scholarship')->nullable();
$table->json('level')->nullable();
$table->string('program_url')->nullable();
$table->unsignedInteger('createdby')->nullable();
$table->unsignedInteger('updatedby')->nullable();
$table->text('remarks')->nullable();
$table->boolean('status')->default(1);
$table->timestamps();
});
Schema::create('programs_tests', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('program_id')->nullable();
$table->unsignedInteger('test_id')->nullable();
$table->string('min_score')->nullable();
$table->string('band_score')->nullable();
$table->timestamps();
});
Schema::create('programs_qualifications', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('program_id')->nullable();
$table->string('level')->nullable();
$table->string('faculty')->nullable();
$table->string('score')->nullable();
$table->string('year')->nullable();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('programs');
Schema::dropIfExists('programs_tests');
Schema::dropIfExists('programs_qualifications');
}
};

View File

@@ -0,0 +1,16 @@
<?php
namespace Modules\CourseFinder\Database\Seeders;
use Illuminate\Database\Seeder;
class CourseFinderDatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
// $this->call([]);
}
}