Skip to content
Merged
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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,3 +106,7 @@ base url: `http://localhost:3000`
- Get a specific task: `GET /api/organization/:organizationId/team/:teamId/project/:projectId/task/:taskId`
- Delete a task: `DELETE /api/organization/:organizationId/team/:teamId/project/:projectId/task/:taskId/delete`
- Restore the deleted task: `PATCH /api/organization/:organizationId/team/:teamId/project/:projectId/task/:taskId/restore`

### Activity Logs

- Get all logs: `GET /api/organization/:organizationId/activity-logs`
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/client.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* eslint-disable */
export * from "./index"
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/client.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* eslint-disable */
module.exports = { ...require('.') }
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/default.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* eslint-disable */
export * from "./index"
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/default.js
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* eslint-disable */
module.exports = { ...require('.') }
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/edge.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* eslint-disable */
export * from "./default"
23 changes: 17 additions & 6 deletions prisma/generated/prisma-client-js/edge.js

Large diffs are not rendered by default.

14 changes: 12 additions & 2 deletions prisma/generated/prisma-client-js/index-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable */

Object.defineProperty(exports, "__esModule", { value: true });

const {
Expand Down Expand Up @@ -483,7 +483,17 @@ exports.ActionType = exports.$Enums.ActionType = {
SPRINT_STARTED: 'SPRINT_STARTED',
SPRINT_COMPLETED: 'SPRINT_COMPLETED',
TASK_MOVED: 'TASK_MOVED',
LOGGED_TIME: 'LOGGED_TIME'
LOGGED_TIME: 'LOGGED_TIME',
VERIFIED: 'VERIFIED',
LOGO_UPDATED: 'LOGO_UPDATED',
SETTINGS_CHANGED: 'SETTINGS_CHANGED',
SUBSCRIPTION_CHANGED: 'SUBSCRIPTION_CHANGED',
TEAM_CREATED: 'TEAM_CREATED',
TEAM_DELETED: 'TEAM_DELETED',
DEPARTMENT_CREATED: 'DEPARTMENT_CREATED',
DEPARTMENT_DELETED: 'DEPARTMENT_DELETED',
OWNER_ADDED: 'OWNER_ADDED',
OWNER_REMOVED: 'OWNER_REMOVED'
};

exports.ReportType = exports.$Enums.ReportType = {
Expand Down
14 changes: 12 additions & 2 deletions prisma/generated/prisma-client-js/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable */

/**
* Client
**/
Expand Down Expand Up @@ -161,7 +161,17 @@ export const ActionType: {
SPRINT_STARTED: 'SPRINT_STARTED',
SPRINT_COMPLETED: 'SPRINT_COMPLETED',
TASK_MOVED: 'TASK_MOVED',
LOGGED_TIME: 'LOGGED_TIME'
LOGGED_TIME: 'LOGGED_TIME',
VERIFIED: 'VERIFIED',
LOGO_UPDATED: 'LOGO_UPDATED',
SETTINGS_CHANGED: 'SETTINGS_CHANGED',
SUBSCRIPTION_CHANGED: 'SUBSCRIPTION_CHANGED',
TEAM_CREATED: 'TEAM_CREATED',
TEAM_DELETED: 'TEAM_DELETED',
DEPARTMENT_CREATED: 'DEPARTMENT_CREATED',
DEPARTMENT_DELETED: 'DEPARTMENT_DELETED',
OWNER_ADDED: 'OWNER_ADDED',
OWNER_REMOVED: 'OWNER_REMOVED'
};

export type ActionType = (typeof ActionType)[keyof typeof ActionType]
Expand Down
23 changes: 17 additions & 6 deletions prisma/generated/prisma-client-js/index.js

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions prisma/generated/prisma-client-js/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "prisma-client-9780e8e36b8830e8333f06b5c248c200021c25902ffd14c6f44b19a7776b5264",
"name": "prisma-client-2d87cd72e51d9f20974602c5de15812363f3441f164ab318d3c0da2384027c27",
"main": "index.js",
"types": "index.d.ts",
"browser": "index-browser.js",
Expand Down Expand Up @@ -136,8 +136,5 @@
"./*": "./*"
},
"version": "6.6.0",
"sideEffects": false,
"dependencies": {
"prisma-client-9780e8e36b8830e8333f06b5c248c200021c25902ffd14c6f44b19a7776b5264": "file:"
}
}
"sideEffects": false
}
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/runtime/edge-esm.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/runtime/edge.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
declare class AnyNull extends NullTypesEnumValue {
private readonly _brand_AnyNull;
}
Expand Down
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/runtime/index-browser.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/runtime/library.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/**
* @param this
*/
Expand Down
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/runtime/library.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/runtime/react-native.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/runtime/wasm.js

Large diffs are not rendered by default.

12 changes: 11 additions & 1 deletion prisma/generated/prisma-client-js/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ model ProjectMember {

// Relations
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
user User @relation(fields: [userId], references: [id])
user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@unique([projectId, userId]) // A user can only have one active role in a project
@@index([projectId])
Expand Down Expand Up @@ -575,6 +575,16 @@ enum ActionType {
SPRINT_COMPLETED
TASK_MOVED
LOGGED_TIME
VERIFIED
LOGO_UPDATED
SETTINGS_CHANGED
SUBSCRIPTION_CHANGED
TEAM_CREATED
TEAM_DELETED
DEPARTMENT_CREATED
DEPARTMENT_DELETED
OWNER_ADDED
OWNER_REMOVED
}

enum TaskPriority {
Expand Down
1 change: 0 additions & 1 deletion prisma/generated/prisma-client-js/wasm.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
/* eslint-disable */
export * from "./index"
14 changes: 12 additions & 2 deletions prisma/generated/prisma-client-js/wasm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable */

Object.defineProperty(exports, "__esModule", { value: true });

const {
Expand Down Expand Up @@ -483,7 +483,17 @@ exports.ActionType = exports.$Enums.ActionType = {
SPRINT_STARTED: 'SPRINT_STARTED',
SPRINT_COMPLETED: 'SPRINT_COMPLETED',
TASK_MOVED: 'TASK_MOVED',
LOGGED_TIME: 'LOGGED_TIME'
LOGGED_TIME: 'LOGGED_TIME',
VERIFIED: 'VERIFIED',
LOGO_UPDATED: 'LOGO_UPDATED',
SETTINGS_CHANGED: 'SETTINGS_CHANGED',
SUBSCRIPTION_CHANGED: 'SUBSCRIPTION_CHANGED',
TEAM_CREATED: 'TEAM_CREATED',
TEAM_DELETED: 'TEAM_DELETED',
DEPARTMENT_CREATED: 'DEPARTMENT_CREATED',
DEPARTMENT_DELETED: 'DEPARTMENT_DELETED',
OWNER_ADDED: 'OWNER_ADDED',
OWNER_REMOVED: 'OWNER_REMOVED'
};

exports.ReportType = exports.$Enums.ReportType = {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- AlterEnum
-- This migration adds more than one value to an enum.
-- With PostgreSQL versions 11 and earlier, this is not possible
-- in a single migration. This can be worked around by creating
-- multiple migrations, each migration adding only one value to
-- the enum.


ALTER TYPE "ActionType" ADD VALUE 'VERIFIED';
ALTER TYPE "ActionType" ADD VALUE 'LOGO_UPDATED';
ALTER TYPE "ActionType" ADD VALUE 'SETTINGS_CHANGED';
ALTER TYPE "ActionType" ADD VALUE 'SUBSCRIPTION_CHANGED';
ALTER TYPE "ActionType" ADD VALUE 'TEAM_CREATED';
ALTER TYPE "ActionType" ADD VALUE 'TEAM_DELETED';
ALTER TYPE "ActionType" ADD VALUE 'DEPARTMENT_CREATED';
ALTER TYPE "ActionType" ADD VALUE 'DEPARTMENT_DELETED';
ALTER TYPE "ActionType" ADD VALUE 'OWNER_ADDED';
ALTER TYPE "ActionType" ADD VALUE 'OWNER_REMOVED';

-- DropForeignKey
ALTER TABLE "project_members" DROP CONSTRAINT "project_members_userId_fkey";

-- AddForeignKey
ALTER TABLE "project_members" ADD CONSTRAINT "project_members_userId_fkey" FOREIGN KEY ("userId") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;
2 changes: 1 addition & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ model ProjectMember {

// Relations
project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
user User @relation(fields: [userId], references: [id])
user User @relation(fields: [userId], references: [id], onDelete: Cascade)

@@unique([projectId, userId]) // A user can only have one active role in a project
@@index([projectId])
Expand Down
Loading