integer('id',true); $table->rememberToken(); $table->timestamps(); $table->integer('date_orig')->nullable(); $table->integer('date_last')->nullable(); $table->integer('date_expire')->nullable(); $table->integer('language_id')->nullable(); $table->integer('country_id'); $table->string('password', 128)->nullable(); $table->boolean('active')->nullable(); $table->string('first_name', 128)->nullable(); $table->string('last_name', 128)->nullable(); $table->string('title', 16)->nullable(); $table->string('email', 128)->nullable()->unique(); $table->string('address1', 128)->nullable(); $table->string('address2', 128)->nullable(); $table->string('city', 32)->nullable(); $table->string('state', 32)->nullable(); $table->string('zip', 16)->nullable(); $table->foreign('country_id')->references('id')->on('country')->onUpdate('NO ACTION')->onDelete('NO ACTION'); $table->foreign('language_id')->references('id')->on('language')->onUpdate('NO ACTION')->onDelete('NO ACTION'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('account'); } }