File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
packages/velog-prisma/prisma
20240225113821_create_dynamic_config_items_table
20240311221015_add_count_and_last_used_at_to_dynamic_config_item Expand file tree Collapse file tree 3 files changed +8
-3
lines changed File renamed without changes.
Original file line number Diff line number Diff line change
1
+ -- AlterTable
2
+ ALTER TABLE " dynamic_config_items" ADD COLUMN " last_used_at" TIMESTAMPTZ (6 ) NOT NULL DEFAULT CURRENT_TIMESTAMP ,
3
+ ADD COLUMN " usage_count" INTEGER NOT NULL DEFAULT 0 ;
Original file line number Diff line number Diff line change @@ -642,9 +642,11 @@ model Notification {
642
642
}
643
643
644
644
model DynamicConfigItem {
645
- id String @id @default (dbgenerated (" uuid_generate_v4 ()" ) ) @db.Uuid
646
- value String @db.VarChar (50 )
647
- type String @db.VarChar (50 )
645
+ id String @id @default (dbgenerated (" uuid_generate_v4 ()" ) ) @db.Uuid
646
+ value String @db.VarChar (50 )
647
+ type String @db.VarChar (50 )
648
+ usage_count Int @default (0 )
649
+ last_used_at DateTime @default (now () ) @db.Timestamptz (6 )
648
650
649
651
@@unique ([value , type ] )
650
652
@@index ([value ] )
You can’t perform that action at this time.
0 commit comments