// GENERATED CODE - DO NOT MODIFY BY HAND
part of '../../database/comwell_db.dart';
// ignore_for_file: type=lint
class $BookingEntityTable extends BookingEntity
with TableInfo<$BookingEntityTable, BookingDb> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
$BookingEntityTable(this.attachedDatabase, [this._alias]);
static const VerificationMeta _idMeta = const VerificationMeta('id');
@override
late final GeneratedColumn<String> id = GeneratedColumn<String>(
'id',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
defaultConstraints: GeneratedColumn.constraintIsAlways('UNIQUE'),
);
static const VerificationMeta _jsonMeta = const VerificationMeta('json');
@override
late final GeneratedColumn<String> json = GeneratedColumn<String>(
'json',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
);
@override
List<GeneratedColumn> get $columns => [id, json];
@override
String get aliasedName => _alias ?? actualTableName;
@override
String get actualTableName => $name;
static const String $name = 'booking_entity';
@override
VerificationContext validateIntegrity(
Insertable<BookingDb> instance, {
bool isInserting = false,
}) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('id')) {
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
} else if (isInserting) {
context.missing(_idMeta);
}
if (data.containsKey('json')) {
context.handle(
_jsonMeta,
json.isAcceptableOrUnknown(data['json']!, _jsonMeta),
);
} else if (isInserting) {
context.missing(_jsonMeta);
}
return context;
}
@override
Set<GeneratedColumn> get $primaryKey => const {};
@override
BookingDb map(Map<String, dynamic> data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return BookingDb(
id: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}id'],
)!,
json: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}json'],
)!,
);
}
@override
$BookingEntityTable createAlias(String alias) {
return $BookingEntityTable(attachedDatabase, alias);
}
}
class BookingDb extends DataClass implements Insertable<BookingDb> {
final String id;
final String json;
const BookingDb({required this.id, required this.json});
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
map['id'] = Variable<String>(id);
map['json'] = Variable<String>(json);
return map;
}
BookingEntityCompanion toCompanion(bool nullToAbsent) {
return BookingEntityCompanion(id: Value(id), json: Value(json));
}
factory BookingDb.fromJson(
Map<String, dynamic> json, {
ValueSerializer? serializer,
}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return BookingDb(
id: serializer.fromJson<String>(json['id']),
json: serializer.fromJson<String>(json['json']),
);
}
@override
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return <String, dynamic>{
'id': serializer.toJson<String>(id),
'json': serializer.toJson<String>(json),
};
}
BookingDb copyWith({String? id, String? json}) =>
BookingDb(id: id ?? this.id, json: json ?? this.json);
BookingDb copyWithCompanion(BookingEntityCompanion data) {
return BookingDb(
id: data.id.present ? data.id.value : this.id,
json: data.json.present ? data.json.value : this.json,
);
}
@override
String toString() {
return (StringBuffer('BookingDb(')
..write('id: $id, ')
..write('json: $json')
..write(')'))
.toString();
}
@override
int get hashCode => Object.hash(id, json);
@override
bool operator ==(Object other) =>
identical(this, other) ||
(other is BookingDb && other.id == this.id && other.json == this.json);
}
class BookingEntityCompanion extends UpdateCompanion<BookingDb> {
final Value<String> id;
final Value<String> json;
final Value<int> rowid;
const BookingEntityCompanion({
this.id = const Value.absent(),
this.json = const Value.absent(),
this.rowid = const Value.absent(),
});
BookingEntityCompanion.insert({
required String id,
required String json,
this.rowid = const Value.absent(),
}) : id = Value(id),
json = Value(json);
static Insertable<BookingDb> custom({
Expression<String>? id,
Expression<String>? json,
Expression<int>? rowid,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
if (json != null) 'json': json,
if (rowid != null) 'rowid': rowid,
});
}
BookingEntityCompanion copyWith({
Value<String>? id,
Value<String>? json,
Value<int>? rowid,
}) {
return BookingEntityCompanion(
id: id ?? this.id,
json: json ?? this.json,
rowid: rowid ?? this.rowid,
);
}
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
if (id.present) {
map['id'] = Variable<String>(id.value);
}
if (json.present) {
map['json'] = Variable<String>(json.value);
}
if (rowid.present) {
map['rowid'] = Variable<int>(rowid.value);
}
return map;
}
@override
String toString() {
return (StringBuffer('BookingEntityCompanion(')
..write('id: $id, ')
..write('json: $json, ')
..write('rowid: $rowid')
..write(')'))
.toString();
}
}
class $UserEntityTable extends UserEntity
with TableInfo<$UserEntityTable, UserDb> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
$UserEntityTable(this.attachedDatabase, [this._alias]);
static const VerificationMeta _idMeta = const VerificationMeta('id');
@override
late final GeneratedColumn<int> id = GeneratedColumn<int>(
'id',
aliasedName,
false,
type: DriftSqlType.int,
requiredDuringInsert: true,
defaultConstraints: GeneratedColumn.constraintIsAlways('UNIQUE'),
);
static const VerificationMeta _jsonMeta = const VerificationMeta('json');
@override
late final GeneratedColumn<String> json = GeneratedColumn<String>(
'json',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
);
@override
List<GeneratedColumn> get $columns => [id, json];
@override
String get aliasedName => _alias ?? actualTableName;
@override
String get actualTableName => $name;
static const String $name = 'user_entity';
@override
VerificationContext validateIntegrity(
Insertable<UserDb> instance, {
bool isInserting = false,
}) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('id')) {
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
} else if (isInserting) {
context.missing(_idMeta);
}
if (data.containsKey('json')) {
context.handle(
_jsonMeta,
json.isAcceptableOrUnknown(data['json']!, _jsonMeta),
);
} else if (isInserting) {
context.missing(_jsonMeta);
}
return context;
}
@override
Set<GeneratedColumn> get $primaryKey => const {};
@override
UserDb map(Map<String, dynamic> data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return UserDb(
id: attachedDatabase.typeMapping.read(
DriftSqlType.int,
data['${effectivePrefix}id'],
)!,
json: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}json'],
)!,
);
}
@override
$UserEntityTable createAlias(String alias) {
return $UserEntityTable(attachedDatabase, alias);
}
}
class UserDb extends DataClass implements Insertable<UserDb> {
final int id;
final String json;
const UserDb({required this.id, required this.json});
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
map['id'] = Variable<int>(id);
map['json'] = Variable<String>(json);
return map;
}
UserEntityCompanion toCompanion(bool nullToAbsent) {
return UserEntityCompanion(id: Value(id), json: Value(json));
}
factory UserDb.fromJson(
Map<String, dynamic> json, {
ValueSerializer? serializer,
}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return UserDb(
id: serializer.fromJson<int>(json['id']),
json: serializer.fromJson<String>(json['json']),
);
}
@override
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return <String, dynamic>{
'id': serializer.toJson<int>(id),
'json': serializer.toJson<String>(json),
};
}
UserDb copyWith({int? id, String? json}) =>
UserDb(id: id ?? this.id, json: json ?? this.json);
UserDb copyWithCompanion(UserEntityCompanion data) {
return UserDb(
id: data.id.present ? data.id.value : this.id,
json: data.json.present ? data.json.value : this.json,
);
}
@override
String toString() {
return (StringBuffer('UserDb(')
..write('id: $id, ')
..write('json: $json')
..write(')'))
.toString();
}
@override
int get hashCode => Object.hash(id, json);
@override
bool operator ==(Object other) =>
identical(this, other) ||
(other is UserDb && other.id == this.id && other.json == this.json);
}
class UserEntityCompanion extends UpdateCompanion<UserDb> {
final Value<int> id;
final Value<String> json;
final Value<int> rowid;
const UserEntityCompanion({
this.id = const Value.absent(),
this.json = const Value.absent(),
this.rowid = const Value.absent(),
});
UserEntityCompanion.insert({
required int id,
required String json,
this.rowid = const Value.absent(),
}) : id = Value(id),
json = Value(json);
static Insertable<UserDb> custom({
Expression<int>? id,
Expression<String>? json,
Expression<int>? rowid,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
if (json != null) 'json': json,
if (rowid != null) 'rowid': rowid,
});
}
UserEntityCompanion copyWith({
Value<int>? id,
Value<String>? json,
Value<int>? rowid,
}) {
return UserEntityCompanion(
id: id ?? this.id,
json: json ?? this.json,
rowid: rowid ?? this.rowid,
);
}
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
if (id.present) {
map['id'] = Variable<int>(id.value);
}
if (json.present) {
map['json'] = Variable<String>(json.value);
}
if (rowid.present) {
map['rowid'] = Variable<int>(rowid.value);
}
return map;
}
@override
String toString() {
return (StringBuffer('UserEntityCompanion(')
..write('id: $id, ')
..write('json: $json, ')
..write('rowid: $rowid')
..write(')'))
.toString();
}
}
class $NotificationPermissionEntityTable extends NotificationPermissionEntity
with
TableInfo<
$NotificationPermissionEntityTable,
NotificationPermissionDb
> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
$NotificationPermissionEntityTable(this.attachedDatabase, [this._alias]);
static const VerificationMeta _codeMeta = const VerificationMeta('code');
@override
late final GeneratedColumn<String> code = GeneratedColumn<String>(
'code',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
defaultConstraints: GeneratedColumn.constraintIsAlways('UNIQUE'),
);
static const VerificationMeta _jsonMeta = const VerificationMeta('json');
@override
late final GeneratedColumn<String> json = GeneratedColumn<String>(
'json',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
);
@override
List<GeneratedColumn> get $columns => [code, json];
@override
String get aliasedName => _alias ?? actualTableName;
@override
String get actualTableName => $name;
static const String $name = 'notification_permission_entity';
@override
VerificationContext validateIntegrity(
Insertable<NotificationPermissionDb> instance, {
bool isInserting = false,
}) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('code')) {
context.handle(
_codeMeta,
code.isAcceptableOrUnknown(data['code']!, _codeMeta),
);
} else if (isInserting) {
context.missing(_codeMeta);
}
if (data.containsKey('json')) {
context.handle(
_jsonMeta,
json.isAcceptableOrUnknown(data['json']!, _jsonMeta),
);
} else if (isInserting) {
context.missing(_jsonMeta);
}
return context;
}
@override
Set<GeneratedColumn> get $primaryKey => const {};
@override
NotificationPermissionDb map(
Map<String, dynamic> data, {
String? tablePrefix,
}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return NotificationPermissionDb(
code: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}code'],
)!,
json: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}json'],
)!,
);
}
@override
$NotificationPermissionEntityTable createAlias(String alias) {
return $NotificationPermissionEntityTable(attachedDatabase, alias);
}
}
class NotificationPermissionDb extends DataClass
implements Insertable<NotificationPermissionDb> {
final String code;
final String json;
const NotificationPermissionDb({required this.code, required this.json});
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
map['code'] = Variable<String>(code);
map['json'] = Variable<String>(json);
return map;
}
NotificationPermissionEntityCompanion toCompanion(bool nullToAbsent) {
return NotificationPermissionEntityCompanion(
code: Value(code),
json: Value(json),
);
}
factory NotificationPermissionDb.fromJson(
Map<String, dynamic> json, {
ValueSerializer? serializer,
}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return NotificationPermissionDb(
code: serializer.fromJson<String>(json['code']),
json: serializer.fromJson<String>(json['json']),
);
}
@override
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return <String, dynamic>{
'code': serializer.toJson<String>(code),
'json': serializer.toJson<String>(json),
};
}
NotificationPermissionDb copyWith({String? code, String? json}) =>
NotificationPermissionDb(
code: code ?? this.code,
json: json ?? this.json,
);
NotificationPermissionDb copyWithCompanion(
NotificationPermissionEntityCompanion data,
) {
return NotificationPermissionDb(
code: data.code.present ? data.code.value : this.code,
json: data.json.present ? data.json.value : this.json,
);
}
@override
String toString() {
return (StringBuffer('NotificationPermissionDb(')
..write('code: $code, ')
..write('json: $json')
..write(')'))
.toString();
}
@override
int get hashCode => Object.hash(code, json);
@override
bool operator ==(Object other) =>
identical(this, other) ||
(other is NotificationPermissionDb &&
other.code == this.code &&
other.json == this.json);
}
class NotificationPermissionEntityCompanion
extends UpdateCompanion<NotificationPermissionDb> {
final Value<String> code;
final Value<String> json;
final Value<int> rowid;
const NotificationPermissionEntityCompanion({
this.code = const Value.absent(),
this.json = const Value.absent(),
this.rowid = const Value.absent(),
});
NotificationPermissionEntityCompanion.insert({
required String code,
required String json,
this.rowid = const Value.absent(),
}) : code = Value(code),
json = Value(json);
static Insertable<NotificationPermissionDb> custom({
Expression<String>? code,
Expression<String>? json,
Expression<int>? rowid,
}) {
return RawValuesInsertable({
if (code != null) 'code': code,
if (json != null) 'json': json,
if (rowid != null) 'rowid': rowid,
});
}
NotificationPermissionEntityCompanion copyWith({
Value<String>? code,
Value<String>? json,
Value<int>? rowid,
}) {
return NotificationPermissionEntityCompanion(
code: code ?? this.code,
json: json ?? this.json,
rowid: rowid ?? this.rowid,
);
}
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
if (code.present) {
map['code'] = Variable<String>(code.value);
}
if (json.present) {
map['json'] = Variable<String>(json.value);
}
if (rowid.present) {
map['rowid'] = Variable<int>(rowid.value);
}
return map;
}
@override
String toString() {
return (StringBuffer('NotificationPermissionEntityCompanion(')
..write('code: $code, ')
..write('json: $json, ')
..write('rowid: $rowid')
..write(')'))
.toString();
}
}
class $UpsaleEntityTable extends UpsaleEntity
with TableInfo<$UpsaleEntityTable, UpsaleDb> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
$UpsaleEntityTable(this.attachedDatabase, [this._alias]);
static const VerificationMeta _idMeta = const VerificationMeta('id');
@override
late final GeneratedColumn<String> id = GeneratedColumn<String>(
'id',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
defaultConstraints: GeneratedColumn.constraintIsAlways('UNIQUE'),
);
static const VerificationMeta _jsonMeta = const VerificationMeta('json');
@override
late final GeneratedColumn<String> json = GeneratedColumn<String>(
'json',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
);
@override
List<GeneratedColumn> get $columns => [id, json];
@override
String get aliasedName => _alias ?? actualTableName;
@override
String get actualTableName => $name;
static const String $name = 'upsale_entity';
@override
VerificationContext validateIntegrity(
Insertable<UpsaleDb> instance, {
bool isInserting = false,
}) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('id')) {
context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta));
} else if (isInserting) {
context.missing(_idMeta);
}
if (data.containsKey('json')) {
context.handle(
_jsonMeta,
json.isAcceptableOrUnknown(data['json']!, _jsonMeta),
);
} else if (isInserting) {
context.missing(_jsonMeta);
}
return context;
}
@override
Set<GeneratedColumn> get $primaryKey => const {};
@override
UpsaleDb map(Map<String, dynamic> data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return UpsaleDb(
id: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}id'],
)!,
json: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}json'],
)!,
);
}
@override
$UpsaleEntityTable createAlias(String alias) {
return $UpsaleEntityTable(attachedDatabase, alias);
}
}
class UpsaleDb extends DataClass implements Insertable<UpsaleDb> {
final String id;
final String json;
const UpsaleDb({required this.id, required this.json});
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
map['id'] = Variable<String>(id);
map['json'] = Variable<String>(json);
return map;
}
UpsaleEntityCompanion toCompanion(bool nullToAbsent) {
return UpsaleEntityCompanion(id: Value(id), json: Value(json));
}
factory UpsaleDb.fromJson(
Map<String, dynamic> json, {
ValueSerializer? serializer,
}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return UpsaleDb(
id: serializer.fromJson<String>(json['id']),
json: serializer.fromJson<String>(json['json']),
);
}
@override
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return <String, dynamic>{
'id': serializer.toJson<String>(id),
'json': serializer.toJson<String>(json),
};
}
UpsaleDb copyWith({String? id, String? json}) =>
UpsaleDb(id: id ?? this.id, json: json ?? this.json);
UpsaleDb copyWithCompanion(UpsaleEntityCompanion data) {
return UpsaleDb(
id: data.id.present ? data.id.value : this.id,
json: data.json.present ? data.json.value : this.json,
);
}
@override
String toString() {
return (StringBuffer('UpsaleDb(')
..write('id: $id, ')
..write('json: $json')
..write(')'))
.toString();
}
@override
int get hashCode => Object.hash(id, json);
@override
bool operator ==(Object other) =>
identical(this, other) ||
(other is UpsaleDb && other.id == this.id && other.json == this.json);
}
class UpsaleEntityCompanion extends UpdateCompanion<UpsaleDb> {
final Value<String> id;
final Value<String> json;
final Value<int> rowid;
const UpsaleEntityCompanion({
this.id = const Value.absent(),
this.json = const Value.absent(),
this.rowid = const Value.absent(),
});
UpsaleEntityCompanion.insert({
required String id,
required String json,
this.rowid = const Value.absent(),
}) : id = Value(id),
json = Value(json);
static Insertable<UpsaleDb> custom({
Expression<String>? id,
Expression<String>? json,
Expression<int>? rowid,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
if (json != null) 'json': json,
if (rowid != null) 'rowid': rowid,
});
}
UpsaleEntityCompanion copyWith({
Value<String>? id,
Value<String>? json,
Value<int>? rowid,
}) {
return UpsaleEntityCompanion(
id: id ?? this.id,
json: json ?? this.json,
rowid: rowid ?? this.rowid,
);
}
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
if (id.present) {
map['id'] = Variable<String>(id.value);
}
if (json.present) {
map['json'] = Variable<String>(json.value);
}
if (rowid.present) {
map['rowid'] = Variable<int>(rowid.value);
}
return map;
}
@override
String toString() {
return (StringBuffer('UpsaleEntityCompanion(')
..write('id: $id, ')
..write('json: $json, ')
..write('rowid: $rowid')
..write(')'))
.toString();
}
}
class $HotelInformationEntityTable extends HotelInformationEntity
with TableInfo<$HotelInformationEntityTable, HotelInformationDb> {
@override
final GeneratedDatabase attachedDatabase;
final String? _alias;
$HotelInformationEntityTable(this.attachedDatabase, [this._alias]);
static const VerificationMeta _hotelCodeMeta = const VerificationMeta(
'hotelCode',
);
@override
late final GeneratedColumn<String> hotelCode = GeneratedColumn<String>(
'hotel_code',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
defaultConstraints: GeneratedColumn.constraintIsAlways('UNIQUE'),
);
static const VerificationMeta _jsonMeta = const VerificationMeta('json');
@override
late final GeneratedColumn<String> json = GeneratedColumn<String>(
'json',
aliasedName,
false,
type: DriftSqlType.string,
requiredDuringInsert: true,
);
@override
List<GeneratedColumn> get $columns => [hotelCode, json];
@override
String get aliasedName => _alias ?? actualTableName;
@override
String get actualTableName => $name;
static const String $name = 'hotel_information_entity';
@override
VerificationContext validateIntegrity(
Insertable<HotelInformationDb> instance, {
bool isInserting = false,
}) {
final context = VerificationContext();
final data = instance.toColumns(true);
if (data.containsKey('hotel_code')) {
context.handle(
_hotelCodeMeta,
hotelCode.isAcceptableOrUnknown(data['hotel_code']!, _hotelCodeMeta),
);
} else if (isInserting) {
context.missing(_hotelCodeMeta);
}
if (data.containsKey('json')) {
context.handle(
_jsonMeta,
json.isAcceptableOrUnknown(data['json']!, _jsonMeta),
);
} else if (isInserting) {
context.missing(_jsonMeta);
}
return context;
}
@override
Set<GeneratedColumn> get $primaryKey => const {};
@override
HotelInformationDb map(Map<String, dynamic> data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
return HotelInformationDb(
hotelCode: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}hotel_code'],
)!,
json: attachedDatabase.typeMapping.read(
DriftSqlType.string,
data['${effectivePrefix}json'],
)!,
);
}
@override
$HotelInformationEntityTable createAlias(String alias) {
return $HotelInformationEntityTable(attachedDatabase, alias);
}
}
class HotelInformationDb extends DataClass
implements Insertable<HotelInformationDb> {
final String hotelCode;
final String json;
const HotelInformationDb({required this.hotelCode, required this.json});
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
map['hotel_code'] = Variable<String>(hotelCode);
map['json'] = Variable<String>(json);
return map;
}
HotelInformationEntityCompanion toCompanion(bool nullToAbsent) {
return HotelInformationEntityCompanion(
hotelCode: Value(hotelCode),
json: Value(json),
);
}
factory HotelInformationDb.fromJson(
Map<String, dynamic> json, {
ValueSerializer? serializer,
}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return HotelInformationDb(
hotelCode: serializer.fromJson<String>(json['hotelCode']),
json: serializer.fromJson<String>(json['json']),
);
}
@override
Map<String, dynamic> toJson({ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return <String, dynamic>{
'hotelCode': serializer.toJson<String>(hotelCode),
'json': serializer.toJson<String>(json),
};
}
HotelInformationDb copyWith({String? hotelCode, String? json}) =>
HotelInformationDb(
hotelCode: hotelCode ?? this.hotelCode,
json: json ?? this.json,
);
HotelInformationDb copyWithCompanion(HotelInformationEntityCompanion data) {
return HotelInformationDb(
hotelCode: data.hotelCode.present ? data.hotelCode.value : this.hotelCode,
json: data.json.present ? data.json.value : this.json,
);
}
@override
String toString() {
return (StringBuffer('HotelInformationDb(')
..write('hotelCode: $hotelCode, ')
..write('json: $json')
..write(')'))
.toString();
}
@override
int get hashCode => Object.hash(hotelCode, json);
@override
bool operator ==(Object other) =>
identical(this, other) ||
(other is HotelInformationDb &&
other.hotelCode == this.hotelCode &&
other.json == this.json);
}
class HotelInformationEntityCompanion
extends UpdateCompanion<HotelInformationDb> {
final Value<String> hotelCode;
final Value<String> json;
final Value<int> rowid;
const HotelInformationEntityCompanion({
this.hotelCode = const Value.absent(),
this.json = const Value.absent(),
this.rowid = const Value.absent(),
});
HotelInformationEntityCompanion.insert({
required String hotelCode,
required String json,
this.rowid = const Value.absent(),
}) : hotelCode = Value(hotelCode),
json = Value(json);
static Insertable<HotelInformationDb> custom({
Expression<String>? hotelCode,
Expression<String>? json,
Expression<int>? rowid,
}) {
return RawValuesInsertable({
if (hotelCode != null) 'hotel_code': hotelCode,
if (json != null) 'json': json,
if (rowid != null) 'rowid': rowid,
});
}
HotelInformationEntityCompanion copyWith({
Value<String>? hotelCode,
Value<String>? json,
Value<int>? rowid,
}) {
return HotelInformationEntityCompanion(
hotelCode: hotelCode ?? this.hotelCode,
json: json ?? this.json,
rowid: rowid ?? this.rowid,
);
}
@override
Map<String, Expression> toColumns(bool nullToAbsent) {
final map = <String, Expression>{};
if (hotelCode.present) {
map['hotel_code'] = Variable<String>(hotelCode.value);
}
if (json.present) {
map['json'] = Variable<String>(json.value);
}
if (rowid.present) {
map['rowid'] = Variable<int>(rowid.value);
}
return map;
}
@override
String toString() {
return (StringBuffer('HotelInformationEntityCompanion(')
..write('hotelCode: $hotelCode, ')
..write('json: $json, ')
..write('rowid: $rowid')
..write(')'))
.toString();
}
}
abstract class _$ComwellDatabase extends GeneratedDatabase {
_$ComwellDatabase(QueryExecutor e) : super(e);
$ComwellDatabaseManager get managers => $ComwellDatabaseManager(this);
late final $BookingEntityTable bookingEntity = $BookingEntityTable(this);
late final $UserEntityTable userEntity = $UserEntityTable(this);
late final $NotificationPermissionEntityTable notificationPermissionEntity =
$NotificationPermissionEntityTable(this);
late final $UpsaleEntityTable upsaleEntity = $UpsaleEntityTable(this);
late final $HotelInformationEntityTable hotelInformationEntity =
$HotelInformationEntityTable(this);
late final BookingsDao bookingsDao = BookingsDao(this as ComwellDatabase);
late final UserDAO userDAO = UserDAO(this as ComwellDatabase);
late final NotificationPermissionDAO notificationPermissionDAO =
NotificationPermissionDAO(this as ComwellDatabase);
late final UpsalesDAO upsalesDAO = UpsalesDAO(this as ComwellDatabase);
late final HotelInformationDAO hotelInformationDAO = HotelInformationDAO(
this as ComwellDatabase,
);
@override
Iterable<TableInfo<Table, Object?>> get allTables =>
allSchemaEntities.whereType<TableInfo<Table, Object?>>();
@override
List<DatabaseSchemaEntity> get allSchemaEntities => [
bookingEntity,
userEntity,
notificationPermissionEntity,
upsaleEntity,
hotelInformationEntity,
];
}
typedef $$BookingEntityTableCreateCompanionBuilder =
BookingEntityCompanion Function({
required String id,
required String json,
Value<int> rowid,
});
typedef $$BookingEntityTableUpdateCompanionBuilder =
BookingEntityCompanion Function({
Value<String> id,
Value<String> json,
Value<int> rowid,
});
class $$BookingEntityTableFilterComposer
extends Composer<_$ComwellDatabase, $BookingEntityTable> {
$$BookingEntityTableFilterComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnFilters<String> get id => $composableBuilder(
column: $table.id,
builder: (column) => ColumnFilters(column),
);
ColumnFilters<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnFilters(column),
);
}
class $$BookingEntityTableOrderingComposer
extends Composer<_$ComwellDatabase, $BookingEntityTable> {
$$BookingEntityTableOrderingComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnOrderings<String> get id => $composableBuilder(
column: $table.id,
builder: (column) => ColumnOrderings(column),
);
ColumnOrderings<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnOrderings(column),
);
}
class $$BookingEntityTableAnnotationComposer
extends Composer<_$ComwellDatabase, $BookingEntityTable> {
$$BookingEntityTableAnnotationComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
GeneratedColumn<String> get id =>
$composableBuilder(column: $table.id, builder: (column) => column);
GeneratedColumn<String> get json =>
$composableBuilder(column: $table.json, builder: (column) => column);
}
class $$BookingEntityTableTableManager
extends
RootTableManager<
_$ComwellDatabase,
$BookingEntityTable,
BookingDb,
$$BookingEntityTableFilterComposer,
$$BookingEntityTableOrderingComposer,
$$BookingEntityTableAnnotationComposer,
$$BookingEntityTableCreateCompanionBuilder,
$$BookingEntityTableUpdateCompanionBuilder,
(
BookingDb,
BaseReferences<_$ComwellDatabase, $BookingEntityTable, BookingDb>,
),
BookingDb,
PrefetchHooks Function()
> {
$$BookingEntityTableTableManager(
_$ComwellDatabase db,
$BookingEntityTable table,
) : super(
TableManagerState(
db: db,
table: table,
createFilteringComposer: () =>
$$BookingEntityTableFilterComposer($db: db, $table: table),
createOrderingComposer: () =>
$$BookingEntityTableOrderingComposer($db: db, $table: table),
createComputedFieldComposer: () =>
$$BookingEntityTableAnnotationComposer($db: db, $table: table),
updateCompanionCallback:
({
Value<String> id = const Value.absent(),
Value<String> json = const Value.absent(),
Value<int> rowid = const Value.absent(),
}) => BookingEntityCompanion(id: id, json: json, rowid: rowid),
createCompanionCallback:
({
required String id,
required String json,
Value<int> rowid = const Value.absent(),
}) => BookingEntityCompanion.insert(
id: id,
json: json,
rowid: rowid,
),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
.toList(),
prefetchHooksCallback: null,
),
);
}
typedef $$BookingEntityTableProcessedTableManager =
ProcessedTableManager<
_$ComwellDatabase,
$BookingEntityTable,
BookingDb,
$$BookingEntityTableFilterComposer,
$$BookingEntityTableOrderingComposer,
$$BookingEntityTableAnnotationComposer,
$$BookingEntityTableCreateCompanionBuilder,
$$BookingEntityTableUpdateCompanionBuilder,
(
BookingDb,
BaseReferences<_$ComwellDatabase, $BookingEntityTable, BookingDb>,
),
BookingDb,
PrefetchHooks Function()
>;
typedef $$UserEntityTableCreateCompanionBuilder =
UserEntityCompanion Function({
required int id,
required String json,
Value<int> rowid,
});
typedef $$UserEntityTableUpdateCompanionBuilder =
UserEntityCompanion Function({
Value<int> id,
Value<String> json,
Value<int> rowid,
});
class $$UserEntityTableFilterComposer
extends Composer<_$ComwellDatabase, $UserEntityTable> {
$$UserEntityTableFilterComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnFilters<int> get id => $composableBuilder(
column: $table.id,
builder: (column) => ColumnFilters(column),
);
ColumnFilters<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnFilters(column),
);
}
class $$UserEntityTableOrderingComposer
extends Composer<_$ComwellDatabase, $UserEntityTable> {
$$UserEntityTableOrderingComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnOrderings<int> get id => $composableBuilder(
column: $table.id,
builder: (column) => ColumnOrderings(column),
);
ColumnOrderings<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnOrderings(column),
);
}
class $$UserEntityTableAnnotationComposer
extends Composer<_$ComwellDatabase, $UserEntityTable> {
$$UserEntityTableAnnotationComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
GeneratedColumn<int> get id =>
$composableBuilder(column: $table.id, builder: (column) => column);
GeneratedColumn<String> get json =>
$composableBuilder(column: $table.json, builder: (column) => column);
}
class $$UserEntityTableTableManager
extends
RootTableManager<
_$ComwellDatabase,
$UserEntityTable,
UserDb,
$$UserEntityTableFilterComposer,
$$UserEntityTableOrderingComposer,
$$UserEntityTableAnnotationComposer,
$$UserEntityTableCreateCompanionBuilder,
$$UserEntityTableUpdateCompanionBuilder,
(UserDb, BaseReferences<_$ComwellDatabase, $UserEntityTable, UserDb>),
UserDb,
PrefetchHooks Function()
> {
$$UserEntityTableTableManager(_$ComwellDatabase db, $UserEntityTable table)
: super(
TableManagerState(
db: db,
table: table,
createFilteringComposer: () =>
$$UserEntityTableFilterComposer($db: db, $table: table),
createOrderingComposer: () =>
$$UserEntityTableOrderingComposer($db: db, $table: table),
createComputedFieldComposer: () =>
$$UserEntityTableAnnotationComposer($db: db, $table: table),
updateCompanionCallback:
({
Value<int> id = const Value.absent(),
Value<String> json = const Value.absent(),
Value<int> rowid = const Value.absent(),
}) => UserEntityCompanion(id: id, json: json, rowid: rowid),
createCompanionCallback:
({
required int id,
required String json,
Value<int> rowid = const Value.absent(),
}) =>
UserEntityCompanion.insert(id: id, json: json, rowid: rowid),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
.toList(),
prefetchHooksCallback: null,
),
);
}
typedef $$UserEntityTableProcessedTableManager =
ProcessedTableManager<
_$ComwellDatabase,
$UserEntityTable,
UserDb,
$$UserEntityTableFilterComposer,
$$UserEntityTableOrderingComposer,
$$UserEntityTableAnnotationComposer,
$$UserEntityTableCreateCompanionBuilder,
$$UserEntityTableUpdateCompanionBuilder,
(UserDb, BaseReferences<_$ComwellDatabase, $UserEntityTable, UserDb>),
UserDb,
PrefetchHooks Function()
>;
typedef $$NotificationPermissionEntityTableCreateCompanionBuilder =
NotificationPermissionEntityCompanion Function({
required String code,
required String json,
Value<int> rowid,
});
typedef $$NotificationPermissionEntityTableUpdateCompanionBuilder =
NotificationPermissionEntityCompanion Function({
Value<String> code,
Value<String> json,
Value<int> rowid,
});
class $$NotificationPermissionEntityTableFilterComposer
extends Composer<_$ComwellDatabase, $NotificationPermissionEntityTable> {
$$NotificationPermissionEntityTableFilterComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnFilters<String> get code => $composableBuilder(
column: $table.code,
builder: (column) => ColumnFilters(column),
);
ColumnFilters<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnFilters(column),
);
}
class $$NotificationPermissionEntityTableOrderingComposer
extends Composer<_$ComwellDatabase, $NotificationPermissionEntityTable> {
$$NotificationPermissionEntityTableOrderingComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnOrderings<String> get code => $composableBuilder(
column: $table.code,
builder: (column) => ColumnOrderings(column),
);
ColumnOrderings<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnOrderings(column),
);
}
class $$NotificationPermissionEntityTableAnnotationComposer
extends Composer<_$ComwellDatabase, $NotificationPermissionEntityTable> {
$$NotificationPermissionEntityTableAnnotationComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
GeneratedColumn<String> get code =>
$composableBuilder(column: $table.code, builder: (column) => column);
GeneratedColumn<String> get json =>
$composableBuilder(column: $table.json, builder: (column) => column);
}
class $$NotificationPermissionEntityTableTableManager
extends
RootTableManager<
_$ComwellDatabase,
$NotificationPermissionEntityTable,
NotificationPermissionDb,
$$NotificationPermissionEntityTableFilterComposer,
$$NotificationPermissionEntityTableOrderingComposer,
$$NotificationPermissionEntityTableAnnotationComposer,
$$NotificationPermissionEntityTableCreateCompanionBuilder,
$$NotificationPermissionEntityTableUpdateCompanionBuilder,
(
NotificationPermissionDb,
BaseReferences<
_$ComwellDatabase,
$NotificationPermissionEntityTable,
NotificationPermissionDb
>,
),
NotificationPermissionDb,
PrefetchHooks Function()
> {
$$NotificationPermissionEntityTableTableManager(
_$ComwellDatabase db,
$NotificationPermissionEntityTable table,
) : super(
TableManagerState(
db: db,
table: table,
createFilteringComposer: () =>
$$NotificationPermissionEntityTableFilterComposer(
$db: db,
$table: table,
),
createOrderingComposer: () =>
$$NotificationPermissionEntityTableOrderingComposer(
$db: db,
$table: table,
),
createComputedFieldComposer: () =>
$$NotificationPermissionEntityTableAnnotationComposer(
$db: db,
$table: table,
),
updateCompanionCallback:
({
Value<String> code = const Value.absent(),
Value<String> json = const Value.absent(),
Value<int> rowid = const Value.absent(),
}) => NotificationPermissionEntityCompanion(
code: code,
json: json,
rowid: rowid,
),
createCompanionCallback:
({
required String code,
required String json,
Value<int> rowid = const Value.absent(),
}) => NotificationPermissionEntityCompanion.insert(
code: code,
json: json,
rowid: rowid,
),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
.toList(),
prefetchHooksCallback: null,
),
);
}
typedef $$NotificationPermissionEntityTableProcessedTableManager =
ProcessedTableManager<
_$ComwellDatabase,
$NotificationPermissionEntityTable,
NotificationPermissionDb,
$$NotificationPermissionEntityTableFilterComposer,
$$NotificationPermissionEntityTableOrderingComposer,
$$NotificationPermissionEntityTableAnnotationComposer,
$$NotificationPermissionEntityTableCreateCompanionBuilder,
$$NotificationPermissionEntityTableUpdateCompanionBuilder,
(
NotificationPermissionDb,
BaseReferences<
_$ComwellDatabase,
$NotificationPermissionEntityTable,
NotificationPermissionDb
>,
),
NotificationPermissionDb,
PrefetchHooks Function()
>;
typedef $$UpsaleEntityTableCreateCompanionBuilder =
UpsaleEntityCompanion Function({
required String id,
required String json,
Value<int> rowid,
});
typedef $$UpsaleEntityTableUpdateCompanionBuilder =
UpsaleEntityCompanion Function({
Value<String> id,
Value<String> json,
Value<int> rowid,
});
class $$UpsaleEntityTableFilterComposer
extends Composer<_$ComwellDatabase, $UpsaleEntityTable> {
$$UpsaleEntityTableFilterComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnFilters<String> get id => $composableBuilder(
column: $table.id,
builder: (column) => ColumnFilters(column),
);
ColumnFilters<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnFilters(column),
);
}
class $$UpsaleEntityTableOrderingComposer
extends Composer<_$ComwellDatabase, $UpsaleEntityTable> {
$$UpsaleEntityTableOrderingComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnOrderings<String> get id => $composableBuilder(
column: $table.id,
builder: (column) => ColumnOrderings(column),
);
ColumnOrderings<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnOrderings(column),
);
}
class $$UpsaleEntityTableAnnotationComposer
extends Composer<_$ComwellDatabase, $UpsaleEntityTable> {
$$UpsaleEntityTableAnnotationComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
GeneratedColumn<String> get id =>
$composableBuilder(column: $table.id, builder: (column) => column);
GeneratedColumn<String> get json =>
$composableBuilder(column: $table.json, builder: (column) => column);
}
class $$UpsaleEntityTableTableManager
extends
RootTableManager<
_$ComwellDatabase,
$UpsaleEntityTable,
UpsaleDb,
$$UpsaleEntityTableFilterComposer,
$$UpsaleEntityTableOrderingComposer,
$$UpsaleEntityTableAnnotationComposer,
$$UpsaleEntityTableCreateCompanionBuilder,
$$UpsaleEntityTableUpdateCompanionBuilder,
(
UpsaleDb,
BaseReferences<_$ComwellDatabase, $UpsaleEntityTable, UpsaleDb>,
),
UpsaleDb,
PrefetchHooks Function()
> {
$$UpsaleEntityTableTableManager(
_$ComwellDatabase db,
$UpsaleEntityTable table,
) : super(
TableManagerState(
db: db,
table: table,
createFilteringComposer: () =>
$$UpsaleEntityTableFilterComposer($db: db, $table: table),
createOrderingComposer: () =>
$$UpsaleEntityTableOrderingComposer($db: db, $table: table),
createComputedFieldComposer: () =>
$$UpsaleEntityTableAnnotationComposer($db: db, $table: table),
updateCompanionCallback:
({
Value<String> id = const Value.absent(),
Value<String> json = const Value.absent(),
Value<int> rowid = const Value.absent(),
}) => UpsaleEntityCompanion(id: id, json: json, rowid: rowid),
createCompanionCallback:
({
required String id,
required String json,
Value<int> rowid = const Value.absent(),
}) => UpsaleEntityCompanion.insert(
id: id,
json: json,
rowid: rowid,
),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
.toList(),
prefetchHooksCallback: null,
),
);
}
typedef $$UpsaleEntityTableProcessedTableManager =
ProcessedTableManager<
_$ComwellDatabase,
$UpsaleEntityTable,
UpsaleDb,
$$UpsaleEntityTableFilterComposer,
$$UpsaleEntityTableOrderingComposer,
$$UpsaleEntityTableAnnotationComposer,
$$UpsaleEntityTableCreateCompanionBuilder,
$$UpsaleEntityTableUpdateCompanionBuilder,
(
UpsaleDb,
BaseReferences<_$ComwellDatabase, $UpsaleEntityTable, UpsaleDb>,
),
UpsaleDb,
PrefetchHooks Function()
>;
typedef $$HotelInformationEntityTableCreateCompanionBuilder =
HotelInformationEntityCompanion Function({
required String hotelCode,
required String json,
Value<int> rowid,
});
typedef $$HotelInformationEntityTableUpdateCompanionBuilder =
HotelInformationEntityCompanion Function({
Value<String> hotelCode,
Value<String> json,
Value<int> rowid,
});
class $$HotelInformationEntityTableFilterComposer
extends Composer<_$ComwellDatabase, $HotelInformationEntityTable> {
$$HotelInformationEntityTableFilterComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnFilters<String> get hotelCode => $composableBuilder(
column: $table.hotelCode,
builder: (column) => ColumnFilters(column),
);
ColumnFilters<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnFilters(column),
);
}
class $$HotelInformationEntityTableOrderingComposer
extends Composer<_$ComwellDatabase, $HotelInformationEntityTable> {
$$HotelInformationEntityTableOrderingComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
ColumnOrderings<String> get hotelCode => $composableBuilder(
column: $table.hotelCode,
builder: (column) => ColumnOrderings(column),
);
ColumnOrderings<String> get json => $composableBuilder(
column: $table.json,
builder: (column) => ColumnOrderings(column),
);
}
class $$HotelInformationEntityTableAnnotationComposer
extends Composer<_$ComwellDatabase, $HotelInformationEntityTable> {
$$HotelInformationEntityTableAnnotationComposer({
required super.$db,
required super.$table,
super.joinBuilder,
super.$addJoinBuilderToRootComposer,
super.$removeJoinBuilderFromRootComposer,
});
GeneratedColumn<String> get hotelCode =>
$composableBuilder(column: $table.hotelCode, builder: (column) => column);
GeneratedColumn<String> get json =>
$composableBuilder(column: $table.json, builder: (column) => column);
}
class $$HotelInformationEntityTableTableManager
extends
RootTableManager<
_$ComwellDatabase,
$HotelInformationEntityTable,
HotelInformationDb,
$$HotelInformationEntityTableFilterComposer,
$$HotelInformationEntityTableOrderingComposer,
$$HotelInformationEntityTableAnnotationComposer,
$$HotelInformationEntityTableCreateCompanionBuilder,
$$HotelInformationEntityTableUpdateCompanionBuilder,
(
HotelInformationDb,
BaseReferences<
_$ComwellDatabase,
$HotelInformationEntityTable,
HotelInformationDb
>,
),
HotelInformationDb,
PrefetchHooks Function()
> {
$$HotelInformationEntityTableTableManager(
_$ComwellDatabase db,
$HotelInformationEntityTable table,
) : super(
TableManagerState(
db: db,
table: table,
createFilteringComposer: () =>
$$HotelInformationEntityTableFilterComposer(
$db: db,
$table: table,
),
createOrderingComposer: () =>
$$HotelInformationEntityTableOrderingComposer(
$db: db,
$table: table,
),
createComputedFieldComposer: () =>
$$HotelInformationEntityTableAnnotationComposer(
$db: db,
$table: table,
),
updateCompanionCallback:
({
Value<String> hotelCode = const Value.absent(),
Value<String> json = const Value.absent(),
Value<int> rowid = const Value.absent(),
}) => HotelInformationEntityCompanion(
hotelCode: hotelCode,
json: json,
rowid: rowid,
),
createCompanionCallback:
({
required String hotelCode,
required String json,
Value<int> rowid = const Value.absent(),
}) => HotelInformationEntityCompanion.insert(
hotelCode: hotelCode,
json: json,
rowid: rowid,
),
withReferenceMapper: (p0) => p0
.map((e) => (e.readTable(table), BaseReferences(db, table, e)))
.toList(),
prefetchHooksCallback: null,
),
);
}
typedef $$HotelInformationEntityTableProcessedTableManager =
ProcessedTableManager<
_$ComwellDatabase,
$HotelInformationEntityTable,
HotelInformationDb,
$$HotelInformationEntityTableFilterComposer,
$$HotelInformationEntityTableOrderingComposer,
$$HotelInformationEntityTableAnnotationComposer,
$$HotelInformationEntityTableCreateCompanionBuilder,
$$HotelInformationEntityTableUpdateCompanionBuilder,
(
HotelInformationDb,
BaseReferences<
_$ComwellDatabase,
$HotelInformationEntityTable,
HotelInformationDb
>,
),
HotelInformationDb,
PrefetchHooks Function()
>;
class $ComwellDatabaseManager {
final _$ComwellDatabase _db;
$ComwellDatabaseManager(this._db);
$$BookingEntityTableTableManager get bookingEntity =>
$$BookingEntityTableTableManager(_db, _db.bookingEntity);
$$UserEntityTableTableManager get userEntity =>
$$UserEntityTableTableManager(_db, _db.userEntity);
$$NotificationPermissionEntityTableTableManager
get notificationPermissionEntity =>
$$NotificationPermissionEntityTableTableManager(
_db,
_db.notificationPermissionEntity,
);
$$UpsaleEntityTableTableManager get upsaleEntity =>
$$UpsaleEntityTableTableManager(_db, _db.upsaleEntity);
$$HotelInformationEntityTableTableManager get hotelInformationEntity =>
$$HotelInformationEntityTableTableManager(
_db,
_db.hotelInformationEntity,
);
}