diff --git a/ProcessMaker/Models/User.php b/ProcessMaker/Models/User.php index 0b2ac0d0bb..151ed86d25 100644 --- a/ProcessMaker/Models/User.php +++ b/ProcessMaker/Models/User.php @@ -85,6 +85,7 @@ class User extends Authenticatable implements HasMedia * @OA\Property(property="manager_id", type="string", format="id"), * @OA\Property(property="meta", type="object", additionalProperties=true), * @OA\Property(property="force_change_password", type="boolean"), + * @OA\Property(property="email_task_notification", type="boolean"), * ), * @OA\Schema( * schema="users", @@ -128,6 +129,7 @@ class User extends Authenticatable implements HasMedia 'password_changed_at', 'connected_accounts', 'preferences_2fa', + 'email_task_notification', ]; protected $appends = [ diff --git a/database/migrations/2025_01_09_210416_add_email_task_notification_to_users_table.php b/database/migrations/2025_01_09_210416_add_email_task_notification_to_users_table.php new file mode 100644 index 0000000000..1bb1c67429 --- /dev/null +++ b/database/migrations/2025_01_09_210416_add_email_task_notification_to_users_table.php @@ -0,0 +1,31 @@ +boolean('email_task_notification')->default(1); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('users', function (Blueprint $table) { + $table->dropColumn('email_task_notification'); + }); + } +};