This commit is contained in:
2025-06-18 18:30:22 +05:00
parent 46dc5fa25f
commit 00f4e56b33
8 changed files with 126 additions and 14 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import { usersTable } from "./users";
export const clientsTable = pgTable("clients", {
id: uuid("id").defaultRandom().primaryKey(),
name: varchar("name").notNull(),
phone: varchar("phone", { length: 11 }).notNull(),
phone: varchar("phone", { length: 11 }).unique().notNull(),
email: varchar("email"),
ownerId: uuid("owner_id")
.notNull()