Files
portal-api/database/migrations/2024_02_02_395629_os.php
T
2026-02-02 10:06:42 +07:00

35 lines
809 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('os', function (Blueprint $table) {
$table->id();
$table->string('version', 100)->nullable();
$table->foreignId('os_group_id')->constrained('os_group')->index();
$table->string('template_id')->nullable();
$table->tinyInteger('status')->default(1);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('os');
}
};