const
DomainModel({ - required String id,
- required String name,
- required String slug,
- String? description,
- String? iconName,
- @Default(0) int sortOrder,
- String? ownerId,
- @Default('public') String visibility,
- String? orgId,
- @Default(false) bool isStarter,
- String? domainFamily,
- String? variant,
})
Implementation
const factory DomainModel({
required String id,
required String name,
required String slug,
String? description,
String? iconName,
@Default(0) int sortOrder,
String? ownerId,
@Default('public') String visibility,
/// Owning organization, when the domain is org content rather than a
/// personal one. A real column since migration 025 that this model simply
/// never mapped.
String? orgId,
/// Curated starter curriculum, surfaced in the in-app catalog. Set only by
/// platform admins (migration 072's `enforce_domain_starter_flag`).
@Default(false) bool isStarter,
String? domainFamily,
String? variant,
}) = _DomainModel;