-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Report hasn't been filed before.
- I have verified that the bug I'm about to report hasn't been filed before.
What version of drizzle-orm are you using?
0.40.0
What version of drizzle-kit are you using?
0.30.2
Other packages
No response
Describe the Bug
In sveltekit, I have created two schemas as
`export const visitors = pgTable('visitors', {
id: text('id').primaryKey(),
firstname: text('firstname').notNull(),
lastname: text('lastname').notNull(),
phonenumber: text('phone_number').notNull().unique(),
email: text('email'),
address: text('address').notNull(),
age: numeric('age').notNull(),
gender: genderEnum('gender').default('Male').notNull(),
governmentidtype: governmentIdTypeEnum('government_id_type').default('Aadhar Card').notNull(),
governmentidnumber: text('government_id_number').notNull()
});
export const visitorEntries = pgTable('visitor_entries', {
id: text('id').primaryKey(),
visitorId: text('visitor_id')
.references(() => visitors.id)
.notNull(),
dateofvisit: text('date_of_visit').notNull(),
intime: text('in_time').default('12:00').notNull(),
outtime: text('out_time').default('12:00'),
reason: text('reason').notNull(),
host: text('host').notNull(),
vehiclenumber: text('vehicle_number'),
belongings: text('belongings')
});
`