// GENERATED CODE - DO NOT MODIFY BY HAND part of 'database.dart'; // ignore_for_file: type=lint class $SnLocalChatChannelTable extends SnLocalChatChannel with TableInfo<$SnLocalChatChannelTable, SnLocalChatChannelData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $SnLocalChatChannelTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _aliasMeta = const VerificationMeta('alias'); @override late final GeneratedColumn alias = GeneratedColumn( 'alias', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _contentMeta = const VerificationMeta('content'); @override late final GeneratedColumnWithTypeConverter content = GeneratedColumn('content', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter($SnLocalChatChannelTable.$convertercontent); static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', aliasedName, false, type: DriftSqlType.dateTime, requiredDuringInsert: false, defaultValue: currentDateAndTime); @override List get $columns => [id, alias, content, createdAt]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'sn_local_chat_channel'; @override VerificationContext validateIntegrity( Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); } if (data.containsKey('alias')) { context.handle( _aliasMeta, alias.isAcceptableOrUnknown(data['alias']!, _aliasMeta)); } else if (isInserting) { context.missing(_aliasMeta); } context.handle(_contentMeta, const VerificationResult.success()); if (data.containsKey('created_at')) { context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } return context; } @override Set get $primaryKey => {id}; @override SnLocalChatChannelData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return SnLocalChatChannelData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, alias: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}alias'])!, content: $SnLocalChatChannelTable.$convertercontent.fromSql( attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}content'])!), createdAt: attachedDatabase.typeMapping .read(DriftSqlType.dateTime, data['${effectivePrefix}created_at'])!, ); } @override $SnLocalChatChannelTable createAlias(String alias) { return $SnLocalChatChannelTable(attachedDatabase, alias); } static JsonTypeConverter2> $convertercontent = const SnChannelConverter(); } class SnLocalChatChannelData extends DataClass implements Insertable { final int id; final String alias; final SnChannel content; final DateTime createdAt; const SnLocalChatChannelData( {required this.id, required this.alias, required this.content, required this.createdAt}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['alias'] = Variable(alias); { map['content'] = Variable( $SnLocalChatChannelTable.$convertercontent.toSql(content)); } map['created_at'] = Variable(createdAt); return map; } SnLocalChatChannelCompanion toCompanion(bool nullToAbsent) { return SnLocalChatChannelCompanion( id: Value(id), alias: Value(alias), content: Value(content), createdAt: Value(createdAt), ); } factory SnLocalChatChannelData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return SnLocalChatChannelData( id: serializer.fromJson(json['id']), alias: serializer.fromJson(json['alias']), content: $SnLocalChatChannelTable.$convertercontent .fromJson(serializer.fromJson>(json['content'])), createdAt: serializer.fromJson(json['createdAt']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'alias': serializer.toJson(alias), 'content': serializer.toJson>( $SnLocalChatChannelTable.$convertercontent.toJson(content)), 'createdAt': serializer.toJson(createdAt), }; } SnLocalChatChannelData copyWith( {int? id, String? alias, SnChannel? content, DateTime? createdAt}) => SnLocalChatChannelData( id: id ?? this.id, alias: alias ?? this.alias, content: content ?? this.content, createdAt: createdAt ?? this.createdAt, ); SnLocalChatChannelData copyWithCompanion(SnLocalChatChannelCompanion data) { return SnLocalChatChannelData( id: data.id.present ? data.id.value : this.id, alias: data.alias.present ? data.alias.value : this.alias, content: data.content.present ? data.content.value : this.content, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, ); } @override String toString() { return (StringBuffer('SnLocalChatChannelData(') ..write('id: $id, ') ..write('alias: $alias, ') ..write('content: $content, ') ..write('createdAt: $createdAt') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, alias, content, createdAt); @override bool operator ==(Object other) => identical(this, other) || (other is SnLocalChatChannelData && other.id == this.id && other.alias == this.alias && other.content == this.content && other.createdAt == this.createdAt); } class SnLocalChatChannelCompanion extends UpdateCompanion { final Value id; final Value alias; final Value content; final Value createdAt; const SnLocalChatChannelCompanion({ this.id = const Value.absent(), this.alias = const Value.absent(), this.content = const Value.absent(), this.createdAt = const Value.absent(), }); SnLocalChatChannelCompanion.insert({ this.id = const Value.absent(), required String alias, required SnChannel content, this.createdAt = const Value.absent(), }) : alias = Value(alias), content = Value(content); static Insertable custom({ Expression? id, Expression? alias, Expression? content, Expression? createdAt, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (alias != null) 'alias': alias, if (content != null) 'content': content, if (createdAt != null) 'created_at': createdAt, }); } SnLocalChatChannelCompanion copyWith( {Value? id, Value? alias, Value? content, Value? createdAt}) { return SnLocalChatChannelCompanion( id: id ?? this.id, alias: alias ?? this.alias, content: content ?? this.content, createdAt: createdAt ?? this.createdAt, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (alias.present) { map['alias'] = Variable(alias.value); } if (content.present) { map['content'] = Variable( $SnLocalChatChannelTable.$convertercontent.toSql(content.value)); } if (createdAt.present) { map['created_at'] = Variable(createdAt.value); } return map; } @override String toString() { return (StringBuffer('SnLocalChatChannelCompanion(') ..write('id: $id, ') ..write('alias: $alias, ') ..write('content: $content, ') ..write('createdAt: $createdAt') ..write(')')) .toString(); } } class $SnLocalChatMessageTable extends SnLocalChatMessage with TableInfo<$SnLocalChatMessageTable, SnLocalChatMessageData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $SnLocalChatMessageTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, hasAutoIncrement: true, type: DriftSqlType.int, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('PRIMARY KEY AUTOINCREMENT')); static const VerificationMeta _channelIdMeta = const VerificationMeta('channelId'); @override late final GeneratedColumn channelId = GeneratedColumn( 'channel_id', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true); static const VerificationMeta _contentMeta = const VerificationMeta('content'); @override late final GeneratedColumnWithTypeConverter content = GeneratedColumn('content', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true) .withConverter( $SnLocalChatMessageTable.$convertercontent); static const VerificationMeta _createdAtMeta = const VerificationMeta('createdAt'); @override late final GeneratedColumn createdAt = GeneratedColumn( 'created_at', aliasedName, false, type: DriftSqlType.dateTime, requiredDuringInsert: false, defaultValue: currentDateAndTime); @override List get $columns => [id, channelId, content, createdAt]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'sn_local_chat_message'; @override VerificationContext validateIntegrity( Insertable instance, {bool isInserting = false}) { final context = VerificationContext(); final data = instance.toColumns(true); if (data.containsKey('id')) { context.handle(_idMeta, id.isAcceptableOrUnknown(data['id']!, _idMeta)); } if (data.containsKey('channel_id')) { context.handle(_channelIdMeta, channelId.isAcceptableOrUnknown(data['channel_id']!, _channelIdMeta)); } else if (isInserting) { context.missing(_channelIdMeta); } context.handle(_contentMeta, const VerificationResult.success()); if (data.containsKey('created_at')) { context.handle(_createdAtMeta, createdAt.isAcceptableOrUnknown(data['created_at']!, _createdAtMeta)); } return context; } @override Set get $primaryKey => {id}; @override SnLocalChatMessageData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return SnLocalChatMessageData( id: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}id'])!, channelId: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}channel_id'])!, content: $SnLocalChatMessageTable.$convertercontent.fromSql( attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}content'])!), createdAt: attachedDatabase.typeMapping .read(DriftSqlType.dateTime, data['${effectivePrefix}created_at'])!, ); } @override $SnLocalChatMessageTable createAlias(String alias) { return $SnLocalChatMessageTable(attachedDatabase, alias); } static JsonTypeConverter2> $convertercontent = const SnMessageConverter(); } class SnLocalChatMessageData extends DataClass implements Insertable { final int id; final int channelId; final SnChatMessage content; final DateTime createdAt; const SnLocalChatMessageData( {required this.id, required this.channelId, required this.content, required this.createdAt}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['channel_id'] = Variable(channelId); { map['content'] = Variable( $SnLocalChatMessageTable.$convertercontent.toSql(content)); } map['created_at'] = Variable(createdAt); return map; } SnLocalChatMessageCompanion toCompanion(bool nullToAbsent) { return SnLocalChatMessageCompanion( id: Value(id), channelId: Value(channelId), content: Value(content), createdAt: Value(createdAt), ); } factory SnLocalChatMessageData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return SnLocalChatMessageData( id: serializer.fromJson(json['id']), channelId: serializer.fromJson(json['channelId']), content: $SnLocalChatMessageTable.$convertercontent .fromJson(serializer.fromJson>(json['content'])), createdAt: serializer.fromJson(json['createdAt']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'channelId': serializer.toJson(channelId), 'content': serializer.toJson>( $SnLocalChatMessageTable.$convertercontent.toJson(content)), 'createdAt': serializer.toJson(createdAt), }; } SnLocalChatMessageData copyWith( {int? id, int? channelId, SnChatMessage? content, DateTime? createdAt}) => SnLocalChatMessageData( id: id ?? this.id, channelId: channelId ?? this.channelId, content: content ?? this.content, createdAt: createdAt ?? this.createdAt, ); SnLocalChatMessageData copyWithCompanion(SnLocalChatMessageCompanion data) { return SnLocalChatMessageData( id: data.id.present ? data.id.value : this.id, channelId: data.channelId.present ? data.channelId.value : this.channelId, content: data.content.present ? data.content.value : this.content, createdAt: data.createdAt.present ? data.createdAt.value : this.createdAt, ); } @override String toString() { return (StringBuffer('SnLocalChatMessageData(') ..write('id: $id, ') ..write('channelId: $channelId, ') ..write('content: $content, ') ..write('createdAt: $createdAt') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, channelId, content, createdAt); @override bool operator ==(Object other) => identical(this, other) || (other is SnLocalChatMessageData && other.id == this.id && other.channelId == this.channelId && other.content == this.content && other.createdAt == this.createdAt); } class SnLocalChatMessageCompanion extends UpdateCompanion { final Value id; final Value channelId; final Value content; final Value createdAt; const SnLocalChatMessageCompanion({ this.id = const Value.absent(), this.channelId = const Value.absent(), this.content = const Value.absent(), this.createdAt = const Value.absent(), }); SnLocalChatMessageCompanion.insert({ this.id = const Value.absent(), required int channelId, required SnChatMessage content, this.createdAt = const Value.absent(), }) : channelId = Value(channelId), content = Value(content); static Insertable custom({ Expression? id, Expression? channelId, Expression? content, Expression? createdAt, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (channelId != null) 'channel_id': channelId, if (content != null) 'content': content, if (createdAt != null) 'created_at': createdAt, }); } SnLocalChatMessageCompanion copyWith( {Value? id, Value? channelId, Value? content, Value? createdAt}) { return SnLocalChatMessageCompanion( id: id ?? this.id, channelId: channelId ?? this.channelId, content: content ?? this.content, createdAt: createdAt ?? this.createdAt, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (channelId.present) { map['channel_id'] = Variable(channelId.value); } if (content.present) { map['content'] = Variable( $SnLocalChatMessageTable.$convertercontent.toSql(content.value)); } if (createdAt.present) { map['created_at'] = Variable(createdAt.value); } return map; } @override String toString() { return (StringBuffer('SnLocalChatMessageCompanion(') ..write('id: $id, ') ..write('channelId: $channelId, ') ..write('content: $content, ') ..write('createdAt: $createdAt') ..write(')')) .toString(); } } class $SnLocalKeyPairTable extends SnLocalKeyPair with TableInfo<$SnLocalKeyPairTable, SnLocalKeyPairData> { @override final GeneratedDatabase attachedDatabase; final String? _alias; $SnLocalKeyPairTable(this.attachedDatabase, [this._alias]); static const VerificationMeta _idMeta = const VerificationMeta('id'); @override late final GeneratedColumn id = GeneratedColumn( 'id', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _accountIdMeta = const VerificationMeta('accountId'); @override late final GeneratedColumn accountId = GeneratedColumn( 'account_id', aliasedName, false, type: DriftSqlType.int, requiredDuringInsert: true); static const VerificationMeta _publicKeyMeta = const VerificationMeta('publicKey'); @override late final GeneratedColumn publicKey = GeneratedColumn( 'public_key', aliasedName, false, type: DriftSqlType.string, requiredDuringInsert: true); static const VerificationMeta _privateKeyMeta = const VerificationMeta('privateKey'); @override late final GeneratedColumn privateKey = GeneratedColumn( 'private_key', aliasedName, true, type: DriftSqlType.string, requiredDuringInsert: false); static const VerificationMeta _isActiveMeta = const VerificationMeta('isActive'); @override late final GeneratedColumn isActive = GeneratedColumn( 'is_active', aliasedName, false, type: DriftSqlType.bool, requiredDuringInsert: false, defaultConstraints: GeneratedColumn.constraintIsAlways('CHECK ("is_active" IN (0, 1))'), defaultValue: Constant(false)); @override List get $columns => [id, accountId, publicKey, privateKey, isActive]; @override String get aliasedName => _alias ?? actualTableName; @override String get actualTableName => $name; static const String $name = 'sn_local_key_pair'; @override VerificationContext validateIntegrity(Insertable 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('account_id')) { context.handle(_accountIdMeta, accountId.isAcceptableOrUnknown(data['account_id']!, _accountIdMeta)); } else if (isInserting) { context.missing(_accountIdMeta); } if (data.containsKey('public_key')) { context.handle(_publicKeyMeta, publicKey.isAcceptableOrUnknown(data['public_key']!, _publicKeyMeta)); } else if (isInserting) { context.missing(_publicKeyMeta); } if (data.containsKey('private_key')) { context.handle( _privateKeyMeta, privateKey.isAcceptableOrUnknown( data['private_key']!, _privateKeyMeta)); } if (data.containsKey('is_active')) { context.handle(_isActiveMeta, isActive.isAcceptableOrUnknown(data['is_active']!, _isActiveMeta)); } return context; } @override Set get $primaryKey => {id}; @override SnLocalKeyPairData map(Map data, {String? tablePrefix}) { final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : ''; return SnLocalKeyPairData( id: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}id'])!, accountId: attachedDatabase.typeMapping .read(DriftSqlType.int, data['${effectivePrefix}account_id'])!, publicKey: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}public_key'])!, privateKey: attachedDatabase.typeMapping .read(DriftSqlType.string, data['${effectivePrefix}private_key']), isActive: attachedDatabase.typeMapping .read(DriftSqlType.bool, data['${effectivePrefix}is_active'])!, ); } @override $SnLocalKeyPairTable createAlias(String alias) { return $SnLocalKeyPairTable(attachedDatabase, alias); } } class SnLocalKeyPairData extends DataClass implements Insertable { final String id; final int accountId; final String publicKey; final String? privateKey; final bool isActive; const SnLocalKeyPairData( {required this.id, required this.accountId, required this.publicKey, this.privateKey, required this.isActive}); @override Map toColumns(bool nullToAbsent) { final map = {}; map['id'] = Variable(id); map['account_id'] = Variable(accountId); map['public_key'] = Variable(publicKey); if (!nullToAbsent || privateKey != null) { map['private_key'] = Variable(privateKey); } map['is_active'] = Variable(isActive); return map; } SnLocalKeyPairCompanion toCompanion(bool nullToAbsent) { return SnLocalKeyPairCompanion( id: Value(id), accountId: Value(accountId), publicKey: Value(publicKey), privateKey: privateKey == null && nullToAbsent ? const Value.absent() : Value(privateKey), isActive: Value(isActive), ); } factory SnLocalKeyPairData.fromJson(Map json, {ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return SnLocalKeyPairData( id: serializer.fromJson(json['id']), accountId: serializer.fromJson(json['accountId']), publicKey: serializer.fromJson(json['publicKey']), privateKey: serializer.fromJson(json['privateKey']), isActive: serializer.fromJson(json['isActive']), ); } @override Map toJson({ValueSerializer? serializer}) { serializer ??= driftRuntimeOptions.defaultSerializer; return { 'id': serializer.toJson(id), 'accountId': serializer.toJson(accountId), 'publicKey': serializer.toJson(publicKey), 'privateKey': serializer.toJson(privateKey), 'isActive': serializer.toJson(isActive), }; } SnLocalKeyPairData copyWith( {String? id, int? accountId, String? publicKey, Value privateKey = const Value.absent(), bool? isActive}) => SnLocalKeyPairData( id: id ?? this.id, accountId: accountId ?? this.accountId, publicKey: publicKey ?? this.publicKey, privateKey: privateKey.present ? privateKey.value : this.privateKey, isActive: isActive ?? this.isActive, ); SnLocalKeyPairData copyWithCompanion(SnLocalKeyPairCompanion data) { return SnLocalKeyPairData( id: data.id.present ? data.id.value : this.id, accountId: data.accountId.present ? data.accountId.value : this.accountId, publicKey: data.publicKey.present ? data.publicKey.value : this.publicKey, privateKey: data.privateKey.present ? data.privateKey.value : this.privateKey, isActive: data.isActive.present ? data.isActive.value : this.isActive, ); } @override String toString() { return (StringBuffer('SnLocalKeyPairData(') ..write('id: $id, ') ..write('accountId: $accountId, ') ..write('publicKey: $publicKey, ') ..write('privateKey: $privateKey, ') ..write('isActive: $isActive') ..write(')')) .toString(); } @override int get hashCode => Object.hash(id, accountId, publicKey, privateKey, isActive); @override bool operator ==(Object other) => identical(this, other) || (other is SnLocalKeyPairData && other.id == this.id && other.accountId == this.accountId && other.publicKey == this.publicKey && other.privateKey == this.privateKey && other.isActive == this.isActive); } class SnLocalKeyPairCompanion extends UpdateCompanion { final Value id; final Value accountId; final Value publicKey; final Value privateKey; final Value isActive; final Value rowid; const SnLocalKeyPairCompanion({ this.id = const Value.absent(), this.accountId = const Value.absent(), this.publicKey = const Value.absent(), this.privateKey = const Value.absent(), this.isActive = const Value.absent(), this.rowid = const Value.absent(), }); SnLocalKeyPairCompanion.insert({ required String id, required int accountId, required String publicKey, this.privateKey = const Value.absent(), this.isActive = const Value.absent(), this.rowid = const Value.absent(), }) : id = Value(id), accountId = Value(accountId), publicKey = Value(publicKey); static Insertable custom({ Expression? id, Expression? accountId, Expression? publicKey, Expression? privateKey, Expression? isActive, Expression? rowid, }) { return RawValuesInsertable({ if (id != null) 'id': id, if (accountId != null) 'account_id': accountId, if (publicKey != null) 'public_key': publicKey, if (privateKey != null) 'private_key': privateKey, if (isActive != null) 'is_active': isActive, if (rowid != null) 'rowid': rowid, }); } SnLocalKeyPairCompanion copyWith( {Value? id, Value? accountId, Value? publicKey, Value? privateKey, Value? isActive, Value? rowid}) { return SnLocalKeyPairCompanion( id: id ?? this.id, accountId: accountId ?? this.accountId, publicKey: publicKey ?? this.publicKey, privateKey: privateKey ?? this.privateKey, isActive: isActive ?? this.isActive, rowid: rowid ?? this.rowid, ); } @override Map toColumns(bool nullToAbsent) { final map = {}; if (id.present) { map['id'] = Variable(id.value); } if (accountId.present) { map['account_id'] = Variable(accountId.value); } if (publicKey.present) { map['public_key'] = Variable(publicKey.value); } if (privateKey.present) { map['private_key'] = Variable(privateKey.value); } if (isActive.present) { map['is_active'] = Variable(isActive.value); } if (rowid.present) { map['rowid'] = Variable(rowid.value); } return map; } @override String toString() { return (StringBuffer('SnLocalKeyPairCompanion(') ..write('id: $id, ') ..write('accountId: $accountId, ') ..write('publicKey: $publicKey, ') ..write('privateKey: $privateKey, ') ..write('isActive: $isActive, ') ..write('rowid: $rowid') ..write(')')) .toString(); } } abstract class _$AppDatabase extends GeneratedDatabase { _$AppDatabase(QueryExecutor e) : super(e); $AppDatabaseManager get managers => $AppDatabaseManager(this); late final $SnLocalChatChannelTable snLocalChatChannel = $SnLocalChatChannelTable(this); late final $SnLocalChatMessageTable snLocalChatMessage = $SnLocalChatMessageTable(this); late final $SnLocalKeyPairTable snLocalKeyPair = $SnLocalKeyPairTable(this); @override Iterable> get allTables => allSchemaEntities.whereType>(); @override List get allSchemaEntities => [snLocalChatChannel, snLocalChatMessage, snLocalKeyPair]; } typedef $$SnLocalChatChannelTableCreateCompanionBuilder = SnLocalChatChannelCompanion Function({ Value id, required String alias, required SnChannel content, Value createdAt, }); typedef $$SnLocalChatChannelTableUpdateCompanionBuilder = SnLocalChatChannelCompanion Function({ Value id, Value alias, Value content, Value createdAt, }); class $$SnLocalChatChannelTableFilterComposer extends Composer<_$AppDatabase, $SnLocalChatChannelTable> { $$SnLocalChatChannelTableFilterComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( column: $table.id, builder: (column) => ColumnFilters(column)); ColumnFilters get alias => $composableBuilder( column: $table.alias, builder: (column) => ColumnFilters(column)); ColumnWithTypeConverterFilters get content => $composableBuilder( column: $table.content, builder: (column) => ColumnWithTypeConverterFilters(column)); ColumnFilters get createdAt => $composableBuilder( column: $table.createdAt, builder: (column) => ColumnFilters(column)); } class $$SnLocalChatChannelTableOrderingComposer extends Composer<_$AppDatabase, $SnLocalChatChannelTable> { $$SnLocalChatChannelTableOrderingComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( column: $table.id, builder: (column) => ColumnOrderings(column)); ColumnOrderings get alias => $composableBuilder( column: $table.alias, builder: (column) => ColumnOrderings(column)); ColumnOrderings get content => $composableBuilder( column: $table.content, builder: (column) => ColumnOrderings(column)); ColumnOrderings get createdAt => $composableBuilder( column: $table.createdAt, builder: (column) => ColumnOrderings(column)); } class $$SnLocalChatChannelTableAnnotationComposer extends Composer<_$AppDatabase, $SnLocalChatChannelTable> { $$SnLocalChatChannelTableAnnotationComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumn get alias => $composableBuilder(column: $table.alias, builder: (column) => column); GeneratedColumnWithTypeConverter get content => $composableBuilder(column: $table.content, builder: (column) => column); GeneratedColumn get createdAt => $composableBuilder(column: $table.createdAt, builder: (column) => column); } class $$SnLocalChatChannelTableTableManager extends RootTableManager< _$AppDatabase, $SnLocalChatChannelTable, SnLocalChatChannelData, $$SnLocalChatChannelTableFilterComposer, $$SnLocalChatChannelTableOrderingComposer, $$SnLocalChatChannelTableAnnotationComposer, $$SnLocalChatChannelTableCreateCompanionBuilder, $$SnLocalChatChannelTableUpdateCompanionBuilder, ( SnLocalChatChannelData, BaseReferences<_$AppDatabase, $SnLocalChatChannelTable, SnLocalChatChannelData> ), SnLocalChatChannelData, PrefetchHooks Function()> { $$SnLocalChatChannelTableTableManager( _$AppDatabase db, $SnLocalChatChannelTable table) : super(TableManagerState( db: db, table: table, createFilteringComposer: () => $$SnLocalChatChannelTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$SnLocalChatChannelTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$SnLocalChatChannelTableAnnotationComposer( $db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), Value alias = const Value.absent(), Value content = const Value.absent(), Value createdAt = const Value.absent(), }) => SnLocalChatChannelCompanion( id: id, alias: alias, content: content, createdAt: createdAt, ), createCompanionCallback: ({ Value id = const Value.absent(), required String alias, required SnChannel content, Value createdAt = const Value.absent(), }) => SnLocalChatChannelCompanion.insert( id: id, alias: alias, content: content, createdAt: createdAt, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$SnLocalChatChannelTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $SnLocalChatChannelTable, SnLocalChatChannelData, $$SnLocalChatChannelTableFilterComposer, $$SnLocalChatChannelTableOrderingComposer, $$SnLocalChatChannelTableAnnotationComposer, $$SnLocalChatChannelTableCreateCompanionBuilder, $$SnLocalChatChannelTableUpdateCompanionBuilder, ( SnLocalChatChannelData, BaseReferences<_$AppDatabase, $SnLocalChatChannelTable, SnLocalChatChannelData> ), SnLocalChatChannelData, PrefetchHooks Function()>; typedef $$SnLocalChatMessageTableCreateCompanionBuilder = SnLocalChatMessageCompanion Function({ Value id, required int channelId, required SnChatMessage content, Value createdAt, }); typedef $$SnLocalChatMessageTableUpdateCompanionBuilder = SnLocalChatMessageCompanion Function({ Value id, Value channelId, Value content, Value createdAt, }); class $$SnLocalChatMessageTableFilterComposer extends Composer<_$AppDatabase, $SnLocalChatMessageTable> { $$SnLocalChatMessageTableFilterComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( column: $table.id, builder: (column) => ColumnFilters(column)); ColumnFilters get channelId => $composableBuilder( column: $table.channelId, builder: (column) => ColumnFilters(column)); ColumnWithTypeConverterFilters get content => $composableBuilder( column: $table.content, builder: (column) => ColumnWithTypeConverterFilters(column)); ColumnFilters get createdAt => $composableBuilder( column: $table.createdAt, builder: (column) => ColumnFilters(column)); } class $$SnLocalChatMessageTableOrderingComposer extends Composer<_$AppDatabase, $SnLocalChatMessageTable> { $$SnLocalChatMessageTableOrderingComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( column: $table.id, builder: (column) => ColumnOrderings(column)); ColumnOrderings get channelId => $composableBuilder( column: $table.channelId, builder: (column) => ColumnOrderings(column)); ColumnOrderings get content => $composableBuilder( column: $table.content, builder: (column) => ColumnOrderings(column)); ColumnOrderings get createdAt => $composableBuilder( column: $table.createdAt, builder: (column) => ColumnOrderings(column)); } class $$SnLocalChatMessageTableAnnotationComposer extends Composer<_$AppDatabase, $SnLocalChatMessageTable> { $$SnLocalChatMessageTableAnnotationComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumn get channelId => $composableBuilder(column: $table.channelId, builder: (column) => column); GeneratedColumnWithTypeConverter get content => $composableBuilder(column: $table.content, builder: (column) => column); GeneratedColumn get createdAt => $composableBuilder(column: $table.createdAt, builder: (column) => column); } class $$SnLocalChatMessageTableTableManager extends RootTableManager< _$AppDatabase, $SnLocalChatMessageTable, SnLocalChatMessageData, $$SnLocalChatMessageTableFilterComposer, $$SnLocalChatMessageTableOrderingComposer, $$SnLocalChatMessageTableAnnotationComposer, $$SnLocalChatMessageTableCreateCompanionBuilder, $$SnLocalChatMessageTableUpdateCompanionBuilder, ( SnLocalChatMessageData, BaseReferences<_$AppDatabase, $SnLocalChatMessageTable, SnLocalChatMessageData> ), SnLocalChatMessageData, PrefetchHooks Function()> { $$SnLocalChatMessageTableTableManager( _$AppDatabase db, $SnLocalChatMessageTable table) : super(TableManagerState( db: db, table: table, createFilteringComposer: () => $$SnLocalChatMessageTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$SnLocalChatMessageTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$SnLocalChatMessageTableAnnotationComposer( $db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), Value channelId = const Value.absent(), Value content = const Value.absent(), Value createdAt = const Value.absent(), }) => SnLocalChatMessageCompanion( id: id, channelId: channelId, content: content, createdAt: createdAt, ), createCompanionCallback: ({ Value id = const Value.absent(), required int channelId, required SnChatMessage content, Value createdAt = const Value.absent(), }) => SnLocalChatMessageCompanion.insert( id: id, channelId: channelId, content: content, createdAt: createdAt, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$SnLocalChatMessageTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $SnLocalChatMessageTable, SnLocalChatMessageData, $$SnLocalChatMessageTableFilterComposer, $$SnLocalChatMessageTableOrderingComposer, $$SnLocalChatMessageTableAnnotationComposer, $$SnLocalChatMessageTableCreateCompanionBuilder, $$SnLocalChatMessageTableUpdateCompanionBuilder, ( SnLocalChatMessageData, BaseReferences<_$AppDatabase, $SnLocalChatMessageTable, SnLocalChatMessageData> ), SnLocalChatMessageData, PrefetchHooks Function()>; typedef $$SnLocalKeyPairTableCreateCompanionBuilder = SnLocalKeyPairCompanion Function({ required String id, required int accountId, required String publicKey, Value privateKey, Value isActive, Value rowid, }); typedef $$SnLocalKeyPairTableUpdateCompanionBuilder = SnLocalKeyPairCompanion Function({ Value id, Value accountId, Value publicKey, Value privateKey, Value isActive, Value rowid, }); class $$SnLocalKeyPairTableFilterComposer extends Composer<_$AppDatabase, $SnLocalKeyPairTable> { $$SnLocalKeyPairTableFilterComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); ColumnFilters get id => $composableBuilder( column: $table.id, builder: (column) => ColumnFilters(column)); ColumnFilters get accountId => $composableBuilder( column: $table.accountId, builder: (column) => ColumnFilters(column)); ColumnFilters get publicKey => $composableBuilder( column: $table.publicKey, builder: (column) => ColumnFilters(column)); ColumnFilters get privateKey => $composableBuilder( column: $table.privateKey, builder: (column) => ColumnFilters(column)); ColumnFilters get isActive => $composableBuilder( column: $table.isActive, builder: (column) => ColumnFilters(column)); } class $$SnLocalKeyPairTableOrderingComposer extends Composer<_$AppDatabase, $SnLocalKeyPairTable> { $$SnLocalKeyPairTableOrderingComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); ColumnOrderings get id => $composableBuilder( column: $table.id, builder: (column) => ColumnOrderings(column)); ColumnOrderings get accountId => $composableBuilder( column: $table.accountId, builder: (column) => ColumnOrderings(column)); ColumnOrderings get publicKey => $composableBuilder( column: $table.publicKey, builder: (column) => ColumnOrderings(column)); ColumnOrderings get privateKey => $composableBuilder( column: $table.privateKey, builder: (column) => ColumnOrderings(column)); ColumnOrderings get isActive => $composableBuilder( column: $table.isActive, builder: (column) => ColumnOrderings(column)); } class $$SnLocalKeyPairTableAnnotationComposer extends Composer<_$AppDatabase, $SnLocalKeyPairTable> { $$SnLocalKeyPairTableAnnotationComposer({ required super.$db, required super.$table, super.joinBuilder, super.$addJoinBuilderToRootComposer, super.$removeJoinBuilderFromRootComposer, }); GeneratedColumn get id => $composableBuilder(column: $table.id, builder: (column) => column); GeneratedColumn get accountId => $composableBuilder(column: $table.accountId, builder: (column) => column); GeneratedColumn get publicKey => $composableBuilder(column: $table.publicKey, builder: (column) => column); GeneratedColumn get privateKey => $composableBuilder( column: $table.privateKey, builder: (column) => column); GeneratedColumn get isActive => $composableBuilder(column: $table.isActive, builder: (column) => column); } class $$SnLocalKeyPairTableTableManager extends RootTableManager< _$AppDatabase, $SnLocalKeyPairTable, SnLocalKeyPairData, $$SnLocalKeyPairTableFilterComposer, $$SnLocalKeyPairTableOrderingComposer, $$SnLocalKeyPairTableAnnotationComposer, $$SnLocalKeyPairTableCreateCompanionBuilder, $$SnLocalKeyPairTableUpdateCompanionBuilder, ( SnLocalKeyPairData, BaseReferences<_$AppDatabase, $SnLocalKeyPairTable, SnLocalKeyPairData> ), SnLocalKeyPairData, PrefetchHooks Function()> { $$SnLocalKeyPairTableTableManager( _$AppDatabase db, $SnLocalKeyPairTable table) : super(TableManagerState( db: db, table: table, createFilteringComposer: () => $$SnLocalKeyPairTableFilterComposer($db: db, $table: table), createOrderingComposer: () => $$SnLocalKeyPairTableOrderingComposer($db: db, $table: table), createComputedFieldComposer: () => $$SnLocalKeyPairTableAnnotationComposer($db: db, $table: table), updateCompanionCallback: ({ Value id = const Value.absent(), Value accountId = const Value.absent(), Value publicKey = const Value.absent(), Value privateKey = const Value.absent(), Value isActive = const Value.absent(), Value rowid = const Value.absent(), }) => SnLocalKeyPairCompanion( id: id, accountId: accountId, publicKey: publicKey, privateKey: privateKey, isActive: isActive, rowid: rowid, ), createCompanionCallback: ({ required String id, required int accountId, required String publicKey, Value privateKey = const Value.absent(), Value isActive = const Value.absent(), Value rowid = const Value.absent(), }) => SnLocalKeyPairCompanion.insert( id: id, accountId: accountId, publicKey: publicKey, privateKey: privateKey, isActive: isActive, rowid: rowid, ), withReferenceMapper: (p0) => p0 .map((e) => (e.readTable(table), BaseReferences(db, table, e))) .toList(), prefetchHooksCallback: null, )); } typedef $$SnLocalKeyPairTableProcessedTableManager = ProcessedTableManager< _$AppDatabase, $SnLocalKeyPairTable, SnLocalKeyPairData, $$SnLocalKeyPairTableFilterComposer, $$SnLocalKeyPairTableOrderingComposer, $$SnLocalKeyPairTableAnnotationComposer, $$SnLocalKeyPairTableCreateCompanionBuilder, $$SnLocalKeyPairTableUpdateCompanionBuilder, ( SnLocalKeyPairData, BaseReferences<_$AppDatabase, $SnLocalKeyPairTable, SnLocalKeyPairData> ), SnLocalKeyPairData, PrefetchHooks Function()>; class $AppDatabaseManager { final _$AppDatabase _db; $AppDatabaseManager(this._db); $$SnLocalChatChannelTableTableManager get snLocalChatChannel => $$SnLocalChatChannelTableTableManager(_db, _db.snLocalChatChannel); $$SnLocalChatMessageTableTableManager get snLocalChatMessage => $$SnLocalChatMessageTableTableManager(_db, _db.snLocalChatMessage); $$SnLocalKeyPairTableTableManager get snLocalKeyPair => $$SnLocalKeyPairTableTableManager(_db, _db.snLocalKeyPair); }