// dart format width=80 // ignore_for_file: type=lint import 'package:drift/drift.dart' as i0; import 'package:immich_mobile/infrastructure/entities/exif.entity.drift.dart' as i1; import 'dart:typed_data' as i2; import 'package:immich_mobile/infrastructure/entities/exif.entity.dart' as i3; import 'package:immich_mobile/infrastructure/entities/remote_asset.entity.drift.dart' as i4; import 'package:drift/internal/modular.dart' as i5; typedef $$ExifEntityTableCreateCompanionBuilder = i1.ExifEntityCompanion Function({ required i2.Uint8List assetId, i0.Value city, i0.Value state, i0.Value country, i0.Value dateTimeOriginal, i0.Value description, i0.Value height, i0.Value width, i0.Value exposureTime, i0.Value fNumber, i0.Value fileSize, i0.Value focalLength, i0.Value latitude, i0.Value longitude, i0.Value iso, i0.Value make, i0.Value model, i0.Value orientation, i0.Value timeZone, i0.Value rating, i0.Value projectionType, }); typedef $$ExifEntityTableUpdateCompanionBuilder = i1.ExifEntityCompanion Function({ i0.Value assetId, i0.Value city, i0.Value state, i0.Value country, i0.Value dateTimeOriginal, i0.Value description, i0.Value height, i0.Value width, i0.Value exposureTime, i0.Value fNumber, i0.Value fileSize, i0.Value focalLength, i0.Value latitude, i0.Value longitude, i0.Value iso, i0.Value make, i0.Value model, i0.Value orientation, i0.Value timeZone, i0.Value rating, i0.Value projectionType, }); final class $$ExifEntityTableReferences extends i0.BaseReferences< i0.GeneratedDatabase, i1.$ExifEntityTable, i1.ExifEntityData> { $$ExifEntityTableReferences(super.$_db, super.$_table, super.$_typedResult); static i4.$RemoteAssetEntityTable _assetIdTable(i0.GeneratedDatabase db) => i5.ReadDatabaseContainer(db) .resultSet('remote_asset_entity') .createAlias(i0.$_aliasNameGenerator( i5.ReadDatabaseContainer(db) .resultSet('exif_entity') .assetId, i5.ReadDatabaseContainer(db) .resultSet('remote_asset_entity') .remoteId)); i4.$$RemoteAssetEntityTableProcessedTableManager get assetId { final $_column = $_itemColumn('asset_id')!; final manager = i4 .$$RemoteAssetEntityTableTableManager( $_db, i5.ReadDatabaseContainer($_db) .resultSet('remote_asset_entity')) .filter((f) => f.remoteId.sqlEquals($_column)); final item = $_typedResult.readTableOrNull(_assetIdTable($_db)); if (item == null) return manager; return i0.ProcessedTableManager( manager.$state.copyWith(prefetchedData: [item])); } } class $$ExifEntityTableFilterComposer extends i0.Composer { $$ExifEntityTableFilterComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); i0.ColumnFilters get city => $composableBuilder( column: $table.city, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get state => $composableBuilder( column: $table.state, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get country => $composableBuilder( column: $table.country, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get dateTimeOriginal => $composableBuilder( column: $table.dateTimeOriginal, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get description => $composableBuilder( column: $table.description, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get height => $composableBuilder( column: $table.height, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get width => $composableBuilder( column: $table.width, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get exposureTime => $composableBuilder( column: $table.exposureTime, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get fNumber => $composableBuilder( column: $table.fNumber, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get fileSize => $composableBuilder( column: $table.fileSize, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get focalLength => $composableBuilder( column: $table.focalLength, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get latitude => $composableBuilder( column: $table.latitude, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get longitude => $composableBuilder( column: $table.longitude, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get iso => $composableBuilder( column: $table.iso, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get make => $composableBuilder( column: $table.make, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get model => $composableBuilder( column: $table.model, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get orientation => $composableBuilder( column: $table.orientation, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get timeZone => $composableBuilder( column: $table.timeZone, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get rating => $composableBuilder( column: $table.rating, builder: (column) => i0.ColumnFilters(column)); i0.ColumnFilters get projectionType => $composableBuilder( column: $table.projectionType, builder: (column) => i0.ColumnFilters(column)); i4.$$RemoteAssetEntityTableFilterComposer get assetId { final i4.$$RemoteAssetEntityTableFilterComposer composer = $composerBuilder( composer: this, getCurrentColumn: (t) => t.assetId, referencedTable: i5.ReadDatabaseContainer($db) .resultSet('remote_asset_entity'), getReferencedColumn: (t) => t.remoteId, builder: (joinBuilder, {$addJoinBuilderToRootComposer, $removeJoinBuilderFromRootComposer}) => i4.$$RemoteAssetEntityTableFilterComposer( $db: $db, $table: i5.ReadDatabaseContainer($db) .resultSet('remote_asset_entity'), $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, joinBuilder: joinBuilder, $removeJoinBuilderFromRootComposer: $removeJoinBuilderFromRootComposer, )); return composer; } } class $$ExifEntityTableOrderingComposer extends i0.Composer { $$ExifEntityTableOrderingComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); i0.ColumnOrderings get city => $composableBuilder( column: $table.city, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get state => $composableBuilder( column: $table.state, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get country => $composableBuilder( column: $table.country, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get dateTimeOriginal => $composableBuilder( column: $table.dateTimeOriginal, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get description => $composableBuilder( column: $table.description, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get height => $composableBuilder( column: $table.height, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get width => $composableBuilder( column: $table.width, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get exposureTime => $composableBuilder( column: $table.exposureTime, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get fNumber => $composableBuilder( column: $table.fNumber, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get fileSize => $composableBuilder( column: $table.fileSize, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get focalLength => $composableBuilder( column: $table.focalLength, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get latitude => $composableBuilder( column: $table.latitude, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get longitude => $composableBuilder( column: $table.longitude, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get iso => $composableBuilder( column: $table.iso, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get make => $composableBuilder( column: $table.make, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get model => $composableBuilder( column: $table.model, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get orientation => $composableBuilder( column: $table.orientation, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get timeZone => $composableBuilder( column: $table.timeZone, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get rating => $composableBuilder( column: $table.rating, builder: (column) => i0.ColumnOrderings(column)); i0.ColumnOrderings get projectionType => $composableBuilder( column: $table.projectionType, builder: (column) => i0.ColumnOrderings(column)); i4.$$RemoteAssetEntityTableOrderingComposer get assetId { final i4.$$RemoteAssetEntityTableOrderingComposer composer = $composerBuilder( composer: this, getCurrentColumn: (t) => t.assetId, referencedTable: i5.ReadDatabaseContainer($db) .resultSet('remote_asset_entity'), getReferencedColumn: (t) => t.remoteId, builder: (joinBuilder, {$addJoinBuilderToRootComposer, $removeJoinBuilderFromRootComposer}) => i4.$$RemoteAssetEntityTableOrderingComposer( $db: $db, $table: i5.ReadDatabaseContainer($db) .resultSet( 'remote_asset_entity'), $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, joinBuilder: joinBuilder, $removeJoinBuilderFromRootComposer: $removeJoinBuilderFromRootComposer, )); return composer; } } class $$ExifEntityTableAnnotationComposer extends i0.Composer { $$ExifEntityTableAnnotationComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); i0.GeneratedColumn get city => $composableBuilder(column: $table.city, builder: (column) => column); i0.GeneratedColumn get state => $composableBuilder(column: $table.state, builder: (column) => column); i0.GeneratedColumn get country => $composableBuilder(column: $table.country, builder: (column) => column); i0.GeneratedColumn get dateTimeOriginal => $composableBuilder( column: $table.dateTimeOriginal, builder: (column) => column); i0.GeneratedColumn get description => $composableBuilder( column: $table.description, builder: (column) => column); i0.GeneratedColumn get height => $composableBuilder(column: $table.height, builder: (column) => column); i0.GeneratedColumn get width => $composableBuilder(column: $table.width, builder: (column) => column); i0.GeneratedColumn get exposureTime => $composableBuilder( column: $table.exposureTime, builder: (column) => column); i0.GeneratedColumn get fNumber => $composableBuilder(column: $table.fNumber, builder: (column) => column); i0.GeneratedColumn get fileSize => $composableBuilder(column: $table.fileSize, builder: (column) => column); i0.GeneratedColumn get focalLength => $composableBuilder( column: $table.focalLength, builder: (column) => column); i0.GeneratedColumn get latitude => $composableBuilder(column: $table.latitude, builder: (column) => column); i0.GeneratedColumn get longitude => $composableBuilder(column: $table.longitude, builder: (column) => column); i0.GeneratedColumn get iso => $composableBuilder(column: $table.iso, builder: (column) => column); i0.GeneratedColumn get make => $composableBuilder(column: $table.make, builder: (column) => column); i0.GeneratedColumn get model => $composableBuilder(column: $table.model, builder: (column) => column); i0.GeneratedColumn get orientation => $composableBuilder( column: $table.orientation, builder: (column) => column); i0.GeneratedColumn get timeZone => $composableBuilder(column: $table.timeZone, builder: (column) => column); i0.GeneratedColumn get rating => $composableBuilder(column: $table.rating, builder: (column) => column); i0.GeneratedColumn get projectionType => $composableBuilder( column: $table.projectionType, builder: (column) => column); i4.$$RemoteAssetEntityTableAnnotationComposer get assetId { final i4.$$RemoteAssetEntityTableAnnotationComposer composer = $composerBuilder( composer: this, getCurrentColumn: (t) => t.assetId, referencedTable: i5.ReadDatabaseContainer($db) .resultSet('remote_asset_entity'), getReferencedColumn: (t) => t.remoteId, builder: (joinBuilder, {$addJoinBuilderToRootComposer, $removeJoinBuilderFromRootComposer}) => i4.$$RemoteAssetEntityTableAnnotationComposer( $db: $db, $table: i5.ReadDatabaseContainer($db) .resultSet( 'remote_asset_entity'), $addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer, joinBuilder: joinBuilder, $removeJoinBuilderFromRootComposer: $removeJoinBuilderFromRootComposer, )); return composer; } } class $$ExifEntityTableTableManager extends i0.RootTableManager< i0.GeneratedDatabase, i1.$ExifEntityTable, i1.ExifEntityData, i1.$$ExifEntityTableFilterComposer, i1.$$ExifEntityTableOrderingComposer, i1.$$ExifEntityTableAnnotationComposer, $$ExifEntityTableCreateCompanionBuilder, $$ExifEntityTableUpdateCompanionBuilder, (i1.ExifEntityData, i1.$$ExifEntityTableReferences), i1.ExifEntityData, i0.PrefetchHooks Function({bool assetId})> { $$ExifEntityTableTableManager( i0.GeneratedDatabase db, i1.$ExifEntityTable table) : super(i0.TableManagerState( db: db, table: table, createFilteringComposer: () => i1.$$ExifEntityTableFilterComposer($db: db, $table: table), createOrderingComposer: () => i1.$$ExifEntityTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => i1.$$ExifEntityTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ i0.Value assetId = const i0.Value.absent(), i0.Value city = const i0.Value.absent(), i0.Value state = const i0.Value.absent(), i0.Value country = const i0.Value.absent(), i0.Value dateTimeOriginal = const i0.Value.absent(), i0.Value description = const i0.Value.absent(), i0.Value height = const i0.Value.absent(), i0.Value width = const i0.Value.absent(), i0.Value exposureTime = const i0.Value.absent(), i0.Value fNumber = const i0.Value.absent(), i0.Value fileSize = const i0.Value.absent(), i0.Value focalLength = const i0.Value.absent(), i0.Value latitude = const i0.Value.absent(), i0.Value longitude = const i0.Value.absent(), i0.Value iso = const i0.Value.absent(), i0.Value make = const i0.Value.absent(), i0.Value model = const i0.Value.absent(), i0.Value orientation = const i0.Value.absent(), i0.Value timeZone = const i0.Value.absent(), i0.Value rating = const i0.Value.absent(), i0.Value projectionType = const i0.Value.absent(), }) => i1.ExifEntityCompanion( assetId: assetId, city: city, state: state, country: country, dateTimeOriginal: dateTimeOriginal, description: description, height: height, width: width, exposureTime: exposureTime, fNumber: fNumber, fileSize: fileSize, focalLength: focalLength, latitude: latitude, longitude: longitude, iso: iso, make: make, model: model, orientation: orientation, timeZone: timeZone, rating: rating, projectionType: projectionType, ), createCompanionCallback: ({ required i2.Uint8List assetId, i0.Value city = const i0.Value.absent(), i0.Value state = const i0.Value.absent(), i0.Value country = const i0.Value.absent(), i0.Value dateTimeOriginal = const i0.Value.absent(), i0.Value description = const i0.Value.absent(), i0.Value height = const i0.Value.absent(), i0.Value width = const i0.Value.absent(), i0.Value exposureTime = const i0.Value.absent(), i0.Value fNumber = const i0.Value.absent(), i0.Value fileSize = const i0.Value.absent(), i0.Value focalLength = const i0.Value.absent(), i0.Value latitude = const i0.Value.absent(), i0.Value longitude = const i0.Value.absent(), i0.Value iso = const i0.Value.absent(), i0.Value make = const i0.Value.absent(), i0.Value model = const i0.Value.absent(), i0.Value orientation = const i0.Value.absent(), i0.Value timeZone = const i0.Value.absent(), i0.Value rating = const i0.Value.absent(), i0.Value projectionType = const i0.Value.absent(), }) => i1.ExifEntityCompanion.insert( assetId: assetId, city: city, state: state, country: country, dateTimeOriginal: dateTimeOriginal, description: description, height: height, width: width, exposureTime: exposureTime, fNumber: fNumber, fileSize: fileSize, focalLength: focalLength, latitude: latitude, longitude: longitude, iso: iso, make: make, model: model, orientation: orientation, timeZone: timeZone, rating: rating, projectionType: projectionType, ), withReferenceMapper: (p0) => p0 .map((e) => ( e.readTable(table), i1.$$ExifEntityTableReferences(db, table, e) )) .toList(), prefetchHooksCallback: ({assetId = false}) { return i0.PrefetchHooks( db: db, explicitlyWatchedTables: [], addJoins: < T extends i0.TableManagerState< dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic>>(state) { if (assetId) { state = state.withJoin( currentTable: table, currentColumn: table.assetId, referencedTable: i1.$$ExifEntityTableReferences._assetIdTable(db), referencedColumn: i1.$$ExifEntityTableReferences ._assetIdTable(db) .remoteId, ) as T; } return state; }, getPrefetchedDataCallback: (items) async { return []; }, ); }, )); } typedef $$ExifEntityTableProcessedTableManager = i0.ProcessedTableManager< i0.GeneratedDatabase, i1.$ExifEntityTable, i1.ExifEntityData, i1.$$ExifEntityTableFilterComposer, i1.$$ExifEntityTableOrderingComposer, i1.$$ExifEntityTableAnnotationComposer, $$ExifEntityTableCreateCompanionBuilder, $$ExifEntityTableUpdateCompanionBuilder, (i1.ExifEntityData, i1.$$ExifEntityTableReferences), i1.ExifEntityData, i0.PrefetchHooks Function({bool assetId})>; class $ExifEntityTable extends i3.ExifEntity with i0.TableInfo<$ExifEntityTable, i1.ExifEntityData> { @override final i0.GeneratedDatabase attachedDatabase; final String? _alias; $ExifEntityTable(this.attachedDatabase, [this._alias]); static const i0.VerificationMeta _assetIdMeta = const i0.VerificationMeta('assetId'); @override late final i0.GeneratedColumn assetId = i0.GeneratedColumn('asset_id', aliasedName, false, type: i0.DriftSqlType.blob, requiredDuringInsert: true, defaultConstraints: i0.GeneratedColumn.constraintIsAlways( 'REFERENCES remote_asset_entity (remote_id) ON DELETE CASCADE')); static const i0.VerificationMeta _cityMeta = const i0.VerificationMeta('city'); @override late final i0.GeneratedColumn city = i0.GeneratedColumn( 'city', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _stateMeta = const i0.VerificationMeta('state'); @override late final i0.GeneratedColumn state = i0.GeneratedColumn( 'state', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _countryMeta = const i0.VerificationMeta('country'); @override late final i0.GeneratedColumn country = i0.GeneratedColumn( 'country', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _dateTimeOriginalMeta = const i0.VerificationMeta('dateTimeOriginal'); @override late final i0.GeneratedColumn dateTimeOriginal = i0.GeneratedColumn('date_time_original', aliasedName, true, type: i0.DriftSqlType.dateTime, requiredDuringInsert: false); static const i0.VerificationMeta _descriptionMeta = const i0.VerificationMeta('description'); @override late final i0.GeneratedColumn description = i0.GeneratedColumn('description', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _heightMeta = const i0.VerificationMeta('height'); @override late final i0.GeneratedColumn height = i0.GeneratedColumn( 'height', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _widthMeta = const i0.VerificationMeta('width'); @override late final i0.GeneratedColumn width = i0.GeneratedColumn( 'width', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _exposureTimeMeta = const i0.VerificationMeta('exposureTime'); @override late final i0.GeneratedColumn exposureTime = i0.GeneratedColumn('exposure_time', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _fNumberMeta = const i0.VerificationMeta('fNumber'); @override late final i0.GeneratedColumn fNumber = i0.GeneratedColumn( 'f_number', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _fileSizeMeta = const i0.VerificationMeta('fileSize'); @override late final i0.GeneratedColumn fileSize = i0.GeneratedColumn( 'file_size', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _focalLengthMeta = const i0.VerificationMeta('focalLength'); @override late final i0.GeneratedColumn focalLength = i0.GeneratedColumn( 'focal_length', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _latitudeMeta = const i0.VerificationMeta('latitude'); @override late final i0.GeneratedColumn latitude = i0.GeneratedColumn( 'latitude', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _longitudeMeta = const i0.VerificationMeta('longitude'); @override late final i0.GeneratedColumn longitude = i0.GeneratedColumn( 'longitude', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _isoMeta = const i0.VerificationMeta('iso'); @override late final i0.GeneratedColumn iso = i0.GeneratedColumn( 'iso', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _makeMeta = const i0.VerificationMeta('make'); @override late final i0.GeneratedColumn make = i0.GeneratedColumn( 'make', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _modelMeta = const i0.VerificationMeta('model'); @override late final i0.GeneratedColumn model = i0.GeneratedColumn( 'model', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _orientationMeta = const i0.VerificationMeta('orientation'); @override late final i0.GeneratedColumn orientation = i0.GeneratedColumn('orientation', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _timeZoneMeta = const i0.VerificationMeta('timeZone'); @override late final i0.GeneratedColumn timeZone = i0.GeneratedColumn( 'time_zone', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); static const i0.VerificationMeta _ratingMeta = const i0.VerificationMeta('rating'); @override late final i0.GeneratedColumn rating = i0.GeneratedColumn( 'rating', aliasedName, true, type: i0.DriftSqlType.int, requiredDuringInsert: false); static const i0.VerificationMeta _projectionTypeMeta = const i0.VerificationMeta('projectionType'); @override late final i0.GeneratedColumn projectionType = i0.GeneratedColumn('projection_type', aliasedName, true, type: i0.DriftSqlType.string, requiredDuringInsert: false); @override List get $columns => [ assetId, city, state, country, dateTimeOriginal, description, height, width, exposureTime, fNumber, fileSize, focalLength, latitude, longitude, iso, make, model, orientation, timeZone, rating, projectionType ]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'exif_entity'; @override i0.VerificationContext validateIntegrity( i0.Insertable instance, {bool isInserting = false}) { final context = i0.VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('asset_id')) { context.handle(_assetIdMeta, assetId.isAcceptableOrUnknown(data['asset_id']!, _assetIdMeta)); } else if (isInserting) { context.missing(_assetIdMeta); } if (data.containsKey('city')) { context.handle( _cityMeta, city.isAcceptableOrUnknown(data['city']!, _cityMeta)); } if (data.containsKey('state')) { context.handle( _stateMeta, state.isAcceptableOrUnknown(data['state']!, _stateMeta)); } if (data.containsKey('country')) { context.handle(_countryMeta, country.isAcceptableOrUnknown(data['country']!, _countryMeta)); } if (data.containsKey('date_time_original')) { context.handle( _dateTimeOriginalMeta, dateTimeOriginal.isAcceptableOrUnknown( data['date_time_original']!, _dateTimeOriginalMeta)); } if (data.containsKey('description')) { context.handle( _descriptionMeta, description.isAcceptableOrUnknown( data['description']!, _descriptionMeta)); } if (data.containsKey('height')) { context.handle(_heightMeta, height.isAcceptableOrUnknown(data['height']!, _heightMeta)); } if (data.containsKey('width')) { context.handle( _widthMeta, width.isAcceptableOrUnknown(data['width']!, _widthMeta)); } if (data.containsKey('exposure_time')) { context.handle( _exposureTimeMeta, exposureTime.isAcceptableOrUnknown( data['exposure_time']!, _exposureTimeMeta)); } if (data.containsKey('f_number')) { context.handle(_fNumberMeta, fNumber.isAcceptableOrUnknown(data['f_number']!, _fNumberMeta)); } if (data.containsKey('file_size')) { context.handle(_fileSizeMeta, fileSize.isAcceptableOrUnknown(data['file_size']!, _fileSizeMeta)); } if (data.containsKey('focal_length')) { context.handle( _focalLengthMeta, focalLength.isAcceptableOrUnknown( data['focal_length']!, _focalLengthMeta)); } if (data.containsKey('latitude')) { context.handle(_latitudeMeta, latitude.isAcceptableOrUnknown(data['latitude']!, _latitudeMeta)); } if (data.containsKey('longitude')) { context.handle(_longitudeMeta, longitude.isAcceptableOrUnknown(data['longitude']!, _longitudeMeta)); } if (data.containsKey('iso')) { context.handle( _isoMeta, iso.isAcceptableOrUnknown(data['iso']!, _isoMeta)); } if (data.containsKey('make')) { context.handle( _makeMeta, make.isAcceptableOrUnknown(data['make']!, _makeMeta)); } if (data.containsKey('model')) { context.handle( _modelMeta, model.isAcceptableOrUnknown(data['model']!, _modelMeta)); } if (data.containsKey('orientation')) { context.handle( _orientationMeta, orientation.isAcceptableOrUnknown( data['orientation']!, _orientationMeta)); } if (data.containsKey('time_zone')) { context.handle(_timeZoneMeta, timeZone.isAcceptableOrUnknown(data['time_zone']!, _timeZoneMeta)); } if (data.containsKey('rating')) { context.handle(_ratingMeta, rating.isAcceptableOrUnknown(data['rating']!, _ratingMeta)); } if (data.containsKey('projection_type')) { context.handle( _projectionTypeMeta, projectionType.isAcceptableOrUnknown( data['projection_type']!, _projectionTypeMeta)); } return context; } @override Set get $primaryKey => {assetId}; @override i1.ExifEntityData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return i1.ExifEntityData( assetId: attachedDatabase.typeMapping .read(i0.DriftSqlType.blob, data['${effectivePrefix}asset_id'])!, city: attachedDatabase.typeMapping .read(i0.DriftSqlType.string, data['${effectivePrefix}city']), state: attachedDatabase.typeMapping .read(i0.DriftSqlType.string, data['${effectivePrefix}state']), country: attachedDatabase.typeMapping .read(i0.DriftSqlType.string, data['${effectivePrefix}country']), dateTimeOriginal: attachedDatabase.typeMapping.read( i0.DriftSqlType.dateTime, data['${effectivePrefix}date_time_original']), description: attachedDatabase.typeMapping .read(i0.DriftSqlType.string, data['${effectivePrefix}description']), height: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}height']), width: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}width']), exposureTime: attachedDatabase.typeMapping.read( i0.DriftSqlType.string, data['${effectivePrefix}exposure_time']), fNumber: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}f_number']), fileSize: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}file_size']), focalLength: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}focal_length']), latitude: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}latitude']), longitude: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}longitude']), iso: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}iso']), make: attachedDatabase.typeMapping .read(i0.DriftSqlType.string, data['${effectivePrefix}make']), model: attachedDatabase.typeMapping .read(i0.DriftSqlType.string, data['${effectivePrefix}model']), orientation: attachedDatabase.typeMapping .read(i0.DriftSqlType.string, data['${effectivePrefix}orientation']), timeZone: attachedDatabase.typeMapping .read(i0.DriftSqlType.string, data['${effectivePrefix}time_zone']), rating: attachedDatabase.typeMapping .read(i0.DriftSqlType.int, data['${effectivePrefix}rating']), projectionType: attachedDatabase.typeMapping.read( i0.DriftSqlType.string, data['${effectivePrefix}projection_type']), ); } @override $ExifEntityTable createAlias(String alias) { return $ExifEntityTable(attachedDatabase, alias); } @override bool get withoutRowId => true; @override bool get isStrict => true; } class ExifEntityData extends i0.DataClass implements i0.Insertable { final i2.Uint8List assetId; final String? city; final String? state; final String? country; final DateTime? dateTimeOriginal; final String? description; final int? height; final int? width; final String? exposureTime; final int? fNumber; final int? fileSize; final int? focalLength; final int? latitude; final int? longitude; final int? iso; final String? make; final String? model; final String? orientation; final String? timeZone; final int? rating; final String? projectionType; const ExifEntityData( {required this.assetId, this.city, this.state, this.country, this.dateTimeOriginal, this.description, this.height, this.width, this.exposureTime, this.fNumber, this.fileSize, this.focalLength, this.latitude, this.longitude, this.iso, this.make, this.model, this.orientation, this.timeZone, this.rating, this.projectionType}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['asset_id'] = i0.Variable(assetId); if (!nullToAbsent || city != null) { map['city'] = i0.Variable(city); } if (!nullToAbsent || state != null) { map['state'] = i0.Variable(state); } if (!nullToAbsent || country != null) { map['country'] = i0.Variable(country); } if (!nullToAbsent || dateTimeOriginal != null) { map['date_time_original'] = i0.Variable(dateTimeOriginal); } if (!nullToAbsent || description != null) { map['description'] = i0.Variable(description); } if (!nullToAbsent || height != null) { map['height'] = i0.Variable(height); } if (!nullToAbsent || width != null) { map['width'] = i0.Variable(width); } if (!nullToAbsent || exposureTime != null) { map['exposure_time'] = i0.Variable(exposureTime); } if (!nullToAbsent || fNumber != null) { map['f_number'] = i0.Variable(fNumber); } if (!nullToAbsent || fileSize != null) { map['file_size'] = i0.Variable(fileSize); } if (!nullToAbsent || focalLength != null) { map['focal_length'] = i0.Variable(focalLength); } if (!nullToAbsent || latitude != null) { map['latitude'] = i0.Variable(latitude); } if (!nullToAbsent || longitude != null) { map['longitude'] = i0.Variable(longitude); } if (!nullToAbsent || iso != null) { map['iso'] = i0.Variable(iso); } if (!nullToAbsent || make != null) { map['make'] = i0.Variable(make); } if (!nullToAbsent || model != null) { map['model'] = i0.Variable(model); } if (!nullToAbsent || orientation != null) { map['orientation'] = i0.Variable(orientation); } if (!nullToAbsent || timeZone != null) { map['time_zone'] = i0.Variable(timeZone); } if (!nullToAbsent || rating != null) { map['rating'] = i0.Variable(rating); } if (!nullToAbsent || projectionType != null) { map['projection_type'] = i0.Variable(projectionType); } return map; } factory ExifEntityData.fromJson(Map json, {i0.ValueSerializer? serializer}) { serializer ??= i0.driftRuntimeOptions.defaultSerializer; return ExifEntityData( assetId: serializer.fromJson(json['assetId']), city: serializer.fromJson(json['city']), state: serializer.fromJson(json['state']), country: serializer.fromJson(json['country']), dateTimeOriginal: serializer.fromJson(json['dateTimeOriginal']), description: serializer.fromJson(json['description']), height: serializer.fromJson(json['height']), width: serializer.fromJson(json['width']), exposureTime: serializer.fromJson(json['exposureTime']), fNumber: serializer.fromJson(json['fNumber']), fileSize: serializer.fromJson(json['fileSize']), focalLength: serializer.fromJson(json['focalLength']), latitude: serializer.fromJson(json['latitude']), longitude: serializer.fromJson(json['longitude']), iso: serializer.fromJson(json['iso']), make: serializer.fromJson(json['make']), model: serializer.fromJson(json['model']), orientation: serializer.fromJson(json['orientation']), timeZone: serializer.fromJson(json['timeZone']), rating: serializer.fromJson(json['rating']), projectionType: serializer.fromJson(json['projectionType']), ); } @override Map toJson({i0.ValueSerializer? serializer}) { serializer ??= i0.driftRuntimeOptions.defaultSerializer; return { 'assetId': serializer.toJson(assetId), 'city': serializer.toJson(city), 'state': serializer.toJson(state), 'country': serializer.toJson(country), 'dateTimeOriginal': serializer.toJson(dateTimeOriginal), 'description': serializer.toJson(description), 'height': serializer.toJson(height), 'width': serializer.toJson(width), 'exposureTime': serializer.toJson(exposureTime), 'fNumber': serializer.toJson(fNumber), 'fileSize': serializer.toJson(fileSize), 'focalLength': serializer.toJson(focalLength), 'latitude': serializer.toJson(latitude), 'longitude': serializer.toJson(longitude), 'iso': serializer.toJson(iso), 'make': serializer.toJson(make), 'model': serializer.toJson(model), 'orientation': serializer.toJson(orientation), 'timeZone': serializer.toJson(timeZone), 'rating': serializer.toJson(rating), 'projectionType': serializer.toJson(projectionType), }; } i1.ExifEntityData copyWith( {i2.Uint8List? assetId, i0.Value city = const i0.Value.absent(), i0.Value state = const i0.Value.absent(), i0.Value country = const i0.Value.absent(), i0.Value dateTimeOriginal = const i0.Value.absent(), i0.Value description = const i0.Value.absent(), i0.Value height = const i0.Value.absent(), i0.Value width = const i0.Value.absent(), i0.Value exposureTime = const i0.Value.absent(), i0.Value fNumber = const i0.Value.absent(), i0.Value fileSize = const i0.Value.absent(), i0.Value focalLength = const i0.Value.absent(), i0.Value latitude = const i0.Value.absent(), i0.Value longitude = const i0.Value.absent(), i0.Value iso = const i0.Value.absent(), i0.Value make = const i0.Value.absent(), i0.Value model = const i0.Value.absent(), i0.Value orientation = const i0.Value.absent(), i0.Value timeZone = const i0.Value.absent(), i0.Value rating = const i0.Value.absent(), i0.Value projectionType = const i0.Value.absent()}) => i1.ExifEntityData( assetId: assetId ?? this.assetId, city: city.present ? city.value : this.city, state: state.present ? state.value : this.state, country: country.present ? country.value : this.country, dateTimeOriginal: dateTimeOriginal.present ? dateTimeOriginal.value : this.dateTimeOriginal, description: description.present ? description.value : this.description, height: height.present ? height.value : this.height, width: width.present ? width.value : this.width, exposureTime: exposureTime.present ? exposureTime.value : this.exposureTime, fNumber: fNumber.present ? fNumber.value : this.fNumber, fileSize: fileSize.present ? fileSize.value : this.fileSize, focalLength: focalLength.present ? focalLength.value : this.focalLength, latitude: latitude.present ? latitude.value : this.latitude, longitude: longitude.present ? longitude.value : this.longitude, iso: iso.present ? iso.value : this.iso, make: make.present ? make.value : this.make, model: model.present ? model.value : this.model, orientation: orientation.present ? orientation.value : this.orientation, timeZone: timeZone.present ? timeZone.value : this.timeZone, rating: rating.present ? rating.value : this.rating, projectionType: projectionType.present ? projectionType.value : this.projectionType, ); ExifEntityData copyWithCompanion(i1.ExifEntityCompanion data) { return ExifEntityData( assetId: data.assetId.present ? data.assetId.value : this.assetId, city: data.city.present ? data.city.value : this.city, state: data.state.present ? data.state.value : this.state, country: data.country.present ? data.country.value : this.country, dateTimeOriginal: data.dateTimeOriginal.present ? data.dateTimeOriginal.value : this.dateTimeOriginal, description: data.description.present ? data.description.value : this.description, height: data.height.present ? data.height.value : this.height, width: data.width.present ? data.width.value : this.width, exposureTime: data.exposureTime.present ? data.exposureTime.value : this.exposureTime, fNumber: data.fNumber.present ? data.fNumber.value : this.fNumber, fileSize: data.fileSize.present ? data.fileSize.value : this.fileSize, focalLength: data.focalLength.present ? data.focalLength.value : this.focalLength, latitude: data.latitude.present ? data.latitude.value : this.latitude, longitude: data.longitude.present ? data.longitude.value : this.longitude, iso: data.iso.present ? data.iso.value : this.iso, make: data.make.present ? data.make.value : this.make, model: data.model.present ? data.model.value : this.model, orientation: data.orientation.present ? data.orientation.value : this.orientation, timeZone: data.timeZone.present ? data.timeZone.value : this.timeZone, rating: data.rating.present ? data.rating.value : this.rating, projectionType: data.projectionType.present ? data.projectionType.value : this.projectionType, ); } @override String toString() { return (StringBuffer('ExifEntityData(') ..write('assetId: $assetId, ') ..write('city: $city, ') ..write('state: $state, ') ..write('country: $country, ') ..write('dateTimeOriginal: $dateTimeOriginal, ') ..write('description: $description, ') ..write('height: $height, ') ..write('width: $width, ') ..write('exposureTime: $exposureTime, ') ..write('fNumber: $fNumber, ') ..write('fileSize: $fileSize, ') ..write('focalLength: $focalLength, ') ..write('latitude: $latitude, ') ..write('longitude: $longitude, ') ..write('iso: $iso, ') ..write('make: $make, ') ..write('model: $model, ') ..write('orientation: $orientation, ') ..write('timeZone: $timeZone, ') ..write('rating: $rating, ') ..write('projectionType: $projectionType') ..write(')')) .toString(); } @override int get hashCode => Object.hashAll([ i0.$driftBlobEquality.hash(assetId), city, state, country, dateTimeOriginal, description, height, width, exposureTime, fNumber, fileSize, focalLength, latitude, longitude, iso, make, model, orientation, timeZone, rating, projectionType ]); @override bool operator ==(Object other) => identical(this, other) || (other is i1.ExifEntityData && i0.$driftBlobEquality.equals(other.assetId, this.assetId) && other.city == this.city && other.state == this.state && other.country == this.country && other.dateTimeOriginal == this.dateTimeOriginal && other.description == this.description && other.height == this.height && other.width == this.width && other.exposureTime == this.exposureTime && other.fNumber == this.fNumber && other.fileSize == this.fileSize && other.focalLength == this.focalLength && other.latitude == this.latitude && other.longitude == this.longitude && other.iso == this.iso && other.make == this.make && other.model == this.model && other.orientation == this.orientation && other.timeZone == this.timeZone && other.rating == this.rating && other.projectionType == this.projectionType); } class ExifEntityCompanion extends i0.UpdateCompanion { final i0.Value assetId; final i0.Value city; final i0.Value state; final i0.Value country; final i0.Value dateTimeOriginal; final i0.Value description; final i0.Value height; final i0.Value width; final i0.Value exposureTime; final i0.Value fNumber; final i0.Value fileSize; final i0.Value focalLength; final i0.Value latitude; final i0.Value longitude; final i0.Value iso; final i0.Value make; final i0.Value model; final i0.Value orientation; final i0.Value timeZone; final i0.Value rating; final i0.Value projectionType; const ExifEntityCompanion({ this.assetId = const i0.Value.absent(), this.city = const i0.Value.absent(), this.state = const i0.Value.absent(), this.country = const i0.Value.absent(), this.dateTimeOriginal = const i0.Value.absent(), this.description = const i0.Value.absent(), this.height = const i0.Value.absent(), this.width = const i0.Value.absent(), this.exposureTime = const i0.Value.absent(), this.fNumber = const i0.Value.absent(), this.fileSize = const i0.Value.absent(), this.focalLength = const i0.Value.absent(), this.latitude = const i0.Value.absent(), this.longitude = const i0.Value.absent(), this.iso = const i0.Value.absent(), this.make = const i0.Value.absent(), this.model = const i0.Value.absent(), this.orientation = const i0.Value.absent(), this.timeZone = const i0.Value.absent(), this.rating = const i0.Value.absent(), this.projectionType = const i0.Value.absent(), }); ExifEntityCompanion.insert({ required i2.Uint8List assetId, this.city = const i0.Value.absent(), this.state = const i0.Value.absent(), this.country = const i0.Value.absent(), this.dateTimeOriginal = const i0.Value.absent(), this.description = const i0.Value.absent(), this.height = const i0.Value.absent(), this.width = const i0.Value.absent(), this.exposureTime = const i0.Value.absent(), this.fNumber = const i0.Value.absent(), this.fileSize = const i0.Value.absent(), this.focalLength = const i0.Value.absent(), this.latitude = const i0.Value.absent(), this.longitude = const i0.Value.absent(), this.iso = const i0.Value.absent(), this.make = const i0.Value.absent(), this.model = const i0.Value.absent(), this.orientation = const i0.Value.absent(), this.timeZone = const i0.Value.absent(), this.rating = const i0.Value.absent(), this.projectionType = const i0.Value.absent(), }) : assetId = i0.Value(assetId); static i0.Insertable custom({ i0.Expression? assetId, i0.Expression? city, i0.Expression? state, i0.Expression? country, i0.Expression? dateTimeOriginal, i0.Expression? description, i0.Expression? height, i0.Expression? width, i0.Expression? exposureTime, i0.Expression? fNumber, i0.Expression? fileSize, i0.Expression? focalLength, i0.Expression? latitude, i0.Expression? longitude, i0.Expression? iso, i0.Expression? make, i0.Expression? model, i0.Expression? orientation, i0.Expression? timeZone, i0.Expression? rating, i0.Expression? projectionType, }) { return i0.RawValuesInsertable({ if (assetId != null) 'asset_id': assetId, if (city != null) 'city': city, if (state != null) 'state': state, if (country != null) 'country': country, if (dateTimeOriginal != null) 'date_time_original': dateTimeOriginal, if (description != null) 'description': description, if (height != null) 'height': height, if (width != null) 'width': width, if (exposureTime != null) 'exposure_time': exposureTime, if (fNumber != null) 'f_number': fNumber, if (fileSize != null) 'file_size': fileSize, if (focalLength != null) 'focal_length': focalLength, if (latitude != null) 'latitude': latitude, if (longitude != null) 'longitude': longitude, if (iso != null) 'iso': iso, if (make != null) 'make': make, if (model != null) 'model': model, if (orientation != null) 'orientation': orientation, if (timeZone != null) 'time_zone': timeZone, if (rating != null) 'rating': rating, if (projectionType != null) 'projection_type': projectionType, }); } i1.ExifEntityCompanion copyWith( {i0.Value? assetId, i0.Value? city, i0.Value? state, i0.Value? country, i0.Value? dateTimeOriginal, i0.Value? description, i0.Value? height, i0.Value? width, i0.Value? exposureTime, i0.Value? fNumber, i0.Value? fileSize, i0.Value? focalLength, i0.Value? latitude, i0.Value? longitude, i0.Value? iso, i0.Value? make, i0.Value? model, i0.Value? orientation, i0.Value? timeZone, i0.Value? rating, i0.Value? projectionType}) { return i1.ExifEntityCompanion( assetId: assetId ?? this.assetId, city: city ?? this.city, state: state ?? this.state, country: country ?? this.country, dateTimeOriginal: dateTimeOriginal ?? this.dateTimeOriginal, description: description ?? this.description, height: height ?? this.height, width: width ?? this.width, exposureTime: exposureTime ?? this.exposureTime, fNumber: fNumber ?? this.fNumber, fileSize: fileSize ?? this.fileSize, focalLength: focalLength ?? this.focalLength, latitude: latitude ?? this.latitude, longitude: longitude ?? this.longitude, iso: iso ?? this.iso, make: make ?? this.make, model: model ?? this.model, orientation: orientation ?? this.orientation, timeZone: timeZone ?? this.timeZone, rating: rating ?? this.rating, projectionType: projectionType ?? this.projectionType, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (assetId.present) { map['asset_id'] = i0.Variable(assetId.value); } if (city.present) { map['city'] = i0.Variable(city.value); } if (state.present) { map['state'] = i0.Variable(state.value); } if (country.present) { map['country'] = i0.Variable(country.value); } if (dateTimeOriginal.present) { map['date_time_original'] = i0.Variable(dateTimeOriginal.value); } if (description.present) { map['description'] = i0.Variable(description.value); } if (height.present) { map['height'] = i0.Variable(height.value); } if (width.present) { map['width'] = i0.Variable(width.value); } if (exposureTime.present) { map['exposure_time'] = i0.Variable(exposureTime.value); } if (fNumber.present) { map['f_number'] = i0.Variable(fNumber.value); } if (fileSize.present) { map['file_size'] = i0.Variable(fileSize.value); } if (focalLength.present) { map['focal_length'] = i0.Variable(focalLength.value); } if (latitude.present) { map['latitude'] = i0.Variable(latitude.value); } if (longitude.present) { map['longitude'] = i0.Variable(longitude.value); } if (iso.present) { map['iso'] = i0.Variable(iso.value); } if (make.present) { map['make'] = i0.Variable(make.value); } if (model.present) { map['model'] = i0.Variable(model.value); } if (orientation.present) { map['orientation'] = i0.Variable(orientation.value); } if (timeZone.present) { map['time_zone'] = i0.Variable(timeZone.value); } if (rating.present) { map['rating'] = i0.Variable(rating.value); } if (projectionType.present) { map['projection_type'] = i0.Variable(projectionType.value); } return map; } @override String toString() { return (StringBuffer('ExifEntityCompanion(') ..write('assetId: $assetId, ') ..write('city: $city, ') ..write('state: $state, ') ..write('country: $country, ') ..write('dateTimeOriginal: $dateTimeOriginal, ') ..write('description: $description, ') ..write('height: $height, ') ..write('width: $width, ') ..write('exposureTime: $exposureTime, ') ..write('fNumber: $fNumber, ') ..write('fileSize: $fileSize, ') ..write('focalLength: $focalLength, ') ..write('latitude: $latitude, ') ..write('longitude: $longitude, ') ..write('iso: $iso, ') ..write('make: $make, ') ..write('model: $model, ') ..write('orientation: $orientation, ') ..write('timeZone: $timeZone, ') ..write('rating: $rating, ') ..write('projectionType: $projectionType') ..write(')')) .toString(); } }