mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-10 21:00:37 -05:00
51 lines
1.2 KiB
TypeScript
51 lines
1.2 KiB
TypeScript
import { Prisma } from "@prisma/client";
|
|
|
|
const getUsers = (): Prisma.UserCreateArgs["data"][] => {
|
|
const result: Prisma.UserCreateArgs["data"][] = [
|
|
{
|
|
username: "Sendou",
|
|
discriminator: "4059",
|
|
discordId: "79237403620945920",
|
|
discordAvatar: "59c321a21f73c18eda69359ccabdc38e",
|
|
profile: {
|
|
create: {
|
|
bio: "My cool bio! Supports markdown too: **bolded**",
|
|
country: "US",
|
|
customUrlPath: "tester",
|
|
sensMotion: 4.5,
|
|
sensStick: -2.0,
|
|
weaponPool: [
|
|
"Tenta Brella",
|
|
"Range Blaster",
|
|
"Luna Blaster",
|
|
"N-ZAP '89",
|
|
],
|
|
twitterName: "nintendovs",
|
|
twitchName: "nintendo",
|
|
youtubeId: "UCAtobAxsQcACwDZCSH9uJfA",
|
|
},
|
|
},
|
|
},
|
|
];
|
|
|
|
new Array(10)
|
|
.fill(null)
|
|
.map((_, i) => ({
|
|
discordId: "" + i,
|
|
discriminator: padWithZero("" + i, 4),
|
|
username: `User ${i}`,
|
|
}))
|
|
.forEach((value) => result.push(value));
|
|
|
|
return result;
|
|
};
|
|
|
|
function padWithZero(value: string, targetLength: number) {
|
|
return new Array(targetLength - value.length)
|
|
.fill(0)
|
|
.concat(value.split(""))
|
|
.join("");
|
|
}
|
|
|
|
export default getUsers;
|