refactor: Projektstruktur in app/ und backend/ aufgeteilt
This commit is contained in:
23
app/lib/entities/photo_entity.dart
Normal file
23
app/lib/entities/photo_entity.dart
Normal file
@@ -0,0 +1,23 @@
|
||||
import 'package:objectbox/objectbox.dart';
|
||||
|
||||
@Entity()
|
||||
class PhotoEntity {
|
||||
@Id()
|
||||
int id = 0;
|
||||
|
||||
String taskId;
|
||||
|
||||
int photoIndex;
|
||||
|
||||
String data; // Base64-encoded photo data
|
||||
|
||||
@Property(type: PropertyType.date)
|
||||
DateTime createdAt;
|
||||
|
||||
PhotoEntity({
|
||||
required this.taskId,
|
||||
required this.photoIndex,
|
||||
required this.data,
|
||||
required this.createdAt,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user