Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List of semester change #22

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ model Activity {
user User @relation(fields: [userId], references: [id])
userId Int
year Int
semester Semester
semester Semester[]
dateModified DateTime
name String
description String
Expand Down Expand Up @@ -93,6 +93,5 @@ enum SignificanceLevel {
enum Semester {
FALL
SPRING
SUMMER1
SUMMER2
SUMMER
}
6 changes: 3 additions & 3 deletions prisma/seed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async function createActivityData() {
},
},
year: 2020,
semester: 'FALL',
semester: ['FALL', 'SPRING'],
dateModified: new Date('2020-11-20T21:23:57.736Z'),
name: 'Client Project',
description: 'completed the client design project for Autodesk',
Expand Down Expand Up @@ -183,7 +183,7 @@ async function createActivityData() {
},
},
year: 2023,
semester:'SUMMER2',
semester: ['SPRING', 'SUMMER'],
dateModified: new Date('2022-08-20T21:23:57.736Z'),
name: 'New Course',
description: 'ARTG 5240',
Expand Down Expand Up @@ -244,7 +244,7 @@ async function createActivityData() {
},
},
year: 2022,
semester: 'SUMMER1',
semester: ['FALL', 'SPRING', 'SUMMER'],
dateModified: new Date('2022-10-20T21:23:57.736Z'),
name: 'Cure cancer',
description: 'where is my money?',
Expand Down
2 changes: 1 addition & 1 deletion src/activities/dto/create-activity.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class CreateActivityDto {
year: number;

@ApiProperty()
semester: Semester;
semester: Semester[];

@ApiProperty()
dateModified: Date;
Expand Down