diff --git a/src/generator/model.ts b/src/generator/model.ts
index cf74555..b48faa5 100644
--- a/src/generator/model.ts
+++ b/src/generator/model.ts
@@ -105,7 +105,7 @@ export default class ModelGenerator
: `${field.type}`
}
-
+ |
${
field.directives.length > 0
@@ -157,10 +157,10 @@ export default class ModelGenerator
?.map(
(opK) => `
-
+ |
${opK.name}
|
-
+ |
${opK.types
.map((t) =>
isScalarType(t.type as string)
@@ -171,7 +171,7 @@ export default class ModelGenerator
)
.join(' | ')}
|
-
+ |
${opK.required ? 'Yes' : 'No'}
|
diff --git a/src/generator/toc.ts b/src/generator/toc.ts
index f0af877..54011ce 100644
--- a/src/generator/toc.ts
+++ b/src/generator/toc.ts
@@ -48,7 +48,7 @@ export default class TOCGenerator implements Generatable {
-
${this.getTOCSubHeaderHTML(model.name)}
-
@@ -60,7 +60,7 @@ export default class TOCGenerator implements Generatable {
-
diff --git a/src/tests/__snapshots__/model.test.ts.snap b/src/tests/__snapshots__/model.test.ts.snap
index a6ef530..8179f61 100644
--- a/src/tests/__snapshots__/model.test.ts.snap
+++ b/src/tests/__snapshots__/model.test.ts.snap
@@ -3,12 +3,12 @@
exports[`model generator renders model directive html correctly 1`] = `
"
-
- @@id
+ |
+ @@id
|
- |
@@ -18,21 +18,21 @@ exports[`model generator renders model directive html correctly 1`] = `
exports[`model generator renders model field table row correctly 1`] = `
"
-
+ |
title
|
-
+ |
String?
|
-
- |
@@ -42,21 +42,21 @@ exports[`model generator renders model field table row correctly 1`] = `
exports[`model generator renders model field table row correctly 2`] = `
"
-
+ |
email
|
-
+ |
String
|
-
-
+
+
|
-
+ |
Yes
|
-
+ |
This is some docs
|
|
@@ -66,43 +66,43 @@ exports[`model generator renders model field table row correctly 2`] = `
exports[`model generator renders model operation html correctly 1`] = `
"
- findOne
- Find zero or one user
+ findOne
+ Find zero or one user
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
"
diff --git a/src/tests/__snapshots__/toc.test.ts.snap b/src/tests/__snapshots__/toc.test.ts.snap
index 5ee5f6b..08011ee 100644
--- a/src/tests/__snapshots__/toc.test.ts.snap
+++ b/src/tests/__snapshots__/toc.test.ts.snap
@@ -2,77 +2,77 @@
exports[`TOC renders TOC Subheader correctly 1`] = `
"
-
+
"
`;
-exports[`TOC renders TOC subfield correctly 1`] = `" - userId
"`;
+exports[`TOC renders TOC subfield correctly 1`] = `" - userId
"`;
exports[`TOC renders on toHTML 1`] = `
"
-
+
-
-
+
-
-
+
-
+
-
-
+
-
- - PostWhereInput
- PostOrderByWithRelationInput
- PostWhereUniqueInput
- PostOrderByWithAggregationInput
- PostScalarWhereWithAggregatesInput
- UserWhereInput
- UserOrderByWithRelationInput
- UserWhereUniqueInput
- UserOrderByWithAggregationInput
- UserScalarWhereWithAggregatesInput
- PostCreateInput
- PostUncheckedCreateInput
- PostUpdateInput
- PostUncheckedUpdateInput
- PostUpdateManyMutationInput
- PostUncheckedUpdateManyInput
- UserCreateInput
- UserUncheckedCreateInput
- UserUpdateInput
- UserUncheckedUpdateInput
- UserUpdateManyMutationInput
- UserUncheckedUpdateManyInput
- StringFilter
- PostCountOrderByAggregateInput
- PostMaxOrderByAggregateInput
- PostMinOrderByAggregateInput
- StringWithAggregatesFilter
- UserCountOrderByAggregateInput
- UserMaxOrderByAggregateInput
- UserMinOrderByAggregateInput
- StringFieldUpdateOperationsInput
- NestedStringFilter
- NestedStringWithAggregatesFilter
- NestedIntFilter
+
-
-
+
-
diff --git a/styles_generator/index.html b/styles_generator/index.html
index b6c787b..238df56 100644
--- a/styles_generator/index.html
+++ b/styles_generator/index.html
@@ -12,8 +12,7 @@
@@ -21,106 +20,129 @@
width="109"
height="40"
viewBox="0 0 109 40"
- fill="none"
+ fill="currentColor"
xmlns="http://www.w3.org/2000/svg"
+ class="text-black dark:text-white"
style="cursor: pointer;"
>
-
-
-
-
+
+
+
+
+
+
+
-
+
-
-
+
-
-
+
-
-
+
-
+
-
-
+
-
- - PostWhereInput
- PostOrderByWithRelationInput
- PostWhereUniqueInput
- PostOrderByWithAggregationInput
- PostScalarWhereWithAggregatesInput
- ProfileWhereInput
- ProfileOrderByWithRelationInput
- ProfileWhereUniqueInput
- ProfileOrderByWithAggregationInput
- ProfileScalarWhereWithAggregatesInput
- UserWhereInput
- UserOrderByWithRelationInput
- UserWhereUniqueInput
- UserOrderByWithAggregationInput
- UserScalarWhereWithAggregatesInput
- PostCreateInput
- PostUncheckedCreateInput
- PostUpdateInput
- PostUncheckedUpdateInput
- PostCreateManyInput
- PostUpdateManyMutationInput
- PostUncheckedUpdateManyInput
- ProfileCreateInput
- ProfileUncheckedCreateInput
- ProfileUpdateInput
- ProfileUncheckedUpdateInput
- ProfileCreateManyInput
- ProfileUpdateManyMutationInput
- ProfileUncheckedUpdateManyInput
- UserCreateInput
- UserUncheckedCreateInput
- UserUpdateInput
- UserUncheckedUpdateInput
- UserCreateManyInput
- UserUpdateManyMutationInput
- UserUncheckedUpdateManyInput
- IntFilter
- DateTimeFilter
- StringFilter
- StringNullableFilter
- BoolFilter
- UserRelationFilter
- PostTestCompoundUniqueInput
- PostIdAuthorIdCompoundUniqueInput
- PostCountOrderByAggregateInput
- PostAvgOrderByAggregateInput
- PostMaxOrderByAggregateInput
- PostMinOrderByAggregateInput
- PostSumOrderByAggregateInput
- IntWithAggregatesFilter
- DateTimeWithAggregatesFilter
- StringWithAggregatesFilter
- StringNullableWithAggregatesFilter
- BoolWithAggregatesFilter
- ProfileCountOrderByAggregateInput
- ProfileAvgOrderByAggregateInput
- ProfileMaxOrderByAggregateInput
- ProfileMinOrderByAggregateInput
- ProfileSumOrderByAggregateInput
- StringNullableListFilter
- PostListRelationFilter
- ProfileRelationFilter
- PostOrderByRelationAggregateInput
- UserCountOrderByAggregateInput
- UserAvgOrderByAggregateInput
- UserMaxOrderByAggregateInput
- UserMinOrderByAggregateInput
- UserSumOrderByAggregateInput
- UserCreateNestedOneWithoutPostsInput
- IntFieldUpdateOperationsInput
- DateTimeFieldUpdateOperationsInput
- StringFieldUpdateOperationsInput
- NullableStringFieldUpdateOperationsInput
- BoolFieldUpdateOperationsInput
- UserUpdateOneRequiredWithoutPostsNestedInput
- UserCreateNestedOneWithoutProfileInput
- UserUpdateOneRequiredWithoutProfileNestedInput
- UserCreatearrayFieldInput
- PostCreateNestedManyWithoutAuthorInput
- ProfileCreateNestedOneWithoutUserInput
- PostUncheckedCreateNestedManyWithoutAuthorInput
- ProfileUncheckedCreateNestedOneWithoutUserInput
- UserUpdatearrayFieldInput
- PostUpdateManyWithoutAuthorNestedInput
- ProfileUpdateOneWithoutUserNestedInput
- PostUncheckedUpdateManyWithoutAuthorNestedInput
- ProfileUncheckedUpdateOneWithoutUserNestedInput
- NestedIntFilter
- NestedDateTimeFilter
- NestedStringFilter
- NestedStringNullableFilter
- NestedBoolFilter
- NestedIntWithAggregatesFilter
- NestedFloatFilter
- NestedDateTimeWithAggregatesFilter
- NestedStringWithAggregatesFilter
- NestedStringNullableWithAggregatesFilter
- NestedIntNullableFilter
- NestedBoolWithAggregatesFilter
- UserCreateWithoutPostsInput
- UserUncheckedCreateWithoutPostsInput
- UserCreateOrConnectWithoutPostsInput
- UserUpsertWithoutPostsInput
- UserUpdateWithoutPostsInput
- UserUncheckedUpdateWithoutPostsInput
- UserCreateWithoutProfileInput
- UserUncheckedCreateWithoutProfileInput
- UserCreateOrConnectWithoutProfileInput
- UserUpsertWithoutProfileInput
- UserUpdateWithoutProfileInput
- UserUncheckedUpdateWithoutProfileInput
- PostCreateWithoutAuthorInput
- PostUncheckedCreateWithoutAuthorInput
- PostCreateOrConnectWithoutAuthorInput
- PostCreateManyAuthorInputEnvelope
- ProfileCreateWithoutUserInput
- ProfileUncheckedCreateWithoutUserInput
- ProfileCreateOrConnectWithoutUserInput
- PostUpsertWithWhereUniqueWithoutAuthorInput
- PostUpdateWithWhereUniqueWithoutAuthorInput
- PostUpdateManyWithWhereWithoutAuthorInput
- PostScalarWhereInput
- ProfileUpsertWithoutUserInput
- ProfileUpdateWithoutUserInput
- ProfileUncheckedUpdateWithoutUserInput
- PostCreateManyAuthorInput
- PostUpdateWithoutAuthorInput
- PostUncheckedUpdateWithoutAuthorInput
- PostUncheckedUpdateManyWithoutPostsInput
+
-
-
+
-
@@ -130,72 +152,72 @@
- Models
+ Models
- Post
- Description: this is
+ Post
+ Description: this is
- Name |
- Value |
+ Name |
+ Value |
-
- @@id
+ |
+ @@id
|
- |
-
- @@unique
+ |
+ @@unique
|
- |
-
- @@unique
+ |
+ @@unique
|
- |
-
- @@index
+ |
+ @@index
|
- |
-
- @@index
+ |
+ @@index
|
- |
@@ -204,156 +226,156 @@ Post
- Fields
+ Fields
-
- Name |
- Type |
- Attributes |
- Required |
- Comment |
+
+ Name |
+ Type |
+ Attributes |
+ Required |
+ Comment |
-
+ |
id
|
-
+ |
Int
|
-
- |
-
+ |
createdAt
|
-
+ |
DateTime
|
-
- |
-
+ |
title
|
-
+ |
String
|
-
- |
-
+ |
content
|
-
+ |
String?
|
-
- |
-
+ |
published
|
-
+ |
Boolean
|
-
- |
-
+ |
author
|
-
+ |
User
|
-
- |
-
+ |
authorId
|
-
+ |
Int
|
-
- |
@@ -364,12 +386,12 @@ Fields
- Operations
+ Operations
- findUnique
- Find zero or one Post
+ findUnique
+ Find zero or one Post
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- findFirst
- Find first Post
+ findFirst
+ Find first Post
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- findMany
- Find zero or more Post
+ findMany
+ Find zero or more Post
findMany
const Post = await prisma.post.findMany({ take: 10 })
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- create
- Create one Post
+ create
+ Create one Post
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- delete
- Delete one Post
+ delete
+ Delete one Post
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- update
- Update one Post
+ update
+ Update one Post
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- deleteMany
- Delete zero or more Post
+ deleteMany
+ Delete zero or more Post
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- updateMany
- Update zero or one Post
+ updateMany
+ Update zero or one Post
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- upsert
- Create or update one Post
+ upsert
+ Create or update one Post
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
@@ -969,100 +991,100 @@ Output
- Profile
+ Profile
- Fields
+ Fields
- Name |
- Type |
- Attributes |
- Required |
- Comment |
+ Name |
+ Type |
+ Attributes |
+ Required |
+ Comment |
-
+ |
id
|
-
+ |
Int
|
-
- |
-
+ |
bio
|
-
+ |
String?
|
-
- |
-
+ |
user
|
-
+ |
User
|
-
- |
-
+ |
userId
|
-
+ |
Int
|
-
- |
@@ -1073,12 +1095,12 @@ Fields
- Operations
+ Operations
- findUnique
- Find zero or one Profile
+ findUnique
+ Find zero or one Profile
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- findFirst
- Find first Profile
+ findFirst
+ Find first Profile
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- findMany
- Find zero or more Profile
+ findMany
+ Find zero or more Profile
findMany
const Profile = await prisma.profile.findMany({ take: 10 })
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- create
- Create one Profile
+ create
+ Create one Profile
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- delete
- Delete one Profile
+ delete
+ Delete one Profile
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- update
- Update one Profile
+ update
+ Update one Profile
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- deleteMany
- Delete zero or more Profile
+ deleteMany
+ Delete zero or more Profile
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- updateMany
- Update zero or one Profile
+ updateMany
+ Update zero or one Profile
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- upsert
- Create or update one Profile
+ upsert
+ Create or update one Profile
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
@@ -1678,140 +1700,140 @@ Output
- User
+ User
- Fields
+ Fields
- Name |
- Type |
- Attributes |
- Required |
- Comment |
+ Name |
+ Type |
+ Attributes |
+ Required |
+ Comment |
-
+ |
id
|
-
+ |
Int
|
-
- |
-
+ |
email
|
-
+ |
String
|
-
- |
-
+ |
name
|
-
+ |
String?
|
-
- |
-
+ |
posts
|
-
+ |
Post[]
|
-
- |
-
+ |
profile
|
-
+ |
Profile?
|
-
- |
-
+ |
arrayField
|
-
+ |
String[]
|
-
- |
@@ -1822,12 +1844,12 @@ Fields
- Operations
+ Operations
- findUnique
- Find zero or one User
+ findUnique
+ Find zero or one User
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- findFirst
- Find first User
+ findFirst
+ Find first User
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- findMany
- Find zero or more User
+ findMany
+ Find zero or more User
findMany
const User = await prisma.user.findMany({ take: 10 })
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- create
- Create one User
+ create
+ Create one User
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- delete
- Delete one User
+ delete
+ Delete one User
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- update
- Update one User
+ update
+ Update one User
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
No
-
-
+
- deleteMany
- Delete zero or more User
+ deleteMany
+ Delete zero or more User
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- updateMany
- Update zero or one User
+ updateMany
+ Update zero or one User
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
-
+
- upsert
- Create or update one User
+ upsert
+ Create or update one User
- Input
+ Input
- Output
-
- Required:
+ Output
+
+ Required:
Yes
-
@@ -2429,140 +2451,140 @@ Output
- Types
+ Types
- Input Types
+ Input Types
- PostWhereInput
+ PostWhereInput
|