UsersDBModel constructor
Constructor for UsersDBModel.
IDis an optional parameter representing the user's unique ID. If not provided, it defaults to0.- name is the user's name and must be provided.
- hashedPassword is the user's hashed password and must also be provided.
Implementation
UsersDBModel({
ID,
required this.name,
required this.hashedPassword,
}) {
// Set ID to `0` if not provided.
this.ID = ID ?? 0;
}