diff options
| author | Tom Harley | 2018-02-08 17:12:32 +0000 |
|---|---|---|
| committer | Tom Harley | 2018-02-08 17:12:32 +0000 |
| commit | d4e2bb0ab011b3e69c4e3eaecaae0ad378f0183d (patch) | |
| tree | b02eb46c4273b967506d4ea51c8a79f69a64a630 /src/db/model/ContributorGroup.ts | |
| parent | added log files to .gitignore (diff) | |
| download | medicine-d4e2bb0ab011b3e69c4e3eaecaae0ad378f0183d.tar.gz medicine-d4e2bb0ab011b3e69c4e3eaecaae0ad378f0183d.zip | |
models should now do basic functioning
Diffstat (limited to 'src/db/model/ContributorGroup.ts')
| -rw-r--r-- | src/db/model/ContributorGroup.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/db/model/ContributorGroup.ts b/src/db/model/ContributorGroup.ts index 8e90a1e..c2ff2b6 100644 --- a/src/db/model/ContributorGroup.ts +++ b/src/db/model/ContributorGroup.ts @@ -3,32 +3,27 @@ import { default as UserJoinsProject } from './UserJoinsProject'; export default class ContributorGroup extends Model<ContributorGroup> { @Column + @AllowNull name: string; @HasMany(() => UserJoinsProject) uses: UserJoinsProject[]; @Column - @NotNull canCreateFiles: boolean; @Column - @NotNull canDeleteFiles: boolean; @Column - @NotNull canViewFiles: boolean; @Column - @NotNull canAddUsers: boolean; @Column - @NotNull canRemoveUsers: boolean; @Column - @NotNull canEditUserPermissions: boolean; } |
