GOOD SHELL MAS BOY
Server: Apache/2.4.52 (Ubuntu)
System: Linux vmi1836763.contaboserver.net 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
User: www-data (33)
PHP: 8.4.10
Disabled: NONE
Upload Files
File: /var/www/api.vaspayment.com/database/migrations/2024_04_05_092750_create_shops_table.php
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{

    public function up(): void
    {
        Schema::create('shops', function (Blueprint $table) {
            $table->id();
            $table->string('title');
            $table->string('slug');
            $table->text('description');
            $table->string('specification')->nullable();
            $table->string('features')->nullable();
            $table->decimal('regular_price', 10, 2)->nullable();
            $table->decimal('sales_price', 10, 2)->nullable();
            $table->string('stock');
            $table->string('image');
            $table->string('views')->default('0');
            $table->enum('status', [0, 1])->default(0)->comment('0 is Active, 1 is Inactive');
            $table->timestamps();
        });
    }


    public function down(): void
    {
        Schema::dropIfExists('shops');
    }
};