id(); $table->string('name'); $table->string('username')->unique(); $table->string('kodcaw')->nullable(); $table->string('nokp')->nullable(); $table->string('bank_acc_pembeli')->nullable(); $table->string('bank_acc_no_pembeli')->nullable(); $table->string('alamat')->nullable(); $table->string('notelpejabat')->nullable(); $table->string('notelbimbit')->nullable(); $table->string('note')->nullable(); //operasi $table->string('status')->nullable(); //set $table->datetime('t_daftar')->nullable(); $table->integer('online')->nullable(); //set $table->integer('register_agree')->nullable(); $table->string('email')->nullable(); $table->datetime('email_verified_at')->nullable(); $table->string('password'); $table->datetime('disahkan_pada')->nullable(); $table->integer('disahkan_oleh')->nullable(); $table->string('user_type')->nullable(); //set 1,2 $table->rememberToken(); $table->timestamps(); }); Schema::create('loguser', function (Blueprint $table) { $table->bigIncrements('recno'); $table->integer('user_id')->nullable(); //set $table->datetime('date')->nullable(); $table->string('username')->nullable(); $table->string('nama_user')->nullable(); $table->string('norujukan')->nullable(); $table->string('nota'); $table->timestamps(); // $table->foreign('norujukan') // ->references('norujukan')->on('gadai') // ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('users'); } }