Skip to content

[BUG]:No overload matches this call. #4228

@Ayushkumar48

Description

@Ayushkumar48

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')
});
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions