import { runQuery } from 'lib/queries'; import prisma from 'lib/db'; export async function createWebsite(user_id, data) { return runQuery( prisma.website.create({ data: { account: { connect: { user_id, }, }, ...data, }, }), ); }