UsersCompanion class

Inheritance

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

email Value<String>
final
hashCode int
The hash code for this object.
no setterinherited
id Value<int>
final
name Value<String>
final
password Value<String>
final
role Value<UserRole>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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>