diff options
| author | Tom Harley | 2018-03-03 00:28:52 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-03-03 00:28:52 +0000 |
| commit | 113b5dcbb948f96416f0b76ed8a8debff704c575 (patch) | |
| tree | d920f1e9c73e703505128a0c2e3099bb94c81033 /src/db/model/UserJoinsProject.ts | |
| parent | Plug in authentication support - WIP (diff) | |
| parent | Add miniature response-wrapper middleware (diff) | |
| download | medicine-113b5dcbb948f96416f0b76ed8a8debff704c575.tar.gz medicine-113b5dcbb948f96416f0b76ed8a8debff704c575.zip | |
Merge branch ‘trh/gets’ into trh/payload-checker
Diffstat (limited to 'src/db/model/UserJoinsProject.ts')
| -rw-r--r-- | src/db/model/UserJoinsProject.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/db/model/UserJoinsProject.ts b/src/db/model/UserJoinsProject.ts index 36a1591..2bf7ea0 100644 --- a/src/db/model/UserJoinsProject.ts +++ b/src/db/model/UserJoinsProject.ts @@ -8,20 +8,20 @@ import { default as ContributorGroup } from './UserGroup'; export default class UserJoinsProject extends Model<UserJoinsProject> { @ForeignKey(() => User) @Column - public username: string = ''; + public username!: string; @ForeignKey(() => Project) @Column - public projectName: string = ''; + public projectName!: string; @CreatedAt @Column - public joinDate: Date = new Date(); + public joinDate!: Date; @ForeignKey(() => ContributorGroup) @Column - public contributorGroupId: number = 0; + public contributorGroupId!: number; @BelongsTo(() => ContributorGroup) - public contributorGroup: ContributorGroup = new ContributorGroup(); + public contributorGroup?: ContributorGroup; } |
