-
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 branch 'stage' of https://github.com/mash-up-kr/VitaminC_server …
…into feat/private
- Loading branch information
Showing
21 changed files
with
267 additions
and
26 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
import { IsEnum } from 'class-validator'; | ||
|
||
import { UserMapRole, UserMapRoleValueType } from 'src/entities/index'; | ||
|
||
export class CreateInviteLinkDto { | ||
@IsEnum([UserMapRole.WRITE, UserMapRole.READ]) | ||
@ApiProperty({ | ||
enum: [UserMapRole.WRITE, UserMapRole.READ], // Admin 초대 불가 | ||
default: UserMapRole.READ, | ||
nullable: true, | ||
}) | ||
mapRole: UserMapRoleValueType = UserMapRole.READ; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class KickUserDto { | ||
@ApiProperty() | ||
userId: number; | ||
} |
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
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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Migration } from '@mikro-orm/migrations'; | ||
|
||
export class Migration20240904080344 extends Migration { | ||
async up(): Promise<void> { | ||
this.addSql( | ||
'alter table "user" add column "profile_image" varchar(255) null;', | ||
); | ||
|
||
this.addSql( | ||
'alter table "invite_link" alter column "map_role" type varchar(255) using ("map_role"::varchar(255));', | ||
); | ||
this.addSql( | ||
'alter table "invite_link" alter column "map_role" set default \'READ\';', | ||
); | ||
} | ||
|
||
async down(): Promise<void> { | ||
this.addSql('alter table "user" drop column "profile_image";'); | ||
|
||
this.addSql( | ||
'alter table "invite_link" alter column "map_role" type varchar(255) using ("map_role"::varchar(255));', | ||
); | ||
this.addSql( | ||
'alter table "invite_link" alter column "map_role" set default \'WRITE\';', | ||
); | ||
} | ||
} |
Oops, something went wrong.