User constructor
const
User({
- required String id,
- required String name,
- required String email,
- @Default(false) bool emailVerified,
- String? image,
- @Default(null) DateTime? createdAt,
- @Default(null) DateTime? updatedAt,
- @Default(false) bool twoFactorEnabled,
- String? username,
- String? displayUsername,
- @Default(false) bool isAnonymous,
- String? phoneNumber,
- @Default(false) bool phoneNumberVerified,
- String? role,
- @Default(false) bool banned,
- String? banReason,
- DateTime? banExpires,
Implementation
const factory User({
required String id,
required String name,
required String email,
@Default(false) bool emailVerified,
String? image,
@Default(null) DateTime? createdAt,
@Default(null) DateTime? updatedAt,
@Default(false) bool twoFactorEnabled,
String? username,
String? displayUsername,
@Default(false) bool isAnonymous,
String? phoneNumber,
@Default(false) bool phoneNumberVerified,
String? role,
@Default(false) bool banned,
String? banReason,
DateTime? banExpires,
}) = _User;