2017-07-15 20:18:53 +00:00
|
|
|
library angel_orm_generator.test.models.user;
|
|
|
|
|
|
|
|
import 'package:angel_model/angel_model.dart';
|
|
|
|
import 'package:angel_orm/angel_orm.dart';
|
|
|
|
import 'package:angel_serialize/angel_serialize.dart';
|
2018-12-03 13:41:14 +00:00
|
|
|
import 'package:collection/collection.dart';
|
2017-07-15 20:18:53 +00:00
|
|
|
import 'role.dart';
|
|
|
|
part 'user.g.dart';
|
|
|
|
|
|
|
|
@serializable
|
2018-12-01 19:03:43 +00:00
|
|
|
@orm
|
2017-07-15 20:18:53 +00:00
|
|
|
class _User extends Model {
|
|
|
|
String username, password, email;
|
|
|
|
|
2018-12-08 04:13:49 +00:00
|
|
|
// TODO: Belongs to many
|
|
|
|
//@belongsToMany
|
|
|
|
//List<Role> roles;
|
2018-12-03 13:41:14 +00:00
|
|
|
}
|