diff --git a/app/Http/Controllers/MediaController.php b/app/Http/Controllers/MediaController.php new file mode 100644 index 000000000..9cef3b14e --- /dev/null +++ b/app/Http/Controllers/MediaController.php @@ -0,0 +1,10 @@ +increments('id'); + $table->unsignedInteger('status_id')->nullable(); + $table->unsignedInteger('profile_id')->nullable(); + $table->unsignedInteger('user_id')->nullable(); + $table->string('media_path'); + $table->string('cdn_url')->nullable(); + $table->tinyInteger('order')->unsigned()->default(1); + $table->string('mime')->nullable(); + $table->unsignedInteger('size')->nullable(); + $table->timestamp('processed_at')->nullable(); + $table->unique(['status_id', 'media_path']); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('media'); + } +}