@ -12,10 +12,9 @@ typedef $$UserEntityTableCreateCompanionBuilder =
required String name ,
i0 . Value < bool > isAdmin ,
required String email ,
i0 . Value < String ? > profileImagePath ,
i0 . Value < bool > hasProfileImage ,
i0 . Value < DateTime > profileChangedAt ,
i0 . Value < DateTime > updatedAt ,
i0 . Value < int ? > quotaSizeInBytes ,
i0 . Value < int > quotaUsageInBytes ,
} ) ;
typedef $ $UserEntityTableUpdateCompanionBuilder =
i1 . UserEntityCompanion Function ( {
@ -23,10 +22,9 @@ typedef $$UserEntityTableUpdateCompanionBuilder =
i0 . Value < String > name ,
i0 . Value < bool > isAdmin ,
i0 . Value < String > email ,
i0 . Value < String ? > profileImagePath ,
i0 . Value < bool > hasProfileImage ,
i0 . Value < DateTime > profileChangedAt ,
i0 . Value < DateTime > updatedAt ,
i0 . Value < int ? > quotaSizeInBytes ,
i0 . Value < int > quotaUsageInBytes ,
} ) ;
class $ $UserEntityTableFilterComposer
@ -58,23 +56,18 @@ class $$UserEntityTableFilterComposer
builder: ( column ) = > i0 . ColumnFilters ( column ) ,
) ;
i0 . ColumnFilters < String> get profileImagePath = > $composableBuilder (
column: $table . profileImagePath ,
i0 . ColumnFilters < bool> get hasProfileImage = > $composableBuilder (
column: $table . hasProfileImage ,
builder: ( column ) = > i0 . ColumnFilters ( column ) ,
) ;
i0 . ColumnFilters < DateTime > get updatedAt = > $composableBuilder (
column: $table . updatedAt ,
builder: ( column ) = > i0 . ColumnFilters ( column ) ,
) ;
i0 . ColumnFilters < int > get quotaSizeInBytes = > $composableBuilder (
column: $table . quotaSizeInBytes ,
i0 . ColumnFilters < DateTime > get profileChangedAt = > $composableBuilder (
column: $table . profileChangedAt ,
builder: ( column ) = > i0 . ColumnFilters ( column ) ,
) ;
i0 . ColumnFilters < int > get quotaUsageInBytes = > $composableBuilder (
column: $table . quotaUsageInBytes ,
i0 . ColumnFilters < DateTime > get updatedAt = > $composableBuilder (
column: $table . updatedAt ,
builder: ( column ) = > i0 . ColumnFilters ( column ) ,
) ;
}
@ -108,23 +101,18 @@ class $$UserEntityTableOrderingComposer
builder: ( column ) = > i0 . ColumnOrderings ( column ) ,
) ;
i0 . ColumnOrderings < String > get profileImagePath = > $composableBuilder (
column: $table . profileImagePath ,
builder: ( column ) = > i0 . ColumnOrderings ( column ) ,
) ;
i0 . ColumnOrderings < DateTime > get updatedAt = > $composableBuilder (
column: $table . updatedAt ,
i0 . ColumnOrderings < bool > get hasProfileImage = > $composableBuilder (
column: $table . hasProfileImage ,
builder: ( column ) = > i0 . ColumnOrderings ( column ) ,
) ;
i0 . ColumnOrderings < int > get quotaSizeInBytes = > $composableBuilder (
column: $table . quotaSizeInBytes ,
i0 . ColumnOrderings < DateTime > get profileChangedAt = > $composableBuilder (
column: $table . profileChangedAt ,
builder: ( column ) = > i0 . ColumnOrderings ( column ) ,
) ;
i0 . ColumnOrderings < int > get quotaUsageInBytes = > $composableBuilder (
column: $table . quotaUsageInBytes ,
i0 . ColumnOrderings < DateTime > get updatedAt = > $composableBuilder (
column: $table . updatedAt ,
builder: ( column ) = > i0 . ColumnOrderings ( column ) ,
) ;
}
@ -150,23 +138,18 @@ class $$UserEntityTableAnnotationComposer
i0 . GeneratedColumn < String > get email = >
$composableBuilder ( column: $table . email , builder: ( column ) = > column ) ;
i0 . GeneratedColumn < String> get profileImagePath = > $composableBuilder (
column: $table . profileImagePath ,
i0 . GeneratedColumn < bool> get hasProfileImage = > $composableBuilder (
column: $table . hasProfileImage ,
builder: ( column ) = > column ,
) ;
i0 . GeneratedColumn < DateTime > get updatedAt = >
$composableBuilder ( column: $table . updatedAt , builder: ( column ) = > column ) ;
i0 . GeneratedColumn < int > get quotaSizeInBytes = > $composableBuilder (
column: $table . quotaSizeInBytes ,
i0 . GeneratedColumn < DateTime > get profileChangedAt = > $composableBuilder (
column: $table . profileChangedAt ,
builder: ( column ) = > column ,
) ;
i0 . GeneratedColumn < int > get quotaUsageInBytes = > $composableBuilder (
column: $table . quotaUsageInBytes ,
builder: ( column ) = > column ,
) ;
i0 . GeneratedColumn < DateTime > get updatedAt = >
$composableBuilder ( column: $table . updatedAt , builder: ( column ) = > column ) ;
}
class $ $UserEntityTableTableManager
@ -210,19 +193,17 @@ class $$UserEntityTableTableManager
i0 . Value < String > name = const i0 . Value . absent ( ) ,
i0 . Value < bool > isAdmin = const i0 . Value . absent ( ) ,
i0 . Value < String > email = const i0 . Value . absent ( ) ,
i0 . Value < String ? > profileImagePath = const i0 . Value . absent ( ) ,
i0 . Value < bool > hasProfileImage = const i0 . Value . absent ( ) ,
i0 . Value < DateTime > profileChangedAt = const i0 . Value . absent ( ) ,
i0 . Value < DateTime > updatedAt = const i0 . Value . absent ( ) ,
i0 . Value < int ? > quotaSizeInBytes = const i0 . Value . absent ( ) ,
i0 . Value < int > quotaUsageInBytes = const i0 . Value . absent ( ) ,
} ) = > i1 . UserEntityCompanion (
id: id ,
name: name ,
isAdmin: isAdmin ,
email: email ,
profileImagePath: profileImagePath ,
hasProfileImage: hasProfileImage ,
profileChangedAt: profileChangedAt ,
updatedAt: updatedAt ,
quotaSizeInBytes: quotaSizeInBytes ,
quotaUsageInBytes: quotaUsageInBytes ,
) ,
createCompanionCallback:
( {
@ -230,19 +211,17 @@ class $$UserEntityTableTableManager
required String name ,
i0 . Value < bool > isAdmin = const i0 . Value . absent ( ) ,
required String email ,
i0 . Value < String ? > profileImagePath = const i0 . Value . absent ( ) ,
i0 . Value < bool > hasProfileImage = const i0 . Value . absent ( ) ,
i0 . Value < DateTime > profileChangedAt = const i0 . Value . absent ( ) ,
i0 . Value < DateTime > updatedAt = const i0 . Value . absent ( ) ,
i0 . Value < int ? > quotaSizeInBytes = const i0 . Value . absent ( ) ,
i0 . Value < int > quotaUsageInBytes = const i0 . Value . absent ( ) ,
} ) = > i1 . UserEntityCompanion . insert (
id: id ,
name: name ,
isAdmin: isAdmin ,
email: email ,
profileImagePath: profileImagePath ,
hasProfileImage: hasProfileImage ,
profileChangedAt: profileChangedAt ,
updatedAt: updatedAt ,
quotaSizeInBytes: quotaSizeInBytes ,
quotaUsageInBytes: quotaUsageInBytes ,
) ,
withReferenceMapper: ( p0 ) = > p0
. map ( ( e ) = > ( e . readTable ( table ) , i0 . BaseReferences ( db , table , e ) ) )
@ -326,51 +305,45 @@ class $UserEntityTable extends i2.UserEntity
type: i0 . DriftSqlType . string ,
requiredDuringInsert: true ,
) ;
static const i0 . VerificationMeta _ profileImagePath Meta =
const i0 . VerificationMeta ( ' profileImagePath ' ) ;
static const i0 . VerificationMeta _ hasProfileImage Meta =
const i0 . VerificationMeta ( ' hasProfileImage ' ) ;
@ override
late final i0 . GeneratedColumn < String> profileImagePath =
i0 . GeneratedColumn < String > (
' profile_image_path ' ,
late final i0 . GeneratedColumn < bool> hasProfileImage =
i0 . GeneratedColumn < bool > (
' has_ profile_image' ,
aliasedName ,
tru e,
type: i0 . DriftSqlType . string ,
fals e,
type: i0 . DriftSqlType . bool ,
requiredDuringInsert: false ,
defaultConstraints: i0 . GeneratedColumn . constraintIsAlways (
' CHECK ("has_profile_image" IN (0, 1)) ' ,
) ,
defaultValue: const i3 . Constant ( false ) ,
) ;
static const i0 . VerificationMeta _updatedAtMeta = const i0 . VerificationMeta (
' updatedAt ' ,
) ;
static const i0 . VerificationMeta _profileChangedAtMeta =
const i0 . VerificationMeta ( ' profileChangedAt ' ) ;
@ override
late final i0 . GeneratedColumn < DateTime > updat edAt =
late final i0 . GeneratedColumn < DateTime > profileChang edAt =
i0 . GeneratedColumn < DateTime > (
' updat ed_at' ,
' profile_chang ed_at' ,
aliasedName ,
false ,
type: i0 . DriftSqlType . dateTime ,
requiredDuringInsert: false ,
defaultValue: i3 . currentDateAndTime ,
) ;
static const i0 . VerificationMeta _quotaSizeInBytesMeta =
const i0 . VerificationMeta ( ' quotaSizeInBytes ' ) ;
@ override
late final i0 . GeneratedColumn < int > quotaSizeInBytes = i0 . GeneratedColumn < int > (
' quota_size_in_bytes ' ,
aliasedName ,
true ,
type: i0 . DriftSqlType . int ,
requiredDuringInsert: false ,
static const i0 . VerificationMeta _updatedAtMeta = const i0 . VerificationMeta (
' updatedAt ' ,
) ;
static const i0 . VerificationMeta _quotaUsageInBytesMeta =
const i0 . VerificationMeta ( ' quotaUsageInBytes ' ) ;
@ override
late final i0 . GeneratedColumn < int > quotaUsageInBytes =
i0 . GeneratedColumn < int > (
' quota_usage_in_bytes ' ,
late final i0 . GeneratedColumn < DateTime > updatedAt =
i0 . GeneratedColumn < DateTime > (
' updated_at ' ,
aliasedName ,
false ,
type: i0 . DriftSqlType . int ,
type: i0 . DriftSqlType . dateTime ,
requiredDuringInsert: false ,
defaultValue: const i3 . Constant ( 0 ) ,
defaultValue: i3 . currentDateAndTime ,
) ;
@ override
List < i0 . GeneratedColumn > get $columns = > [
@ -378,10 +351,9 @@ class $UserEntityTable extends i2.UserEntity
name ,
isAdmin ,
email ,
profileImagePath ,
hasProfileImage ,
profileChangedAt ,
updatedAt ,
quotaSizeInBytes ,
quotaUsageInBytes ,
] ;
@ override
String get aliasedName = > _alias ? ? actualTableName ;
@ -422,37 +394,28 @@ class $UserEntityTable extends i2.UserEntity
} else if ( isInserting ) {
context . missing ( _emailMeta ) ;
}
if ( data . containsKey ( ' profile_image_path ' ) ) {
if ( data . containsKey ( ' has_ profile_image' ) ) {
context . handle (
_ profileImagePath Meta,
profileImagePath . isAcceptableOrUnknown (
data [ ' profile_image_path ' ] ! ,
_ profileImagePath Meta,
_ hasProfileImage Meta,
hasProfileImage . isAcceptableOrUnknown (
data [ ' has_ profile_image' ] ! ,
_ hasProfileImage Meta,
) ,
) ;
}
if ( data . containsKey ( ' updat ed_at' ) ) {
if ( data . containsKey ( ' profile_chang ed_at' ) ) {
context . handle (
_updatedAtMeta ,
updatedAt . isAcceptableOrUnknown ( data [ ' updated_at ' ] ! , _updatedAtMeta ) ,
) ;
}
if ( data . containsKey ( ' quota_size_in_bytes ' ) ) {
context . handle (
_quotaSizeInBytesMeta ,
quotaSizeInBytes . isAcceptableOrUnknown (
data [ ' quota_size_in_bytes ' ] ! ,
_quotaSizeInBytesMeta ,
_profileChangedAtMeta ,
profileChangedAt . isAcceptableOrUnknown (
data [ ' profile_changed_at ' ] ! ,
_profileChangedAtMeta ,
) ,
) ;
}
if ( data . containsKey ( ' quota_usage_in_bytes ' ) ) {
if ( data . containsKey ( ' updated_at ' ) ) {
context . handle (
_quotaUsageInBytesMeta ,
quotaUsageInBytes . isAcceptableOrUnknown (
data [ ' quota_usage_in_bytes ' ] ! ,
_quotaUsageInBytesMeta ,
) ,
_updatedAtMeta ,
updatedAt . isAcceptableOrUnknown ( data [ ' updated_at ' ] ! , _updatedAtMeta ) ,
) ;
}
return context ;
@ -480,22 +443,18 @@ class $UserEntityTable extends i2.UserEntity
i0 . DriftSqlType . string ,
data [ ' ${ effectivePrefix } email ' ] ,
) ! ,
profileImagePath: attachedDatabase . typeMapping . read (
i0 . DriftSqlType . string ,
data [ ' ${ effectivePrefix } profile_image_path ' ] ,
) ,
hasProfileImage: attachedDatabase . typeMapping . read (
i0 . DriftSqlType . bool ,
data [ ' ${ effectivePrefix } has_profile_image ' ] ,
) ! ,
profileChangedAt: attachedDatabase . typeMapping . read (
i0 . DriftSqlType . dateTime ,
data [ ' ${ effectivePrefix } profile_changed_at ' ] ,
) ! ,
updatedAt: attachedDatabase . typeMapping . read (
i0 . DriftSqlType . dateTime ,
data [ ' ${ effectivePrefix } updated_at ' ] ,
) ! ,
quotaSizeInBytes: attachedDatabase . typeMapping . read (
i0 . DriftSqlType . int ,
data [ ' ${ effectivePrefix } quota_size_in_bytes ' ] ,
) ,
quotaUsageInBytes: attachedDatabase . typeMapping . read (
i0 . DriftSqlType . int ,
data [ ' ${ effectivePrefix } quota_usage_in_bytes ' ] ,
) ! ,
) ;
}
@ -516,19 +475,17 @@ class UserEntityData extends i0.DataClass
final String name ;
final bool isAdmin ;
final String email ;
final String ? profileImagePath ;
final bool hasProfileImage ;
final DateTime profileChangedAt ;
final DateTime updatedAt ;
final int ? quotaSizeInBytes ;
final int quotaUsageInBytes ;
const UserEntityData ( {
required this . id ,
required this . name ,
required this . isAdmin ,
required this . email ,
this . profileImagePath ,
required this . hasProfileImage ,
required this . profileChangedAt ,
required this . updatedAt ,
this . quotaSizeInBytes ,
required this . quotaUsageInBytes ,
} ) ;
@ override
Map < String , i0 . Expression > toColumns ( bool nullToAbsent ) {
@ -537,14 +494,9 @@ class UserEntityData extends i0.DataClass
map [ ' name ' ] = i0 . Variable < String > ( name ) ;
map [ ' is_admin ' ] = i0 . Variable < bool > ( isAdmin ) ;
map [ ' email ' ] = i0 . Variable < String > ( email ) ;
if ( ! nullToAbsent | | profileImagePath ! = null ) {
map [ ' profile_image_path ' ] = i0 . Variable < String > ( profileImagePath ) ;
}
map [ ' has_profile_image ' ] = i0 . Variable < bool > ( hasProfileImage ) ;
map [ ' profile_changed_at ' ] = i0 . Variable < DateTime > ( profileChangedAt ) ;
map [ ' updated_at ' ] = i0 . Variable < DateTime > ( updatedAt ) ;
if ( ! nullToAbsent | | quotaSizeInBytes ! = null ) {
map [ ' quota_size_in_bytes ' ] = i0 . Variable < int > ( quotaSizeInBytes ) ;
}
map [ ' quota_usage_in_bytes ' ] = i0 . Variable < int > ( quotaUsageInBytes ) ;
return map ;
}
@ -558,10 +510,9 @@ class UserEntityData extends i0.DataClass
name: serializer . fromJson < String > ( json [ ' name ' ] ) ,
isAdmin: serializer . fromJson < bool > ( json [ ' isAdmin ' ] ) ,
email: serializer . fromJson < String > ( json [ ' email ' ] ) ,
profileImagePath: serializer . fromJson < String ? > ( json [ ' profileImagePath ' ] ) ,
hasProfileImage: serializer . fromJson < bool > ( json [ ' hasProfileImage ' ] ) ,
profileChangedAt: serializer . fromJson < DateTime > ( json [ ' profileChangedAt ' ] ) ,
updatedAt: serializer . fromJson < DateTime > ( json [ ' updatedAt ' ] ) ,
quotaSizeInBytes: serializer . fromJson < int ? > ( json [ ' quotaSizeInBytes ' ] ) ,
quotaUsageInBytes: serializer . fromJson < int > ( json [ ' quotaUsageInBytes ' ] ) ,
) ;
}
@ override
@ -572,10 +523,9 @@ class UserEntityData extends i0.DataClass
' name ' : serializer . toJson < String > ( name ) ,
' isAdmin ' : serializer . toJson < bool > ( isAdmin ) ,
' email ' : serializer . toJson < String > ( email ) ,
' profileImagePath ' : serializer . toJson < String ? > ( profileImagePath ) ,
' hasProfileImage ' : serializer . toJson < bool > ( hasProfileImage ) ,
' profileChangedAt ' : serializer . toJson < DateTime > ( profileChangedAt ) ,
' updatedAt ' : serializer . toJson < DateTime > ( updatedAt ) ,
' quotaSizeInBytes ' : serializer . toJson < int ? > ( quotaSizeInBytes ) ,
' quotaUsageInBytes ' : serializer . toJson < int > ( quotaUsageInBytes ) ,
} ;
}
@ -584,23 +534,17 @@ class UserEntityData extends i0.DataClass
String ? name ,
bool ? isAdmin ,
String ? email ,
i0 . Value < String ? > profileImagePath = const i0 . Value . absent ( ) ,
bool ? hasProfileImage ,
DateTime ? profileChangedAt ,
DateTime ? updatedAt ,
i0 . Value < int ? > quotaSizeInBytes = const i0 . Value . absent ( ) ,
int ? quotaUsageInBytes ,
} ) = > i1 . UserEntityData (
id: id ? ? this . id ,
name: name ? ? this . name ,
isAdmin: isAdmin ? ? this . isAdmin ,
email: email ? ? this . email ,
profileImagePath: profileImagePath . present
? profileImagePath . value
: this . profileImagePath ,
hasProfileImage: hasProfileImage ? ? this . hasProfileImage ,
profileChangedAt: profileChangedAt ? ? this . profileChangedAt ,
updatedAt: updatedAt ? ? this . updatedAt ,
quotaSizeInBytes: quotaSizeInBytes . present
? quotaSizeInBytes . value
: this . quotaSizeInBytes ,
quotaUsageInBytes: quotaUsageInBytes ? ? this . quotaUsageInBytes ,
) ;
UserEntityData copyWithCompanion ( i1 . UserEntityCompanion data ) {
return UserEntityData (
@ -608,16 +552,13 @@ class UserEntityData extends i0.DataClass
name: data . name . present ? data . name . value : this . name ,
isAdmin: data . isAdmin . present ? data . isAdmin . value : this . isAdmin ,
email: data . email . present ? data . email . value : this . email ,
profileImagePath: data . profileImagePath . present
? data . profileImagePath . value
: this . profileImagePath ,
hasProfileImage: data . hasProfileImage . present
? data . hasProfileImage . value
: this . hasProfileImage ,
profileChangedAt: data . profileChangedAt . present
? data . profileChangedAt . value
: this . profileChangedAt ,
updatedAt: data . updatedAt . present ? data . updatedAt . value : this . updatedAt ,
quotaSizeInBytes: data . quotaSizeInBytes . present
? data . quotaSizeInBytes . value
: this . quotaSizeInBytes ,
quotaUsageInBytes: data . quotaUsageInBytes . present
? data . quotaUsageInBytes . value
: this . quotaUsageInBytes ,
) ;
}
@ -628,10 +569,9 @@ class UserEntityData extends i0.DataClass
. . write ( ' name: $ name , ' )
. . write ( ' isAdmin: $ isAdmin , ' )
. . write ( ' email: $ email , ' )
. . write ( ' profileImagePath: $ profileImagePath , ' )
. . write ( ' updatedAt: $ updatedAt , ' )
. . write ( ' quotaSizeInBytes: $ quotaSizeInBytes , ' )
. . write ( ' quotaUsageInBytes: $ quotaUsageInBytes ' )
. . write ( ' hasProfileImage: $ hasProfileImage , ' )
. . write ( ' profileChangedAt: $ profileChangedAt , ' )
. . write ( ' updatedAt: $ updatedAt ' )
. . write ( ' ) ' ) )
. toString ( ) ;
}
@ -642,10 +582,9 @@ class UserEntityData extends i0.DataClass
name ,
isAdmin ,
email ,
profileImagePath ,
hasProfileImage ,
profileChangedAt ,
updatedAt ,
quotaSizeInBytes ,
quotaUsageInBytes ,
) ;
@ override
bool operator = = ( Object other ) = >
@ -655,10 +594,9 @@ class UserEntityData extends i0.DataClass
other . name = = this . name & &
other . isAdmin = = this . isAdmin & &
other . email = = this . email & &
other . profileImagePath = = this . profileImagePath & &
other . updatedAt = = this . updatedAt & &
other . quotaSizeInBytes = = this . quotaSizeInBytes & &
other . quotaUsageInBytes = = this . quotaUsageInBytes ) ;
other . hasProfileImage = = this . hasProfileImage & &
other . profileChangedAt = = this . profileChangedAt & &
other . updatedAt = = this . updatedAt ) ;
}
class UserEntityCompanion extends i0 . UpdateCompanion < i1 . UserEntityData > {
@ -666,29 +604,26 @@ class UserEntityCompanion extends i0.UpdateCompanion<i1.UserEntityData> {
final i0 . Value < String > name ;
final i0 . Value < bool > isAdmin ;
final i0 . Value < String > email ;
final i0 . Value < String ? > profileImagePath ;
final i0 . Value < bool > hasProfileImage ;
final i0 . Value < DateTime > profileChangedAt ;
final i0 . Value < DateTime > updatedAt ;
final i0 . Value < int ? > quotaSizeInBytes ;
final i0 . Value < int > quotaUsageInBytes ;
const UserEntityCompanion ( {
this . id = const i0 . Value . absent ( ) ,
this . name = const i0 . Value . absent ( ) ,
this . isAdmin = const i0 . Value . absent ( ) ,
this . email = const i0 . Value . absent ( ) ,
this . profileImagePath = const i0 . Value . absent ( ) ,
this . hasProfileImage = const i0 . Value . absent ( ) ,
this . profileChangedAt = const i0 . Value . absent ( ) ,
this . updatedAt = const i0 . Value . absent ( ) ,
this . quotaSizeInBytes = const i0 . Value . absent ( ) ,
this . quotaUsageInBytes = const i0 . Value . absent ( ) ,
} ) ;
UserEntityCompanion . insert ( {
required String id ,
required String name ,
this . isAdmin = const i0 . Value . absent ( ) ,
required String email ,
this . profileImagePath = const i0 . Value . absent ( ) ,
this . hasProfileImage = const i0 . Value . absent ( ) ,
this . profileChangedAt = const i0 . Value . absent ( ) ,
this . updatedAt = const i0 . Value . absent ( ) ,
this . quotaSizeInBytes = const i0 . Value . absent ( ) ,
this . quotaUsageInBytes = const i0 . Value . absent ( ) ,
} ) : id = i0 . Value ( id ) ,
name = i0 . Value ( name ) ,
email = i0 . Value ( email ) ;
@ -697,20 +632,18 @@ class UserEntityCompanion extends i0.UpdateCompanion<i1.UserEntityData> {
i0 . Expression < String > ? name ,
i0 . Expression < bool > ? isAdmin ,
i0 . Expression < String > ? email ,
i0 . Expression < String > ? profileImagePath ,
i0 . Expression < bool > ? hasProfileImage ,
i0 . Expression < DateTime > ? profileChangedAt ,
i0 . Expression < DateTime > ? updatedAt ,
i0 . Expression < int > ? quotaSizeInBytes ,
i0 . Expression < int > ? quotaUsageInBytes ,
} ) {
return i0 . RawValuesInsertable ( {
if ( id ! = null ) ' id ' : id ,
if ( name ! = null ) ' name ' : name ,
if ( isAdmin ! = null ) ' is_admin ' : isAdmin ,
if ( email ! = null ) ' email ' : email ,
if ( profileImagePath ! = null ) ' profile_image_path ' : profileImagePath ,
if ( hasProfileImage ! = null ) ' has_profile_image ' : hasProfileImage ,
if ( profileChangedAt ! = null ) ' profile_changed_at ' : profileChangedAt ,
if ( updatedAt ! = null ) ' updated_at ' : updatedAt ,
if ( quotaSizeInBytes ! = null ) ' quota_size_in_bytes ' : quotaSizeInBytes ,
if ( quotaUsageInBytes ! = null ) ' quota_usage_in_bytes ' : quotaUsageInBytes ,
} ) ;
}
@ -719,20 +652,18 @@ class UserEntityCompanion extends i0.UpdateCompanion<i1.UserEntityData> {
i0 . Value < String > ? name ,
i0 . Value < bool > ? isAdmin ,
i0 . Value < String > ? email ,
i0 . Value < String ? > ? profileImagePath ,
i0 . Value < bool > ? hasProfileImage ,
i0 . Value < DateTime > ? profileChangedAt ,
i0 . Value < DateTime > ? updatedAt ,
i0 . Value < int ? > ? quotaSizeInBytes ,
i0 . Value < int > ? quotaUsageInBytes ,
} ) {
return i1 . UserEntityCompanion (
id: id ? ? this . id ,
name: name ? ? this . name ,
isAdmin: isAdmin ? ? this . isAdmin ,
email: email ? ? this . email ,
profileImagePath: profileImagePath ? ? this . profileImagePath ,
hasProfileImage: hasProfileImage ? ? this . hasProfileImage ,
profileChangedAt: profileChangedAt ? ? this . profileChangedAt ,
updatedAt: updatedAt ? ? this . updatedAt ,
quotaSizeInBytes: quotaSizeInBytes ? ? this . quotaSizeInBytes ,
quotaUsageInBytes: quotaUsageInBytes ? ? this . quotaUsageInBytes ,
) ;
}
@ -751,18 +682,15 @@ class UserEntityCompanion extends i0.UpdateCompanion<i1.UserEntityData> {
if ( email . present ) {
map [ ' email ' ] = i0 . Variable < String > ( email . value ) ;
}
if ( profileImagePath . present ) {
map [ ' profile_image_path ' ] = i0 . Variable < String > ( profileImagePath . value ) ;
if ( hasProfileImage . present ) {
map [ ' has_profile_image ' ] = i0 . Variable < bool > ( hasProfileImage . value ) ;
}
if ( profileChangedAt . present ) {
map [ ' profile_changed_at ' ] = i0 . Variable < DateTime > ( profileChangedAt . value ) ;
}
if ( updatedAt . present ) {
map [ ' updated_at ' ] = i0 . Variable < DateTime > ( updatedAt . value ) ;
}
if ( quotaSizeInBytes . present ) {
map [ ' quota_size_in_bytes ' ] = i0 . Variable < int > ( quotaSizeInBytes . value ) ;
}
if ( quotaUsageInBytes . present ) {
map [ ' quota_usage_in_bytes ' ] = i0 . Variable < int > ( quotaUsageInBytes . value ) ;
}
return map ;
}
@ -773,10 +701,9 @@ class UserEntityCompanion extends i0.UpdateCompanion<i1.UserEntityData> {
. . write ( ' name: $ name , ' )
. . write ( ' isAdmin: $ isAdmin , ' )
. . write ( ' email: $ email , ' )
. . write ( ' profileImagePath: $ profileImagePath , ' )
. . write ( ' updatedAt: $ updatedAt , ' )
. . write ( ' quotaSizeInBytes: $ quotaSizeInBytes , ' )
. . write ( ' quotaUsageInBytes: $ quotaUsageInBytes ' )
. . write ( ' hasProfileImage: $ hasProfileImage , ' )
. . write ( ' profileChangedAt: $ profileChangedAt , ' )
. . write ( ' updatedAt: $ updatedAt ' )
. . write ( ' ) ' ) )
. toString ( ) ;
}