first commit
This commit is contained in:
commit
6a2026df4b
87 files changed
+13271
No files matched your search
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up()
|
||||
{
|
||||
Schema::create('videos', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->string('title');
|
||||
$table->text('description')->nullable();
|
||||
$table->string('filename');
|
||||
$table->string('path');
|
||||
$table->string('thumbnail')->nullable();
|
||||
$table->integer('duration')->default(0);
|
||||
$table->bigInteger('size')->default(0);
|
||||
$table->enum('status', ['pending', 'processing', 'ready', 'failed'])->default('pending');
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('videos');
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user