mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-27 05:54:13 -05:00
21 lines
552 B
TypeScript
21 lines
552 B
TypeScript
import { Factory } from "fishery";
|
|
import { PlusVotingSummary } from "@prisma/client";
|
|
import prisma from "../client";
|
|
|
|
export default Factory.define<PlusVotingSummary>(({ params, onCreate }) => {
|
|
onCreate((plusVotingSummary) => {
|
|
return prisma.plusVotingSummary.create({ data: plusVotingSummary });
|
|
});
|
|
|
|
return {
|
|
userId: 1, // TODO: automatically build a User object, if necessary
|
|
month: 1,
|
|
tier: 1,
|
|
year: 2020,
|
|
wasVouched: false,
|
|
wasSuggested: false,
|
|
countsEU: [0, 0, 0, 3],
|
|
countsNA: [0, 0, 2, 0],
|
|
};
|
|
});
|