mirror of https://github.com/ghostfolio/ghostfolio
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							28 lines
						
					
					
						
							535 B
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							28 lines
						
					
					
						
							535 B
						
					
					
				| import { PrismaClient } from '@prisma/client'; | |
| 
 | |
| const prisma = new PrismaClient(); | |
| 
 | |
| async function main() { | |
|   await prisma.tag.createMany({ | |
|     data: [ | |
|       { | |
|         id: '4452656d-9fa4-4bd0-ba38-70492e31d180', | |
|         name: 'EMERGENCY_FUND' | |
|       }, | |
|       { | |
|         id: 'f2e868af-8333-459f-b161-cbc6544c24bd', | |
|         name: 'EXCLUDE_FROM_ANALYSIS' | |
|       } | |
|     ], | |
|     skipDuplicates: true | |
|   }); | |
| } | |
| 
 | |
| main() | |
|   .catch((e) => { | |
|     console.error(e); | |
|     process.exit(1); | |
|   }) | |
|   .finally(async () => { | |
|     await prisma.$disconnect(); | |
|   });
 | |
| 
 |