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.
25 lines
428 B
25 lines
428 B
2 weeks ago
|
import { PrismaClient } from '@prisma/client';
|
||
|
|
||
4 years ago
|
const prisma = new PrismaClient();
|
||
|
|
||
|
async function main() {
|
||
2 years ago
|
await prisma.tag.createMany({
|
||
|
data: [
|
||
|
{
|
||
|
id: '4452656d-9fa4-4bd0-ba38-70492e31d180',
|
||
|
name: 'EMERGENCY_FUND'
|
||
|
}
|
||
|
],
|
||
|
skipDuplicates: true
|
||
|
});
|
||
4 years ago
|
}
|
||
|
|
||
|
main()
|
||
|
.catch((e) => {
|
||
|
console.error(e);
|
||
|
process.exit(1);
|
||
|
})
|
||
|
.finally(async () => {
|
||
|
await prisma.$disconnect();
|
||
|
});
|