shared zod types and drizzle schema

This commit is contained in:
Oliver Bryan
2025-12-13 21:36:32 +00:00
parent b2284b1b30
commit 9d381ca4ff
13 changed files with 1269 additions and 1987 deletions

View File

@@ -1,6 +1,6 @@
import { eq } from "drizzle-orm";
import { db } from "../client";
import { User } from "../schema";
import { User } from "@issue/shared";
export async function createUser(name: string, username: string) {
const [user] = await db.insert(User).values({ name, username }).returning();