@@ -188,8 +188,6 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
188
188
type: RequiredPermissionType .adminOnly,
189
189
),
190
190
),
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)
193
191
'user' : ModelConfig <User >(
194
192
fromJson: User .fromJson,
195
193
getId: (u) => u.id,
@@ -215,7 +213,6 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
215
213
requiresOwnershipCheck: true , // Must be the owner
216
214
),
217
215
),
218
- // Configuration for UserAppSettings (user-owned)
219
216
'user_app_settings' : ModelConfig <UserAppSettings >(
220
217
fromJson: UserAppSettings .fromJson,
221
218
getId: (s) => s.id,
@@ -242,7 +239,6 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
242
239
// during account deletion, not via a direct DELETE to /api/v1/data.
243
240
),
244
241
),
245
- // Configuration for UserContentPreferences (user-owned)
246
242
'user_content_preferences' : ModelConfig <UserContentPreferences >(
247
243
fromJson: UserContentPreferences .fromJson,
248
244
getId: (p) => p.id,
@@ -269,7 +265,6 @@ final modelRegistry = <String, ModelConfig<dynamic>>{
269
265
// service during account deletion, not via a direct DELETE to /api/v1/data.
270
266
),
271
267
),
272
- // Configuration for AppConfig (global, managed by admins, readable by all authenticated)
273
268
'app_config' : ModelConfig <AppConfig >(
274
269
fromJson: AppConfig .fromJson,
275
270
getId: (config) => config.id,
0 commit comments