From 5c7983154adac289e58e036df7a8fcffc13fd249 Mon Sep 17 00:00:00 2001 From: Julian Date: Wed, 17 Jul 2024 08:33:42 -0600 Subject: [PATCH] sent to address isar model schema --- lib/models/isar/models/sent_to_address.dart | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 lib/models/isar/models/sent_to_address.dart diff --git a/lib/models/isar/models/sent_to_address.dart b/lib/models/isar/models/sent_to_address.dart new file mode 100644 index 000000000..f18b18a08 --- /dev/null +++ b/lib/models/isar/models/sent_to_address.dart @@ -0,0 +1,35 @@ +/* + * This file is part of Stack Wallet. + * + * Copyright (c) 2023 Cypher Stack + * All Rights Reserved. + * The code is distributed under GPLv3 license, see LICENSE file for details. + * Generated by Cypher Stack on 2023-05-26 + * + */ + +import 'package:isar/isar.dart'; + +part 'sent_to_address.g.dart'; + +@Collection() +class SentToAddress { + SentToAddress({ + required this.walletId, + required this.txid, + required this.value, + this.label = "", + }); + + Id id = Isar.autoIncrement; + + @Index() + late final String walletId; + + @Index(unique: true, composite: [CompositeIndex("walletId")]) + late final String txid; + + late final String value; + + late final String label; +}