generated from polijrorg/template-node-ts-prisma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from polijrorg/feat/subscription
Feat/subscription
- Loading branch information
Showing
57 changed files
with
4,514 additions
and
3,906 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
interface ICreateGroupDTO { | ||
name: string; | ||
description: string; | ||
super_adm_id: string; | ||
subscription_id: string; | ||
} | ||
|
||
export default ICreateGroupDTO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
interface IUpdateGroupDTO { | ||
name: string; | ||
description: string; | ||
} | ||
|
||
export default IUpdateGroupDTO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import { Router } from 'express'; | ||
|
||
import ensureAuthenticated from '@shared/infra/http/middlewares/EnsureAuthenticated'; | ||
import GroupsController from '../controller/GroupsController'; | ||
|
||
const groupsRoutes = Router(); | ||
|
||
const groupsController = new GroupsController(); | ||
|
||
groupsRoutes.post('/register', groupsController.create); | ||
groupsRoutes.get('/read', groupsController.readAll); | ||
groupsRoutes.get('/read/:id', groupsController.readById); | ||
groupsRoutes.patch('/update/:id', groupsController.update); | ||
groupsRoutes.delete('/delete/:id', groupsController.delete); | ||
groupsRoutes.post('/register', ensureAuthenticated, groupsController.create); | ||
groupsRoutes.get('/read', ensureAuthenticated, groupsController.readAll); | ||
groupsRoutes.get('/read/:id', ensureAuthenticated, groupsController.readById); | ||
groupsRoutes.patch('/update/:id', ensureAuthenticated, groupsController.update); | ||
groupsRoutes.delete('/delete/:id', ensureAuthenticated, groupsController.delete); | ||
|
||
export default groupsRoutes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
model Groups { | ||
id String @id @default(uuid()) | ||
name String | ||
description String | ||
created_at DateTime @default(now()) | ||
updated_at DateTime @default(now()) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.