update deploy

This commit is contained in:
bulut
2026-03-27 10:41:54 +03:00
parent 69d19c0176
commit 6f6448aa06
422 changed files with 37956 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
<?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('courses', function (Blueprint $table) {
$table->id();
$table->foreignId('category_id')->constrained()->cascadeOnDelete();
$table->string('slug')->unique();
$table->string('title');
$table->string('sub')->nullable();
$table->text('desc');
$table->longText('long_desc');
$table->string('duration');
$table->unsignedInteger('students')->default(0);
$table->decimal('rating', 2, 1)->default(5.0);
$table->string('badge')->nullable();
$table->string('image')->nullable();
$table->string('price')->nullable();
$table->json('includes')->nullable();
$table->json('requirements')->nullable();
$table->string('meta_title')->nullable();
$table->text('meta_description')->nullable();
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('courses');
}
};