27 lines
463 B
Dart
27 lines
463 B
Dart
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,
|
|
});
|
|
}
|
|
|