diff options
| author | Tom Harley | 2018-03-02 18:03:31 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-03-02 18:03:31 +0000 |
| commit | 84b8b5323654cf43ef549d2151bd3206c666d9d8 (patch) | |
| tree | 1ddcff5f713d7cca2c14f94ee97808cc7f4a354b /src/db | |
| parent | added middleware to check if admin (diff) | |
| download | medicine-84b8b5323654cf43ef549d2151bd3206c666d9d8.tar.gz medicine-84b8b5323654cf43ef549d2151bd3206c666d9d8.zip | |
Plug in authentication support - WIP
Diffstat (limited to 'src/db')
| -rw-r--r-- | src/db/model/User.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/db/model/User.ts b/src/db/model/User.ts index 5a9af07..9b3190c 100644 --- a/src/db/model/User.ts +++ b/src/db/model/User.ts @@ -9,14 +9,14 @@ import { default as UserJoinsProject } from './UserJoinsProject'; export default class User extends Model<User> { @PrimaryKey @Column - public username: string = ''; + public username!: string; @Column - public password: string = ''; + public password!: string; @ForeignKey(() => UserGroup) @Column - public userGroupId: number = 0; + public userGroupId!: number; @BelongsTo(() => UserGroup) public userGroup: UserGroup = new UserGroup(); |
