You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.0 KiB

  1. <?php
  2. use Illuminate\Support\Facades\Schema;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Database\Migrations\Migration;
  5. class CreateMediaTable extends Migration
  6. {
  7. public function up()
  8. {
  9. Schema::create('media', function (Blueprint $table) {
  10. $table->bigIncrements('id');
  11. $table->morphs('model');
  12. $table->uuid('uuid')->nullable()->unique();
  13. $table->string('collection_name');
  14. $table->string('name');
  15. $table->string('file_name');
  16. $table->string('mime_type')->nullable();
  17. $table->string('disk');
  18. $table->string('conversions_disk')->nullable();
  19. $table->unsignedBigInteger('size');
  20. $table->json('manipulations');
  21. $table->json('custom_properties');
  22. $table->json('generated_conversions');
  23. $table->json('responsive_images');
  24. $table->unsignedInteger('order_column')->nullable();
  25. $table->nullableTimestamps();
  26. });
  27. }
  28. }