Update user.dart
This commit is contained in:
parent
ef589c4678
commit
cdb67181ab
1 changed files with 7 additions and 5 deletions
|
@ -3,16 +3,18 @@ library angel.models.user;
|
||||||
import 'package:angel_framework/common.dart';
|
import 'package:angel_framework/common.dart';
|
||||||
|
|
||||||
class User extends Model {
|
class User extends Model {
|
||||||
|
@override
|
||||||
|
String id;
|
||||||
String email, username, password, salt;
|
String email, username, password, salt;
|
||||||
List<String> roles;
|
@override
|
||||||
|
DateTime createdAt, updatedAt;
|
||||||
|
|
||||||
User(
|
User(
|
||||||
{String id,
|
{this.id,
|
||||||
this.email,
|
this.email,
|
||||||
this.username,
|
this.username,
|
||||||
this.password,
|
this.password,
|
||||||
this.salt,
|
this.salt,
|
||||||
this.roles: const []}) {
|
this.createdAt,
|
||||||
this.id = id;
|
this.updatedAt});
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue