Uniquely index event-type with teamId and slug (#2452)
This commit is contained in:
		
							parent
							
								
									8f3b854559
								
							
						
					
					
						commit
						00a3ff89e4
					
				
					 2 changed files with 10 additions and 0 deletions
				
			
		|  | @ -0,0 +1,9 @@ | |||
| /* | ||||
|   Warnings: | ||||
| 
 | ||||
|   - A unique constraint covering the columns `[teamId,slug]` on the table `EventType` will be added. If there are existing duplicate values, this will fail. | ||||
| 
 | ||||
| */ | ||||
| -- CreateIndex | ||||
| CREATE UNIQUE INDEX "EventType_teamId_slug_key" ON "EventType"("teamId", "slug"); | ||||
| 
 | ||||
|  | @ -72,6 +72,7 @@ model EventType { | |||
|   successRedirectUrl      String? | ||||
| 
 | ||||
|   @@unique([userId, slug]) | ||||
|   @@unique([teamId, slug]) | ||||
| } | ||||
| 
 | ||||
| model Credential { | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Afzal Sayed
						Afzal Sayed