Some checks failed
continuous-integration/drone/push Build is failing
- Complete GGZ Ecademy Laravel backend application - RESTful API for learning products, members, filters - Authentication and authorization system - Database migrations and seeders - Custom CRUD generator commands - Email notification system - Integration with frontend applications
32 lines
982 B
PHP
32 lines
982 B
PHP
<?php
|
|
|
|
use Illuminate\Support\Facades\Schema;
|
|
use Illuminate\Database\Schema\Blueprint;
|
|
use Illuminate\Database\Migrations\Migration;
|
|
|
|
class CreateMediaTable extends Migration
|
|
{
|
|
public function up()
|
|
{
|
|
Schema::create('media', function (Blueprint $table) {
|
|
$table->bigIncrements('id');
|
|
|
|
$table->morphs('model');
|
|
$table->uuid('uuid')->nullable();
|
|
$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('responsive_images');
|
|
$table->unsignedInteger('order_column')->nullable();
|
|
|
|
$table->nullableTimestamps();
|
|
});
|
|
}
|
|
}
|