Archived
1
0
This repository has been archived on 2025-05-08. You can view files and clone it, but cannot push or open issues or pull requests.
songrequests/database/migrations/2023_09_16_160111_create_songrequests_table.php
BuildTools f02b0e6191 Init
2023-09-16 18:22:08 +02:00

34 lines
828 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.
*/
public function up(): void
{
Schema::create('songrequests', function (Blueprint $table) {
$table->id();
$table->string('artist');
$table->string('title');
$table->integer('requestedby');
$table->integer('upvotes');
$table->integer('position');
$table->enum('status', ['requested', 'accepted', 'denied', 'fulfilled']);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('songrequests');
}
};