Skip to content

Commit

Permalink
added store listing version
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftyos committed Oct 25, 2024
1 parent 7ca6277 commit b508fd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions autogpt_platform/backend/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -541,6 +541,7 @@ model StoreListing {

model StoreListingVersion {
id String @id @default(uuid()) @db.Uuid
version Int @default(1)
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
Expand Down Expand Up @@ -574,6 +575,7 @@ model StoreListingVersion {
// This allows us to provide a review filter to current version of the agent.
StoreListingReview StoreListingReview[]
@@unique([agentId, agentVersion])
@@index([agentId, agentVersion, isApproved])
}

Expand Down

0 comments on commit b508fd0

Please sign in to comment.