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.
34 lines
501 B
34 lines
501 B
import 'package:objectbox/objectbox.dart';
|
|
|
|
@Entity()
|
|
class User {
|
|
@Id()
|
|
int id = 0;
|
|
String username;
|
|
String email;
|
|
String token;
|
|
|
|
User(this.id, this.username, this.email, this.token);
|
|
}
|
|
|
|
@Entity()
|
|
class Activity {
|
|
int id;
|
|
@Unique()
|
|
String uuid;
|
|
String filename;
|
|
String category;
|
|
String info;
|
|
|
|
Activity(this.id, this.uuid, this.filename, this.category, this.info);
|
|
}
|
|
|
|
@Entity()
|
|
class Config {
|
|
@Id()
|
|
int id = 0;
|
|
bool saveLocally;
|
|
|
|
Config(this.id, this.saveLocally);
|
|
}
|