Skip to content

Commit 81c04ac

Browse files
committed
misc
1 parent df663a9 commit 81c04ac

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/src/registry/model_registry.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
188188
type: RequiredPermissionType.adminOnly,
189189
),
190190
),
191-
// Add configurations for other models like User, AppSettings, etc.
192-
// Example for a User model (user can read/update their own, admin can read any)
193191
'user': ModelConfig<User>(
194192
fromJson: User.fromJson,
195193
getId: (u) => u.id,
@@ -215,7 +213,6 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
215213
requiresOwnershipCheck: true, // Must be the owner
216214
),
217215
),
218-
// Configuration for UserAppSettings (user-owned)
219216
'user_app_settings': ModelConfig<UserAppSettings>(
220217
fromJson: UserAppSettings.fromJson,
221218
getId: (s) => s.id,
@@ -242,7 +239,6 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
242239
// during account deletion, not via a direct DELETE to /api/v1/data.
243240
),
244241
),
245-
// Configuration for UserContentPreferences (user-owned)
246242
'user_content_preferences': ModelConfig<UserContentPreferences>(
247243
fromJson: UserContentPreferences.fromJson,
248244
getId: (p) => p.id,
@@ -269,7 +265,6 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
269265
// service during account deletion, not via a direct DELETE to /api/v1/data.
270266
),
271267
),
272-
// Configuration for AppConfig (global, managed by admins, readable by all authenticated)
273268
'app_config': ModelConfig<AppConfig>(
274269
fromJson: AppConfig.fromJson,
275270
getId: (config) => config.id,

0 commit comments

Comments
 (0)