37 lines
993 B
PHP
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');
|
|
}
|
|
};
|