관리-도구
편집 파일: 2021_09_24_000547_create_pos_settings.php
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; class CreatePosSettings extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('pos_settings', function (Blueprint $table) { $table->engine = 'InnoDB'; $table->integer('id', true); $table->string('note_customer', 192)->default('Thank You For Shopping With Us . Please Come Again'); $table->boolean('show_note')->default(1); $table->boolean('show_barcode')->default(1); $table->boolean('show_discount')->default(1); $table->boolean('show_customer')->default(1); $table->boolean('show_email')->default(1); $table->boolean('show_phone')->default(1); $table->boolean('show_address')->default(1); $table->timestamps(6); $table->softDeletes(); }); // Insert some stuff DB::table('pos_settings')->insert( array( 'id' => 1, 'note_customer' => 'Thank You For Shopping With Us . Please Come Again', 'show_note' => 1, 'show_barcode' => 1, 'show_discount' => 1, 'show_customer' => 1, 'show_email' => 1, 'show_phone' => 1, 'show_address' => 1, ) ); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('pos_settings'); } }