Skip to content

Commit

Permalink
(BE) Implement workspace creation logic (#53)
Browse files Browse the repository at this point in the history
* Implement workspace creation logic

* Add workspace role
  • Loading branch information
devleejb authored Jan 17, 2024
1 parent f017796 commit 1c80bbf
Show file tree
Hide file tree
Showing 23 changed files with 261 additions and 125 deletions.
163 changes: 99 additions & 64 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
"@nestjs/platform-express": "^10.0.0",
"@nestjs/swagger": "^7.1.17",
"@prisma/client": "^5.8.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"passport-github": "^1.1.0",
"passport-jwt": "^4.0.1",
"reflect-metadata": "^0.1.13",
Expand Down
1 change: 1 addition & 0 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ model UserWorkspace {
id String @id @default(auto()) @map("_id") @db.ObjectId
user User @relation(fields: [userId], references: [id])
userId String @map("user_id") @db.ObjectId
role String
workspace Workspace @relation(fields: [workspaceId], references: [id])
workspaceId String @map("workspace_id") @db.ObjectId
createdAt DateTime @default(now()) @map("created_at")
Expand Down
22 changes: 0 additions & 22 deletions backend/src/app.controller.spec.ts

This file was deleted.

12 changes: 0 additions & 12 deletions backend/src/app.controller.ts

This file was deleted.

Loading

0 comments on commit 1c80bbf

Please sign in to comment.