Comments (3)
What is the Prisma context of your question? What Prisma schema do you get when you introspect your database that has that behavior?
(Aside: The SQL you are sharing does not show any foreign key, so does not match the ERD or the issue title)
from prisma.
That is not a valid Prisma schema (for multiple reasons, we do not support :
after the field name and no @@unique
or @@map
outside of models).
Can you please clarify your issue or question? Thanks.
from prisma.
thank you for response :)
This is what it looks like when written in prisma schema.
model Areas {
id String @id
name String
weatherForecasts WeatherForecasts[]
}
model WeatherForecasts{
areas Areas @relation(fields: [areasId], references: [id], onDelete: Cascade)
areasId String @unique @map("areas_id")
date String
temperature: Int
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime? @updateAt @map("updated_at")
}
@@unique([date, areasId])
@@map("weather_forecasts")
from prisma.
Related Issues (20)
- Support Non-Ascii Field
- SELECT prop: undefined behaves like prop: true HOT 1
- Support JSON_OVERLAPS
- Please add a flag to disable ALL ADS in my terminal window HOT 2
- called `Option::unwrap()` on a `None` value HOT 1
- Does the prisma extension lose typesafety?
- Having Type mismatch While Creating a Model using same model type referance
- Prisma enable multiSchema error - database was empty - but it is not empty - npx prisma db pull HOT 1
- Getting error while installing
- Dynamic require of "fs" is not supported HOT 1
- Timed out fetching a new connection from the connection pool
- createManyAndReturn() return order
- Support for InfluxDB
- Distinct on an include distincts across all records, instead of just the record being included
- Delay in prisma:get-platform during first call after AWS lambda deployment. HOT 1
- Specifying a PostgreSQL template database for the shadow database
- Prisma generates types incorectly HOT 4
- @prisma/clien Not found in npm HOT 1
- Return type of extension is not being updated based on args
- Support Synchronized Migrations for Development and Test Databases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma.