simedkom/database/migrations/2025_03_06_065030_create_cooperations_table.php
myuqinurrohman d0c9a29970 feat: media cooperation
feat: cooperation request
2025-03-07 21:49:52 +07:00

37 lines
972 B
PHP

<?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('cooperations', function (Blueprint $table) {
$table->id();
$table->text('name');
$table->date('start_date');
$table->date('end_date');
$table->string('banner')->nullable();
$table->string('offer_file_template')->nullable();
$table->text('description');
$table->unsignedBigInteger('enhancer_id');
$table->foreign('enhancer_id')->references('id')->on('users');
$table->timestamps();
$table->softDeletes();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('cooperations');
}
};