Files
ai-stylegallery/database/migrations/2025_07_24_165805_create_styles_table.php
SEB Fotografie - soeren 573661825b added auto_inc to id in styles table
fixed a bug in the ai-model edit form
switched to sqlite
2025-08-06 13:39:36 +02:00

32 lines
764 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('styles', function (Blueprint $table) {
$table->increments('id');
$table->string('title');
$table->text('prompt');
$table->text('description');
$table->string('preview_image');
$table->foreignId('api_provider_id')->constrained();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('styles');
}
};