mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-03-04 01:06:46 +00:00
14 lines
582 B
Dart
14 lines
582 B
Dart
import 'package:drift/drift.dart';
|
|
import 'package:twonly/src/database/tables/contacts.table.dart';
|
|
|
|
@DataClassName('SignalContactSignedPreKey')
|
|
class SignalContactSignedPreKeys extends Table {
|
|
IntColumn get contactId =>
|
|
integer().references(Contacts, #userId, onDelete: KeyAction.cascade)();
|
|
IntColumn get signedPreKeyId => integer()();
|
|
BlobColumn get signedPreKey => blob()();
|
|
BlobColumn get signedPreKeySignature => blob()();
|
|
DateTimeColumn get createdAt => dateTime().withDefault(currentDateAndTime)();
|
|
@override
|
|
Set<Column> get primaryKey => {contactId};
|
|
}
|