Skip to content

Commit 4d8df48

Browse files
committed
add description for providers
1 parent a2e2b66 commit 4d8df48

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- AlterTable
2+
ALTER TABLE "providers" ADD COLUMN "description" TEXT;

dev-demo/resources/providers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export default {
3131
required: true,
3232
maxLength: 255,
3333
},
34+
{
35+
name: 'description',
36+
type: AdminForthDataTypes.TEXT,
37+
required: true,
38+
},
3439
],
3540
plugins: [
3641
// new InlineCreatePlugin({}),

dev-demo/schema.prisma

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ model clinics {
115115
model providers {
116116
id String @id
117117
name String
118+
description String?
118119
}
119120

120121
model api_keys {

0 commit comments

Comments
 (0)