cleanup: Remove old mock server-related files and Drizzle ORM configuration

This commit is contained in:
Yiannis Christodoulou
2025-06-04 15:25:09 +03:00
parent 039e593e8e
commit 11d57a1215
12 changed files with 423 additions and 1139 deletions
+4 -12
View File
@@ -1,17 +1,9 @@
import { pgTable, text, serial, integer, boolean } from "drizzle-orm/pg-core";
import { createInsertSchema } from "drizzle-zod";
import { z } from "zod";
export const users = pgTable("users", {
id: serial("id").primaryKey(),
username: text("username").notNull().unique(),
password: text("password").notNull(),
});
export const insertUserSchema = createInsertSchema(users).pick({
username: true,
password: true,
export const insertUserSchema = z.object({
username: z.string(),
password: z.string(),
});
export type InsertUser = z.infer<typeof insertUserSchema>;
export type User = typeof users.$inferSelect;
export type User = InsertUser & { id: number };