ObjectBox
This commit is contained in:
1 parent
e548f62bde
commit
f8317be627
60 files changed
+2367
-15049
No files matched your search
@@ -1,10 +1,9 @@
|
||||
import 'package:isar/isar.dart';
|
||||
import 'package:objectbox/objectbox.dart';
|
||||
|
||||
part 'pictures.g.dart';
|
||||
|
||||
@collection
|
||||
@Entity()
|
||||
class Picture {
|
||||
late Id id;
|
||||
@Id()
|
||||
int id = 0;
|
||||
|
||||
late int tourId;
|
||||
|
||||
@@ -12,8 +11,6 @@ class Picture {
|
||||
|
||||
late String data;
|
||||
|
||||
Picture() {
|
||||
id = Isar.autoIncrement;
|
||||
}
|
||||
Picture();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user