More base setup and integration with AdminLTE

This commit is contained in:
Deon George
2016-10-21 01:40:52 +11:00
parent 84ae365676
commit 3f54233c39
1495 changed files with 841197 additions and 20908 deletions

View File

@@ -0,0 +1,52 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateAccountTable extends Migration {
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('account', function(Blueprint $table)
{
$table->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');
}
}