engine = 'InnoDB'; $table->charset = 'utf8'; $table->collation = 'utf8_unicode_ci'; $table->increments('id'); $table->string('username', 50); $table->string('firstname')->nullable(); $table->string('lastname')->nullable(); $table->string('email'); $table->string('password'); $table->integer('roles_id')->default(1)->index('ix_user_roles')->comment('FK to roles.id'); $table->string('host', 40)->nullable(); $table->integer('grabs')->default(0); $table->string('api_token', 64); $table->string('resetguid', 50)->nullable(); $table->dateTime('lastlogin')->nullable(); $table->dateTime('apiaccess')->nullable(); $table->integer('invites')->default(0); $table->integer('invitedby')->nullable(); $table->integer('movieview')->default(1); $table->integer('xxxview')->default(1); $table->integer('musicview')->default(1); $table->integer('consoleview')->default(1); $table->integer('bookview')->default(1); $table->integer('gameview')->default(1); $table->integer('rate_limit')->default(60); $table->string('saburl')->nullable(); $table->string('sabapikey')->nullable(); $table->boolean('sabapikeytype')->nullable(); $table->boolean('sabpriority')->nullable(); $table->boolean('queuetype')->default(1)->comment('Type of queue, Sab or NZBGet'); $table->string('nzbgeturl')->nullable(); $table->string('nzbgetusername')->nullable(); $table->string('nzbgetpassword')->nullable(); $table->string('nzbvortex_api_key', 10)->nullable(); $table->string('nzbvortex_server_url')->nullable(); $table->string('userseed', 50); $table->string('notes')->nullable(); $table->string('cp_url')->nullable(); $table->string('cp_api')->nullable(); $table->string('style')->nullable(); $table->dateTime('rolechangedate')->nullable()->comment('When does the role expire'); $table->timestamp('email_verified_at')->nullable(); $table->rememberToken(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('users'); } }