We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 720ce85 + dbac585 commit fec65d2Copy full SHA for fec65d2
README.md
@@ -65,6 +65,7 @@ model Post {
65
viewCount Int @default(0)
66
author User? @relation(fields: [authorId], references: [id])
67
authorId Int?
68
+ rating Float
69
}
70
```
71
prisma/schema.prisma
@@ -28,4 +28,5 @@ model Post {
28
29
30
31
32
src/helpers.ts
@@ -42,6 +42,7 @@ export const getTSDataTypeFromFieldType = (field: PrismaDMMF.Field) => {
42
let type = field.type;
43
switch (field.type) {
44
case 'Int':
45
+ case 'Float':
46
type = 'number';
47
break;
48
case 'DateTime':
0 commit comments