update: respondents schema
This commit is contained in:
parent
0c8dbba12c
commit
96dd94f83f
|
|
@ -7,6 +7,7 @@ export const respondents = pgTable("respondents", {
|
|||
id: varchar("id", { length: 50 })
|
||||
.primaryKey()
|
||||
.$defaultFn(() => createId()),
|
||||
userId: varchar('userId').references(() => users.id).unique(),
|
||||
companyName: varchar("companyName").notNull(),
|
||||
position: varchar("position").notNull(),
|
||||
workExperience: varchar("workExperience").notNull(),
|
||||
|
|
@ -15,7 +16,6 @@ export const respondents = pgTable("respondents", {
|
|||
createdAt: timestamp("createdAt", { mode: "date" }),
|
||||
updatedAt: timestamp("updatedAt", { mode: "date" }),
|
||||
deletedAt: timestamp("deletetAt", { mode: "date" }),
|
||||
userId: varchar('userId').references(() => users.id).unique(),
|
||||
});
|
||||
|
||||
export const respondentsRelations = relations(respondents, ({ one }) => ({
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user