1
0
mirror of https://github.com/Fayorg/calendrier-avant.git synced 2026-05-27 17:18:38 +02:00

Added shandcn & tailwind

This commit is contained in:
timhaller
2023-12-05 20:44:35 +01:00
parent 8ac9754b52
commit c6039e5ef7
7 changed files with 223 additions and 142 deletions

View File

@@ -1,31 +0,0 @@
import prisma from "./prisma"
let users = 24
let keys = []
let keyLength = 8
let chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
async function main() {
// ... you will write your Prisma Client queries here
for (let i = 1; i <= users; i++) {
let key = ''
for (let j = 0; j < keyLength; j++) {
key += chars.charAt(Math.floor(Math.random() * chars.length))
}
await prisma.keys.create({
data: {
key: key
}
})
}
}
main()
.then(async () => {
await prisma.$disconnect()
})
.catch(async (e) => {
console.error(e)
await prisma.$disconnect()
process.exit(1)
})