pdv.backend/database/migrations/2026_03_21_092446_create_bills_table.php

33 lines
762 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('bills', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->decimal('cost', 12, 2);
$table->string('file_path')->nullable();
$table->date('deadline')->nullable();
$table->boolean('paid')->default(false);
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('bills');
}
};