You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
386 B
24 lines
386 B
import 'package:objectbox/objectbox.dart';
|
|
|
|
@Entity()
|
|
class User {
|
|
int id = 0;
|
|
String username;
|
|
String email;
|
|
String token;
|
|
|
|
User(this.id, this.username, this.email, this.token);
|
|
}
|
|
|
|
@Entity()
|
|
class Activity {
|
|
int id;
|
|
@Index()
|
|
String uuid;
|
|
String filename;
|
|
String category;
|
|
DateTime date;
|
|
|
|
Activity(this.id, this.uuid, this.filename, this.category, this.date);
|
|
}
|