31 lines
499 B
Dart
31 lines
499 B
Dart
import 'package:objectbox/objectbox.dart';
|
|
|
|
@Entity()
|
|
class TaskStatusEntity {
|
|
@Id()
|
|
int id = 0;
|
|
|
|
@Unique()
|
|
String taskId;
|
|
|
|
bool completed;
|
|
|
|
@Property(type: PropertyType.date)
|
|
DateTime? completedAt;
|
|
|
|
@Property(type: PropertyType.date)
|
|
DateTime createdAt;
|
|
|
|
@Property(type: PropertyType.date)
|
|
DateTime updatedAt;
|
|
|
|
TaskStatusEntity({
|
|
required this.taskId,
|
|
required this.completed,
|
|
this.completedAt,
|
|
required this.createdAt,
|
|
required this.updatedAt,
|
|
});
|
|
}
|
|
|