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';
|
|
|
|
import 'role.dart';
|
|
|
|
part 'user.g.dart';
|
2018-08-24 13:57:53 +00:00
|
|
|
part 'user.serializer.g.dart';
|
2017-07-15 20:18:53 +00:00
|
|
|
|
|
|
|
@serializable
|
2018-08-24 14:40:41 +00:00
|
|
|
@postgreSqlOrm
|
2017-07-15 20:18:53 +00:00
|
|
|
class _User extends Model {
|
|
|
|
String username, password, email;
|
|
|
|
|
|
|
|
@belongsToMany
|
|
|
|
List<Role> roles;
|
|
|
|
}
|