fashionscape/database/migrations/2025_12_04_003743_create_outfit_table.php
Alyx Batte cc550d9677
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
Initial commit
2025-12-09 09:04:09 -05:00

37 lines
993 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('outfit', function (Blueprint $table) {
$table->uuid('object_id')->primary();
$table->timestamps();
$table->string('submitter_id');
$table->string('tag');
$table->string('link')->nullable();
$table->string('file_path');
$table->string('meta')->nullable();
$table->boolean('is_deleted')->default(false);
$table->boolean('is_featured')->default(false);
$table->integer('view_count')->default(0);
$table->integer('likes')->default(0);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('outfit');
}
};