|
|
|
|
@ -3,24 +3,23 @@
|
|
|
|
|
import 'package:drift/drift.dart' as i0;
|
|
|
|
|
import 'package:immich_mobile/infrastructure/entities/partner.entity.drift.dart'
|
|
|
|
|
as i1;
|
|
|
|
|
import 'dart:typed_data' as i2;
|
|
|
|
|
import 'package:immich_mobile/infrastructure/entities/partner.entity.dart'
|
|
|
|
|
as i3;
|
|
|
|
|
import 'package:drift/src/runtime/query_builder/query_builder.dart' as i4;
|
|
|
|
|
as i2;
|
|
|
|
|
import 'package:drift/src/runtime/query_builder/query_builder.dart' as i3;
|
|
|
|
|
import 'package:immich_mobile/infrastructure/entities/user.entity.drift.dart'
|
|
|
|
|
as i5;
|
|
|
|
|
import 'package:drift/internal/modular.dart' as i6;
|
|
|
|
|
as i4;
|
|
|
|
|
import 'package:drift/internal/modular.dart' as i5;
|
|
|
|
|
|
|
|
|
|
typedef $$PartnerEntityTableCreateCompanionBuilder = i1.PartnerEntityCompanion
|
|
|
|
|
Function({
|
|
|
|
|
required i2.Uint8List sharedById,
|
|
|
|
|
required i2.Uint8List sharedWithId,
|
|
|
|
|
required String sharedById,
|
|
|
|
|
required String sharedWithId,
|
|
|
|
|
i0.Value<bool> inTimeline,
|
|
|
|
|
});
|
|
|
|
|
typedef $$PartnerEntityTableUpdateCompanionBuilder = i1.PartnerEntityCompanion
|
|
|
|
|
Function({
|
|
|
|
|
i0.Value<i2.Uint8List> sharedById,
|
|
|
|
|
i0.Value<i2.Uint8List> sharedWithId,
|
|
|
|
|
i0.Value<String> sharedById,
|
|
|
|
|
i0.Value<String> sharedWithId,
|
|
|
|
|
i0.Value<bool> inTimeline,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@ -29,25 +28,25 @@ final class $$PartnerEntityTableReferences extends i0.BaseReferences<
|
|
|
|
|
$$PartnerEntityTableReferences(
|
|
|
|
|
super.$_db, super.$_table, super.$_typedResult);
|
|
|
|
|
|
|
|
|
|
static i5.$UserEntityTable _sharedByIdTable(i0.GeneratedDatabase db) =>
|
|
|
|
|
i6.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity')
|
|
|
|
|
static i4.$UserEntityTable _sharedByIdTable(i0.GeneratedDatabase db) =>
|
|
|
|
|
i5.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity')
|
|
|
|
|
.createAlias(i0.$_aliasNameGenerator(
|
|
|
|
|
i6.ReadDatabaseContainer(db)
|
|
|
|
|
i5.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i1.$PartnerEntityTable>('partner_entity')
|
|
|
|
|
.sharedById,
|
|
|
|
|
i6.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity')
|
|
|
|
|
i5.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity')
|
|
|
|
|
.id));
|
|
|
|
|
|
|
|
|
|
i5.$$UserEntityTableProcessedTableManager get sharedById {
|
|
|
|
|
final $_column = $_itemColumn<i2.Uint8List>('shared_by_id')!;
|
|
|
|
|
i4.$$UserEntityTableProcessedTableManager get sharedById {
|
|
|
|
|
final $_column = $_itemColumn<String>('shared_by_id')!;
|
|
|
|
|
|
|
|
|
|
final manager = i5
|
|
|
|
|
final manager = i4
|
|
|
|
|
.$$UserEntityTableTableManager(
|
|
|
|
|
$_db,
|
|
|
|
|
i6.ReadDatabaseContainer($_db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'))
|
|
|
|
|
i5.ReadDatabaseContainer($_db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'))
|
|
|
|
|
.filter((f) => f.id.sqlEquals($_column));
|
|
|
|
|
final item = $_typedResult.readTableOrNull(_sharedByIdTable($_db));
|
|
|
|
|
if (item == null) return manager;
|
|
|
|
|
@ -55,25 +54,25 @@ final class $$PartnerEntityTableReferences extends i0.BaseReferences<
|
|
|
|
|
manager.$state.copyWith(prefetchedData: [item]));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static i5.$UserEntityTable _sharedWithIdTable(i0.GeneratedDatabase db) =>
|
|
|
|
|
i6.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity')
|
|
|
|
|
static i4.$UserEntityTable _sharedWithIdTable(i0.GeneratedDatabase db) =>
|
|
|
|
|
i5.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity')
|
|
|
|
|
.createAlias(i0.$_aliasNameGenerator(
|
|
|
|
|
i6.ReadDatabaseContainer(db)
|
|
|
|
|
i5.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i1.$PartnerEntityTable>('partner_entity')
|
|
|
|
|
.sharedWithId,
|
|
|
|
|
i6.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity')
|
|
|
|
|
i5.ReadDatabaseContainer(db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity')
|
|
|
|
|
.id));
|
|
|
|
|
|
|
|
|
|
i5.$$UserEntityTableProcessedTableManager get sharedWithId {
|
|
|
|
|
final $_column = $_itemColumn<i2.Uint8List>('shared_with_id')!;
|
|
|
|
|
i4.$$UserEntityTableProcessedTableManager get sharedWithId {
|
|
|
|
|
final $_column = $_itemColumn<String>('shared_with_id')!;
|
|
|
|
|
|
|
|
|
|
final manager = i5
|
|
|
|
|
final manager = i4
|
|
|
|
|
.$$UserEntityTableTableManager(
|
|
|
|
|
$_db,
|
|
|
|
|
i6.ReadDatabaseContainer($_db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'))
|
|
|
|
|
i5.ReadDatabaseContainer($_db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'))
|
|
|
|
|
.filter((f) => f.id.sqlEquals($_column));
|
|
|
|
|
final item = $_typedResult.readTableOrNull(_sharedWithIdTable($_db));
|
|
|
|
|
if (item == null) return manager;
|
|
|
|
|
@ -94,20 +93,20 @@ class $$PartnerEntityTableFilterComposer
|
|
|
|
|
i0.ColumnFilters<bool> get inTimeline => $composableBuilder(
|
|
|
|
|
column: $table.inTimeline, builder: (column) => i0.ColumnFilters(column));
|
|
|
|
|
|
|
|
|
|
i5.$$UserEntityTableFilterComposer get sharedById {
|
|
|
|
|
final i5.$$UserEntityTableFilterComposer composer = $composerBuilder(
|
|
|
|
|
i4.$$UserEntityTableFilterComposer get sharedById {
|
|
|
|
|
final i4.$$UserEntityTableFilterComposer composer = $composerBuilder(
|
|
|
|
|
composer: this,
|
|
|
|
|
getCurrentColumn: (t) => t.sharedById,
|
|
|
|
|
referencedTable: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
referencedTable: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
getReferencedColumn: (t) => t.id,
|
|
|
|
|
builder: (joinBuilder,
|
|
|
|
|
{$addJoinBuilderToRootComposer,
|
|
|
|
|
$removeJoinBuilderFromRootComposer}) =>
|
|
|
|
|
i5.$$UserEntityTableFilterComposer(
|
|
|
|
|
i4.$$UserEntityTableFilterComposer(
|
|
|
|
|
$db: $db,
|
|
|
|
|
$table: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
$table: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
$addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer,
|
|
|
|
|
joinBuilder: joinBuilder,
|
|
|
|
|
$removeJoinBuilderFromRootComposer:
|
|
|
|
|
@ -116,20 +115,20 @@ class $$PartnerEntityTableFilterComposer
|
|
|
|
|
return composer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
i5.$$UserEntityTableFilterComposer get sharedWithId {
|
|
|
|
|
final i5.$$UserEntityTableFilterComposer composer = $composerBuilder(
|
|
|
|
|
i4.$$UserEntityTableFilterComposer get sharedWithId {
|
|
|
|
|
final i4.$$UserEntityTableFilterComposer composer = $composerBuilder(
|
|
|
|
|
composer: this,
|
|
|
|
|
getCurrentColumn: (t) => t.sharedWithId,
|
|
|
|
|
referencedTable: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
referencedTable: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
getReferencedColumn: (t) => t.id,
|
|
|
|
|
builder: (joinBuilder,
|
|
|
|
|
{$addJoinBuilderToRootComposer,
|
|
|
|
|
$removeJoinBuilderFromRootComposer}) =>
|
|
|
|
|
i5.$$UserEntityTableFilterComposer(
|
|
|
|
|
i4.$$UserEntityTableFilterComposer(
|
|
|
|
|
$db: $db,
|
|
|
|
|
$table: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
$table: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
$addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer,
|
|
|
|
|
joinBuilder: joinBuilder,
|
|
|
|
|
$removeJoinBuilderFromRootComposer:
|
|
|
|
|
@ -152,20 +151,20 @@ class $$PartnerEntityTableOrderingComposer
|
|
|
|
|
column: $table.inTimeline,
|
|
|
|
|
builder: (column) => i0.ColumnOrderings(column));
|
|
|
|
|
|
|
|
|
|
i5.$$UserEntityTableOrderingComposer get sharedById {
|
|
|
|
|
final i5.$$UserEntityTableOrderingComposer composer = $composerBuilder(
|
|
|
|
|
i4.$$UserEntityTableOrderingComposer get sharedById {
|
|
|
|
|
final i4.$$UserEntityTableOrderingComposer composer = $composerBuilder(
|
|
|
|
|
composer: this,
|
|
|
|
|
getCurrentColumn: (t) => t.sharedById,
|
|
|
|
|
referencedTable: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
referencedTable: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
getReferencedColumn: (t) => t.id,
|
|
|
|
|
builder: (joinBuilder,
|
|
|
|
|
{$addJoinBuilderToRootComposer,
|
|
|
|
|
$removeJoinBuilderFromRootComposer}) =>
|
|
|
|
|
i5.$$UserEntityTableOrderingComposer(
|
|
|
|
|
i4.$$UserEntityTableOrderingComposer(
|
|
|
|
|
$db: $db,
|
|
|
|
|
$table: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
$table: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
$addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer,
|
|
|
|
|
joinBuilder: joinBuilder,
|
|
|
|
|
$removeJoinBuilderFromRootComposer:
|
|
|
|
|
@ -174,20 +173,20 @@ class $$PartnerEntityTableOrderingComposer
|
|
|
|
|
return composer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
i5.$$UserEntityTableOrderingComposer get sharedWithId {
|
|
|
|
|
final i5.$$UserEntityTableOrderingComposer composer = $composerBuilder(
|
|
|
|
|
i4.$$UserEntityTableOrderingComposer get sharedWithId {
|
|
|
|
|
final i4.$$UserEntityTableOrderingComposer composer = $composerBuilder(
|
|
|
|
|
composer: this,
|
|
|
|
|
getCurrentColumn: (t) => t.sharedWithId,
|
|
|
|
|
referencedTable: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
referencedTable: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
getReferencedColumn: (t) => t.id,
|
|
|
|
|
builder: (joinBuilder,
|
|
|
|
|
{$addJoinBuilderToRootComposer,
|
|
|
|
|
$removeJoinBuilderFromRootComposer}) =>
|
|
|
|
|
i5.$$UserEntityTableOrderingComposer(
|
|
|
|
|
i4.$$UserEntityTableOrderingComposer(
|
|
|
|
|
$db: $db,
|
|
|
|
|
$table: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
$table: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
$addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer,
|
|
|
|
|
joinBuilder: joinBuilder,
|
|
|
|
|
$removeJoinBuilderFromRootComposer:
|
|
|
|
|
@ -209,20 +208,20 @@ class $$PartnerEntityTableAnnotationComposer
|
|
|
|
|
i0.GeneratedColumn<bool> get inTimeline => $composableBuilder(
|
|
|
|
|
column: $table.inTimeline, builder: (column) => column);
|
|
|
|
|
|
|
|
|
|
i5.$$UserEntityTableAnnotationComposer get sharedById {
|
|
|
|
|
final i5.$$UserEntityTableAnnotationComposer composer = $composerBuilder(
|
|
|
|
|
i4.$$UserEntityTableAnnotationComposer get sharedById {
|
|
|
|
|
final i4.$$UserEntityTableAnnotationComposer composer = $composerBuilder(
|
|
|
|
|
composer: this,
|
|
|
|
|
getCurrentColumn: (t) => t.sharedById,
|
|
|
|
|
referencedTable: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
referencedTable: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
getReferencedColumn: (t) => t.id,
|
|
|
|
|
builder: (joinBuilder,
|
|
|
|
|
{$addJoinBuilderToRootComposer,
|
|
|
|
|
$removeJoinBuilderFromRootComposer}) =>
|
|
|
|
|
i5.$$UserEntityTableAnnotationComposer(
|
|
|
|
|
i4.$$UserEntityTableAnnotationComposer(
|
|
|
|
|
$db: $db,
|
|
|
|
|
$table: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
$table: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
$addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer,
|
|
|
|
|
joinBuilder: joinBuilder,
|
|
|
|
|
$removeJoinBuilderFromRootComposer:
|
|
|
|
|
@ -231,20 +230,20 @@ class $$PartnerEntityTableAnnotationComposer
|
|
|
|
|
return composer;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
i5.$$UserEntityTableAnnotationComposer get sharedWithId {
|
|
|
|
|
final i5.$$UserEntityTableAnnotationComposer composer = $composerBuilder(
|
|
|
|
|
i4.$$UserEntityTableAnnotationComposer get sharedWithId {
|
|
|
|
|
final i4.$$UserEntityTableAnnotationComposer composer = $composerBuilder(
|
|
|
|
|
composer: this,
|
|
|
|
|
getCurrentColumn: (t) => t.sharedWithId,
|
|
|
|
|
referencedTable: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
referencedTable: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
getReferencedColumn: (t) => t.id,
|
|
|
|
|
builder: (joinBuilder,
|
|
|
|
|
{$addJoinBuilderToRootComposer,
|
|
|
|
|
$removeJoinBuilderFromRootComposer}) =>
|
|
|
|
|
i5.$$UserEntityTableAnnotationComposer(
|
|
|
|
|
i4.$$UserEntityTableAnnotationComposer(
|
|
|
|
|
$db: $db,
|
|
|
|
|
$table: i6.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i5.$UserEntityTable>('user_entity'),
|
|
|
|
|
$table: i5.ReadDatabaseContainer($db)
|
|
|
|
|
.resultSet<i4.$UserEntityTable>('user_entity'),
|
|
|
|
|
$addJoinBuilderToRootComposer: $addJoinBuilderToRootComposer,
|
|
|
|
|
joinBuilder: joinBuilder,
|
|
|
|
|
$removeJoinBuilderFromRootComposer:
|
|
|
|
|
@ -278,8 +277,8 @@ class $$PartnerEntityTableTableManager extends i0.RootTableManager<
|
|
|
|
|
createComputedFieldComposer: () =>
|
|
|
|
|
i1.$$PartnerEntityTableAnnotationComposer($db: db, $table: table),
|
|
|
|
|
updateCompanionCallback: ({
|
|
|
|
|
i0.Value<i2.Uint8List> sharedById = const i0.Value.absent(),
|
|
|
|
|
i0.Value<i2.Uint8List> sharedWithId = const i0.Value.absent(),
|
|
|
|
|
i0.Value<String> sharedById = const i0.Value.absent(),
|
|
|
|
|
i0.Value<String> sharedWithId = const i0.Value.absent(),
|
|
|
|
|
i0.Value<bool> inTimeline = const i0.Value.absent(),
|
|
|
|
|
}) =>
|
|
|
|
|
i1.PartnerEntityCompanion(
|
|
|
|
|
@ -288,8 +287,8 @@ class $$PartnerEntityTableTableManager extends i0.RootTableManager<
|
|
|
|
|
inTimeline: inTimeline,
|
|
|
|
|
),
|
|
|
|
|
createCompanionCallback: ({
|
|
|
|
|
required i2.Uint8List sharedById,
|
|
|
|
|
required i2.Uint8List sharedWithId,
|
|
|
|
|
required String sharedById,
|
|
|
|
|
required String sharedWithId,
|
|
|
|
|
i0.Value<bool> inTimeline = const i0.Value.absent(),
|
|
|
|
|
}) =>
|
|
|
|
|
i1.PartnerEntityCompanion.insert(
|
|
|
|
|
@ -366,7 +365,7 @@ typedef $$PartnerEntityTableProcessedTableManager = i0.ProcessedTableManager<
|
|
|
|
|
i1.PartnerEntityData,
|
|
|
|
|
i0.PrefetchHooks Function({bool sharedById, bool sharedWithId})>;
|
|
|
|
|
|
|
|
|
|
class $PartnerEntityTable extends i3.PartnerEntity
|
|
|
|
|
class $PartnerEntityTable extends i2.PartnerEntity
|
|
|
|
|
with i0.TableInfo<$PartnerEntityTable, i1.PartnerEntityData> {
|
|
|
|
|
@override
|
|
|
|
|
final i0.GeneratedDatabase attachedDatabase;
|
|
|
|
|
@ -375,18 +374,18 @@ class $PartnerEntityTable extends i3.PartnerEntity
|
|
|
|
|
static const i0.VerificationMeta _sharedByIdMeta =
|
|
|
|
|
const i0.VerificationMeta('sharedById');
|
|
|
|
|
@override
|
|
|
|
|
late final i0.GeneratedColumn<i2.Uint8List> sharedById =
|
|
|
|
|
i0.GeneratedColumn<i2.Uint8List>('shared_by_id', aliasedName, false,
|
|
|
|
|
type: i0.DriftSqlType.blob,
|
|
|
|
|
late final i0.GeneratedColumn<String> sharedById = i0.GeneratedColumn<String>(
|
|
|
|
|
'shared_by_id', aliasedName, false,
|
|
|
|
|
type: i0.DriftSqlType.string,
|
|
|
|
|
requiredDuringInsert: true,
|
|
|
|
|
defaultConstraints: i0.GeneratedColumn.constraintIsAlways(
|
|
|
|
|
'REFERENCES user_entity (id) ON DELETE CASCADE'));
|
|
|
|
|
static const i0.VerificationMeta _sharedWithIdMeta =
|
|
|
|
|
const i0.VerificationMeta('sharedWithId');
|
|
|
|
|
@override
|
|
|
|
|
late final i0.GeneratedColumn<i2.Uint8List> sharedWithId =
|
|
|
|
|
i0.GeneratedColumn<i2.Uint8List>('shared_with_id', aliasedName, false,
|
|
|
|
|
type: i0.DriftSqlType.blob,
|
|
|
|
|
late final i0.GeneratedColumn<String> sharedWithId =
|
|
|
|
|
i0.GeneratedColumn<String>('shared_with_id', aliasedName, false,
|
|
|
|
|
type: i0.DriftSqlType.string,
|
|
|
|
|
requiredDuringInsert: true,
|
|
|
|
|
defaultConstraints: i0.GeneratedColumn.constraintIsAlways(
|
|
|
|
|
'REFERENCES user_entity (id) ON DELETE CASCADE'));
|
|
|
|
|
@ -399,7 +398,7 @@ class $PartnerEntityTable extends i3.PartnerEntity
|
|
|
|
|
requiredDuringInsert: false,
|
|
|
|
|
defaultConstraints: i0.GeneratedColumn.constraintIsAlways(
|
|
|
|
|
'CHECK ("in_timeline" IN (0, 1))'),
|
|
|
|
|
defaultValue: const i4.Constant(false));
|
|
|
|
|
defaultValue: const i3.Constant(false));
|
|
|
|
|
@override
|
|
|
|
|
List<i0.GeneratedColumn> get $columns =>
|
|
|
|
|
[sharedById, sharedWithId, inTimeline];
|
|
|
|
|
@ -445,10 +444,10 @@ class $PartnerEntityTable extends i3.PartnerEntity
|
|
|
|
|
i1.PartnerEntityData map(Map<String, dynamic> data, {String? tablePrefix}) {
|
|
|
|
|
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';
|
|
|
|
|
return i1.PartnerEntityData(
|
|
|
|
|
sharedById: attachedDatabase.typeMapping
|
|
|
|
|
.read(i0.DriftSqlType.blob, data['${effectivePrefix}shared_by_id'])!,
|
|
|
|
|
sharedById: attachedDatabase.typeMapping.read(
|
|
|
|
|
i0.DriftSqlType.string, data['${effectivePrefix}shared_by_id'])!,
|
|
|
|
|
sharedWithId: attachedDatabase.typeMapping.read(
|
|
|
|
|
i0.DriftSqlType.blob, data['${effectivePrefix}shared_with_id'])!,
|
|
|
|
|
i0.DriftSqlType.string, data['${effectivePrefix}shared_with_id'])!,
|
|
|
|
|
inTimeline: attachedDatabase.typeMapping
|
|
|
|
|
.read(i0.DriftSqlType.bool, data['${effectivePrefix}in_timeline'])!,
|
|
|
|
|
);
|
|
|
|
|
@ -467,8 +466,8 @@ class $PartnerEntityTable extends i3.PartnerEntity
|
|
|
|
|
|
|
|
|
|
class PartnerEntityData extends i0.DataClass
|
|
|
|
|
implements i0.Insertable<i1.PartnerEntityData> {
|
|
|
|
|
final i2.Uint8List sharedById;
|
|
|
|
|
final i2.Uint8List sharedWithId;
|
|
|
|
|
final String sharedById;
|
|
|
|
|
final String sharedWithId;
|
|
|
|
|
final bool inTimeline;
|
|
|
|
|
const PartnerEntityData(
|
|
|
|
|
{required this.sharedById,
|
|
|
|
|
@ -477,8 +476,8 @@ class PartnerEntityData extends i0.DataClass
|
|
|
|
|
@override
|
|
|
|
|
Map<String, i0.Expression> toColumns(bool nullToAbsent) {
|
|
|
|
|
final map = <String, i0.Expression>{};
|
|
|
|
|
map['shared_by_id'] = i0.Variable<i2.Uint8List>(sharedById);
|
|
|
|
|
map['shared_with_id'] = i0.Variable<i2.Uint8List>(sharedWithId);
|
|
|
|
|
map['shared_by_id'] = i0.Variable<String>(sharedById);
|
|
|
|
|
map['shared_with_id'] = i0.Variable<String>(sharedWithId);
|
|
|
|
|
map['in_timeline'] = i0.Variable<bool>(inTimeline);
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
@ -487,8 +486,8 @@ class PartnerEntityData extends i0.DataClass
|
|
|
|
|
{i0.ValueSerializer? serializer}) {
|
|
|
|
|
serializer ??= i0.driftRuntimeOptions.defaultSerializer;
|
|
|
|
|
return PartnerEntityData(
|
|
|
|
|
sharedById: serializer.fromJson<i2.Uint8List>(json['sharedById']),
|
|
|
|
|
sharedWithId: serializer.fromJson<i2.Uint8List>(json['sharedWithId']),
|
|
|
|
|
sharedById: serializer.fromJson<String>(json['sharedById']),
|
|
|
|
|
sharedWithId: serializer.fromJson<String>(json['sharedWithId']),
|
|
|
|
|
inTimeline: serializer.fromJson<bool>(json['inTimeline']),
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
@ -496,16 +495,14 @@ class PartnerEntityData extends i0.DataClass
|
|
|
|
|
Map<String, dynamic> toJson({i0.ValueSerializer? serializer}) {
|
|
|
|
|
serializer ??= i0.driftRuntimeOptions.defaultSerializer;
|
|
|
|
|
return <String, dynamic>{
|
|
|
|
|
'sharedById': serializer.toJson<i2.Uint8List>(sharedById),
|
|
|
|
|
'sharedWithId': serializer.toJson<i2.Uint8List>(sharedWithId),
|
|
|
|
|
'sharedById': serializer.toJson<String>(sharedById),
|
|
|
|
|
'sharedWithId': serializer.toJson<String>(sharedWithId),
|
|
|
|
|
'inTimeline': serializer.toJson<bool>(inTimeline),
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
i1.PartnerEntityData copyWith(
|
|
|
|
|
{i2.Uint8List? sharedById,
|
|
|
|
|
i2.Uint8List? sharedWithId,
|
|
|
|
|
bool? inTimeline}) =>
|
|
|
|
|
{String? sharedById, String? sharedWithId, bool? inTimeline}) =>
|
|
|
|
|
i1.PartnerEntityData(
|
|
|
|
|
sharedById: sharedById ?? this.sharedById,
|
|
|
|
|
sharedWithId: sharedWithId ?? this.sharedWithId,
|
|
|
|
|
@ -534,20 +531,19 @@ class PartnerEntityData extends i0.DataClass
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@override
|
|
|
|
|
int get hashCode => Object.hash(i0.$driftBlobEquality.hash(sharedById),
|
|
|
|
|
i0.$driftBlobEquality.hash(sharedWithId), inTimeline);
|
|
|
|
|
int get hashCode => Object.hash(sharedById, sharedWithId, inTimeline);
|
|
|
|
|
@override
|
|
|
|
|
bool operator ==(Object other) =>
|
|
|
|
|
identical(this, other) ||
|
|
|
|
|
(other is i1.PartnerEntityData &&
|
|
|
|
|
i0.$driftBlobEquality.equals(other.sharedById, this.sharedById) &&
|
|
|
|
|
i0.$driftBlobEquality.equals(other.sharedWithId, this.sharedWithId) &&
|
|
|
|
|
other.sharedById == this.sharedById &&
|
|
|
|
|
other.sharedWithId == this.sharedWithId &&
|
|
|
|
|
other.inTimeline == this.inTimeline);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class PartnerEntityCompanion extends i0.UpdateCompanion<i1.PartnerEntityData> {
|
|
|
|
|
final i0.Value<i2.Uint8List> sharedById;
|
|
|
|
|
final i0.Value<i2.Uint8List> sharedWithId;
|
|
|
|
|
final i0.Value<String> sharedById;
|
|
|
|
|
final i0.Value<String> sharedWithId;
|
|
|
|
|
final i0.Value<bool> inTimeline;
|
|
|
|
|
const PartnerEntityCompanion({
|
|
|
|
|
this.sharedById = const i0.Value.absent(),
|
|
|
|
|
@ -555,14 +551,14 @@ class PartnerEntityCompanion extends i0.UpdateCompanion<i1.PartnerEntityData> {
|
|
|
|
|
this.inTimeline = const i0.Value.absent(),
|
|
|
|
|
});
|
|
|
|
|
PartnerEntityCompanion.insert({
|
|
|
|
|
required i2.Uint8List sharedById,
|
|
|
|
|
required i2.Uint8List sharedWithId,
|
|
|
|
|
required String sharedById,
|
|
|
|
|
required String sharedWithId,
|
|
|
|
|
this.inTimeline = const i0.Value.absent(),
|
|
|
|
|
}) : sharedById = i0.Value(sharedById),
|
|
|
|
|
sharedWithId = i0.Value(sharedWithId);
|
|
|
|
|
static i0.Insertable<i1.PartnerEntityData> custom({
|
|
|
|
|
i0.Expression<i2.Uint8List>? sharedById,
|
|
|
|
|
i0.Expression<i2.Uint8List>? sharedWithId,
|
|
|
|
|
i0.Expression<String>? sharedById,
|
|
|
|
|
i0.Expression<String>? sharedWithId,
|
|
|
|
|
i0.Expression<bool>? inTimeline,
|
|
|
|
|
}) {
|
|
|
|
|
return i0.RawValuesInsertable({
|
|
|
|
|
@ -573,8 +569,8 @@ class PartnerEntityCompanion extends i0.UpdateCompanion<i1.PartnerEntityData> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
i1.PartnerEntityCompanion copyWith(
|
|
|
|
|
{i0.Value<i2.Uint8List>? sharedById,
|
|
|
|
|
i0.Value<i2.Uint8List>? sharedWithId,
|
|
|
|
|
{i0.Value<String>? sharedById,
|
|
|
|
|
i0.Value<String>? sharedWithId,
|
|
|
|
|
i0.Value<bool>? inTimeline}) {
|
|
|
|
|
return i1.PartnerEntityCompanion(
|
|
|
|
|
sharedById: sharedById ?? this.sharedById,
|
|
|
|
|
@ -587,10 +583,10 @@ class PartnerEntityCompanion extends i0.UpdateCompanion<i1.PartnerEntityData> {
|
|
|
|
|
Map<String, i0.Expression> toColumns(bool nullToAbsent) {
|
|
|
|
|
final map = <String, i0.Expression>{};
|
|
|
|
|
if (sharedById.present) {
|
|
|
|
|
map['shared_by_id'] = i0.Variable<i2.Uint8List>(sharedById.value);
|
|
|
|
|
map['shared_by_id'] = i0.Variable<String>(sharedById.value);
|
|
|
|
|
}
|
|
|
|
|
if (sharedWithId.present) {
|
|
|
|
|
map['shared_with_id'] = i0.Variable<i2.Uint8List>(sharedWithId.value);
|
|
|
|
|
map['shared_with_id'] = i0.Variable<String>(sharedWithId.value);
|
|
|
|
|
}
|
|
|
|
|
if (inTimeline.present) {
|
|
|
|
|
map['in_timeline'] = i0.Variable<bool>(inTimeline.value);
|
|
|
|
|
|