Functional key exchange

This commit is contained in:
2025-03-04 21:08:40 +08:00
parent 5a6b841253
commit d6f3ffc655
13 changed files with 173 additions and 73 deletions

View File

@ -621,7 +621,7 @@ class $SnLocalKeyPairTable extends SnLocalKeyPair
}
@override
Set<GeneratedColumn> get $primaryKey => const {};
Set<GeneratedColumn> get $primaryKey => {id};
@override
SnLocalKeyPairData map(Map<String, dynamic> data, {String? tablePrefix}) {
final effectivePrefix = tablePrefix != null ? '$tablePrefix.' : '';

View File

@ -47,7 +47,9 @@ final class Schema2 extends i0.VersionedSchema {
entityName: 'sn_local_key_pair',
withoutRowId: false,
isStrict: false,
tableConstraints: [],
tableConstraints: [
'PRIMARY KEY(id)',
],
columns: [
_column_5,
_column_6,

View File

@ -10,4 +10,7 @@ class SnLocalKeyPair extends Table {
TextColumn get privateKey => text().nullable()();
BoolColumn get isActive => boolean().withDefault(Constant(false))();
@override
Set<Column<Object>> get primaryKey => {id};
}