aboutsummaryrefslogtreecommitdiff
path: root/src/db/model/UserJoinsProject.ts
diff options
context:
space:
mode:
authorTom Harley2018-03-03 00:28:52 +0000
committerTom Harley2018-03-03 00:28:52 +0000
commit113b5dcbb948f96416f0b76ed8a8debff704c575 (patch)
treed920f1e9c73e703505128a0c2e3099bb94c81033 /src/db/model/UserJoinsProject.ts
parentPlug in authentication support - WIP (diff)
parentAdd miniature response-wrapper middleware (diff)
downloadmedicine-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.ts10
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;
}