Files
votianlt/app/lib/entities/photo_entity.dart

24 lines
372 B
Dart

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,
});
}