2014-07-07 23:10:12
class CreateUser extends Migration {
 
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//
        Schema::create("users",function($table){
            $table->increments('ID');
            $table->string('Username', 255)->unique();
            $table->string('Email', 255)->unique();
            $table->string('Password',32);
            $table->string('Avatar');
            $table->date('Birthday')->default('0000-00-00');
            $table->enum('Gender', array('Male', 'Female'))->default('Male');
            $table->enum('Status', array('Active', 'InActive','Banned'))->default('InActive');
            $table->enum('Role', array('SupperAdmin', 'Admin','User'))->default('User');
            $table->string('VerifyCode');
            $table->timestamps();
        });
	}
 
	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		// lam gi thi tuy
	}
 
}
 
Invalid Email or Password