UsersCompanion class
- Inheritance
-
- Object
- UpdateCompanion<
UserModel> - UsersCompanion
Constructors
-
UsersCompanion({Value<
int> id = const Value.absent(), Value<String> name = const Value.absent(), Value<String> email = const Value.absent(), Value<String> password = const Value.absent(), Value<UserRole> role = const Value.absent()}) -
const
-
UsersCompanion.insert({Value<
int> id = const Value.absent(), required String name, required String email, required String password, required UserRole role})
Properties
Methods
-
copyWith(
{Value< int> ? id, Value<String> ? name, Value<String> ? email, Value<String> ? password, Value<UserRole> ? role}) → UsersCompanion -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toColumns(
bool nullToAbsent) → Map< String, Expression< Object> > -
Converts this object into a map of column names to expressions to insert
or update.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
custom(
{Expression< int> ? id, Expression<String> ? name, Expression<String> ? email, Expression<String> ? password, Expression<int> ? role}) → Insertable<UserModel>