Add opt-in as part of GDPR #244
This commit is contained in:
@@ -32,6 +32,7 @@ class CreateUsersTable extends Migration
|
|||||||
$table->string('timezone', 64)->nullable();
|
$table->string('timezone', 64)->nullable();
|
||||||
$table->unsignedTinyInteger('status')->nullable()->default(0);
|
$table->unsignedTinyInteger('status')->nullable()->default(0);
|
||||||
$table->unsignedTinyInteger('state')->nullable()->default(0);
|
$table->unsignedTinyInteger('state')->nullable()->default(0);
|
||||||
|
$table->boolean('opt_in')->nullable();
|
||||||
$table->boolean('active')->nullable();
|
$table->boolean('active')->nullable();
|
||||||
$table->ipAddress('last_ip')->nullable();
|
$table->ipAddress('last_ip')->nullable();
|
||||||
$table->rememberToken();
|
$table->rememberToken();
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ use Laratrust\Traits\LaratrustUserTrait;
|
|||||||
* @property Journal journal
|
* @property Journal journal
|
||||||
* @property string pilot_id
|
* @property string pilot_id
|
||||||
* @property int state
|
* @property int state
|
||||||
|
* @property bool opt_in
|
||||||
* @mixin \Illuminate\Notifications\Notifiable
|
* @mixin \Illuminate\Notifications\Notifiable
|
||||||
* @mixin \Laratrust\Traits\LaratrustUserTrait
|
* @mixin \Laratrust\Traits\LaratrustUserTrait
|
||||||
*/
|
*/
|
||||||
@@ -60,6 +61,7 @@ class User extends Authenticatable
|
|||||||
'timezone',
|
'timezone',
|
||||||
'state',
|
'state',
|
||||||
'status',
|
'status',
|
||||||
|
'opt_in',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_at',
|
'updated_at',
|
||||||
];
|
];
|
||||||
@@ -80,6 +82,7 @@ class User extends Authenticatable
|
|||||||
'balance' => 'double',
|
'balance' => 'double',
|
||||||
'state' => 'integer',
|
'state' => 'integer',
|
||||||
'status' => 'integer',
|
'status' => 'integer',
|
||||||
|
'opt_in' => 'boolean',
|
||||||
];
|
];
|
||||||
|
|
||||||
public static $rules = [
|
public static $rules = [
|
||||||
|
|||||||
Reference in New Issue
Block a user