-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathseed.ts
49 lines (39 loc) · 1.32 KB
/
seed.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import { PrismaClient } from "@prisma/client";
const prismaClient = new PrismaClient();
async function main() {
await prismaClient.availableTrigger.create({
data: {
id: "webhook",
name: "Webhook",
image: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRIovxkR9l-OlwpjTXV1B4YNh0W_s618ijxAQ&s",
}
})
await prismaClient.availableAction.create({
data: {
id: "send-sol",
name: "Send Solana",
service: "solana",
actionType: "send-sol",
image: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcT10458YI0Lf1-Zx4fGwhWxI_x4oPCD034xaw&s"
}
})
await prismaClient.availableAction.create({
data: {
id: "email",
name: "Send Email",
service: "gmail",
actionType: "send-email",
image: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ4nd82eFk5SaBPRIeCpmwL7A4YSokA-kXSmw&s"
}
})
await prismaClient.availableAction.create({
data: {
id: "google-drive",
name: "Google Drive",
service: "drive",
actionType: "add-file",
image: "https://1000logos.net/wp-content/uploads/2020/08/Google-Drive-Logo.jpg"
}
})
}
main();