OwlCyberSecurity - MANAGER
Edit File: 2023_06_05_190523_create_coupons_table.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('coupons', function (Blueprint $table) { $table->increments('id'); $table->string('coupon_name')->nullable(); $table->text('description')->nullable(); $table->string('code')->nullable(); $table->text('destination_url')->nullable(); $table->dateTime('ending_date')->nullable(); $table->integer('store_id')->nullable(); $table->tinyInteger('status')->default(0); $table->tinyInteger('never_expire')->default(0); $table->tinyInteger('featured')->default(0); $table->tinyInteger('free_shipping')->default(0); $table->tinyInteger('coupon_code')->default(0); $table->tinyInteger('deal')->default(0); $table->tinyInteger('valentine')->default(0); $table->integer('views')->default(0); $table->integer('likes')->default(0); $table->integer('unlikes')->default(0); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('coupons'); } };