Created django import command

This commit is contained in:
Edward Tirado Jr 2026-04-20 23:38:13 -05:00
parent e38a2b13ed
commit 445bd3b1f7
6 changed files with 322 additions and 0 deletions

View file

@ -0,0 +1,32 @@
<?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('schedules', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->boolean('is_public')->default(false);
$table->string('slug');
$table->foreignId('owner')->constrained('users')->cascadeOnDelete();
$table->softDeletes();
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('schedules');
}
};