refactor: Projektstruktur in app/ und backend/ aufgeteilt
This commit is contained in:
30
app/lib/entities/task_status_entity.dart
Normal file
30
app/lib/entities/task_status_entity.dart
Normal file
@@ -0,0 +1,30 @@
|
||||
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,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user