diff --git a/app/Models/Team.php b/app/Models/Team.php index 20948855a7..1a0ad8c036 100644 --- a/app/Models/Team.php +++ b/app/Models/Team.php @@ -46,10 +46,12 @@ class Team extends Model implements SendsDiscord, SendsEmail, SendsPushover, Sen 'personal_team', 'show_boarding', 'custom_server_limit', + 'is_inactive', ]; protected $casts = [ 'personal_team' => 'boolean', + 'is_inactive' => 'boolean', ]; protected static function booted() diff --git a/app/Models/User.php b/app/Models/User.php index 237f3836f3..0b5ef278d2 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -52,6 +52,7 @@ class User extends Authenticatable implements SendsEmail 'pending_email', 'email_change_code', 'email_change_code_expires_at', + 'is_inactive', ]; protected $hidden = [ @@ -66,6 +67,7 @@ class User extends Authenticatable implements SendsEmail 'force_password_reset' => 'boolean', 'show_boarding' => 'boolean', 'email_change_code_expires_at' => 'datetime', + 'is_inactive' => 'boolean', ]; /** diff --git a/database/migrations/2026_04_29_000002_add_inactive_tracking_to_teams_and_users.php b/database/migrations/2026_04_29_000002_add_inactive_tracking_to_teams_and_users.php new file mode 100644 index 0000000000..e893413f5f --- /dev/null +++ b/database/migrations/2026_04_29_000002_add_inactive_tracking_to_teams_and_users.php @@ -0,0 +1,21 @@ +boolean('is_inactive')->default(false); + $table->index('is_inactive'); + }); + + Schema::table('users', function (Blueprint $table) { + $table->boolean('is_inactive')->default(false); + $table->index('is_inactive'); + }); + } +};