We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model interval { id String @id @default(uuid()) @db.Uuid ... organization_id String @unique @db.Uuid organization organization @relation(fields: [organization_id], references: [id]) } model organization { id String @id @default(uuid()) @db.Uuid ... interval interval? }
will be
export const intervalRelations = relations(interval, ({ one }) => ({ organization: one(organization, { relationName: 'intervalToorganization', fields: [interval.organization_id], references: [organization.id] }) })); export const organizationRelations = relations(organization, ({ many }) => ({ interval: many(interval, { relationName: 'intervalToorganization' }) }));
but should be ONE on both sides
The text was updated successfully, but these errors were encountered:
Sukairo-02
No branches or pull requests
will be
but should be ONE on both sides
The text was updated successfully, but these errors were encountered: