/
home
/
sjslayjy
/
public_html
/
devlok
/
database
/
migrations
/
Upload File
HOME
<?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; class CreateSaleDetailsTable extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::create('sale_details', function (Blueprint $table) { $table->bigIncrements('id'); $table->date('date'); $table->tinyInteger('unit_code')->comment('1/2/3'); $table->string('sale_type', 30); $table->string('chl_no', 15); $table->string('dealer_code', 15); $table->string('retailer_code', 15); $table->string('destination_code', 255); $table->string('stock_type', 5)->comment('D/S/G'); $table->string('truck_no', 15); $table->string('product', 15); $table->integer('quantity')->comment('MT'); $table->string('fresh_dmg', 5)->comment('F/D'); $table->integer('rate')->comment('per bag'); $table->string('fix_rate', 5)->comment('Y/N'); $table->integer('freight')->comment('per MT'); $table->integer('destination_id'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('sale_details'); } }