Initial commit of the L'Ami Fiduciaire SaaS platform built on Laravel 12, Vue 3, Inertia.js 2, and Tailwind CSS 4. Story 0.1 (rename folders to declarations in database) is implemented and code-reviewed: migration, rollback, and 6 Pest tests all passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
1.0 KiB
PHP
33 lines
1.0 KiB
PHP
<?php
|
|
|
|
use Illuminate\Database\Migrations\Migration;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Support\Facades\Schema;
|
|
|
|
return new class extends Migration
|
|
{
|
|
public function up(): void
|
|
{
|
|
Schema::create('media', function (Blueprint $table) {
|
|
$table->id();
|
|
|
|
$table->morphs('model');
|
|
$table->uuid()->nullable()->unique();
|
|
$table->string('collection_name');
|
|
$table->string('name');
|
|
$table->string('file_name');
|
|
$table->string('mime_type')->nullable();
|
|
$table->string('disk');
|
|
$table->string('conversions_disk')->nullable();
|
|
$table->unsignedBigInteger('size');
|
|
$table->json('manipulations');
|
|
$table->json('custom_properties');
|
|
$table->json('generated_conversions');
|
|
$table->json('responsive_images');
|
|
$table->unsignedInteger('order_column')->nullable()->index();
|
|
|
|
$table->nullableTimestamps();
|
|
});
|
|
}
|
|
};
|