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