chore: stop tracking shared
This commit is contained in:
parent
5fb699dd64
commit
32bcab3c9a
3
.gitignore
vendored
3
.gitignore
vendored
@ -56,3 +56,6 @@ dist/
|
|||||||
# package-lock.json
|
# package-lock.json
|
||||||
# yarn.lock
|
# yarn.lock
|
||||||
# pnpm-lock.yaml
|
# pnpm-lock.yaml
|
||||||
|
|
||||||
|
shared/
|
||||||
|
|
||||||
|
|||||||
@ -1,18 +0,0 @@
|
|||||||
import { sql } from "drizzle-orm";
|
|
||||||
import { pgTable, text, varchar } from "drizzle-orm/pg-core";
|
|
||||||
import { createInsertSchema } from "drizzle-zod";
|
|
||||||
import { z } from "zod";
|
|
||||||
|
|
||||||
export const users = pgTable("users", {
|
|
||||||
id: varchar("id").primaryKey().default(sql`gen_random_uuid()`),
|
|
||||||
username: text("username").notNull().unique(),
|
|
||||||
password: text("password").notNull(),
|
|
||||||
});
|
|
||||||
|
|
||||||
export const insertUserSchema = createInsertSchema(users).pick({
|
|
||||||
username: true,
|
|
||||||
password: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
export type InsertUser = z.infer<typeof insertUserSchema>;
|
|
||||||
export type User = typeof users.$inferSelect;
|
|
||||||
Loading…
x
Reference in New Issue
Block a user