refactor: Projektstruktur in app/ und backend/ aufgeteilt
This commit is contained in:
26
app/lib/entities/job_entity.dart
Normal file
26
app/lib/entities/job_entity.dart
Normal file
@@ -0,0 +1,26 @@
|
||||
import 'package:objectbox/objectbox.dart';
|
||||
|
||||
@Entity()
|
||||
class JobEntity {
|
||||
@Id()
|
||||
int id = 0;
|
||||
|
||||
@Unique()
|
||||
String jobId; // The original job ID from the Job model
|
||||
|
||||
String jobData; // JSON-encoded job data
|
||||
|
||||
@Property(type: PropertyType.date)
|
||||
DateTime createdAt;
|
||||
|
||||
@Property(type: PropertyType.date)
|
||||
DateTime updatedAt;
|
||||
|
||||
JobEntity({
|
||||
required this.jobId,
|
||||
required this.jobData,
|
||||
required this.createdAt,
|
||||
required this.updatedAt,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user