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