27 lines
398 B
Dart
27 lines
398 B
Dart
import 'package:objectbox/objectbox.dart';
|
|
|
|
@Entity()
|
|
class UserDataEntity {
|
|
@Id()
|
|
int id = 0;
|
|
|
|
@Unique()
|
|
String key;
|
|
|
|
String value;
|
|
|
|
@Property(type: PropertyType.date)
|
|
DateTime createdAt;
|
|
|
|
@Property(type: PropertyType.date)
|
|
DateTime updatedAt;
|
|
|
|
UserDataEntity({
|
|
required this.key,
|
|
required this.value,
|
|
required this.createdAt,
|
|
required this.updatedAt,
|
|
});
|
|
}
|
|
|