non-fungible-apps/serverless/prisma/schema.prisma

37 lines
968 B
Plaintext

generator client {
provider = "prisma-client-js"
binaryTargets = ["native", "rhel-openssl-1.0.x"]
}
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
}
model builds {
id String @id @default(auto()) @map("_id") @db.ObjectId
commitHash String
domain String
githubRepository String
ipfsHash String
}
model tokens {
id String @id @default(auto()) @map("_id") @db.ObjectId
commitHash String
domain String
githubRepository String
ipfsHash String
owner String
tokenId Int
verified Boolean
}
model zones {
id String @id @default(auto()) @map("_id") @db.ObjectId
zoneId Int // The returned id from the creation call
name String // The assigned name at the time of creation
hostname String // The target domain that's assigned as hostname
sourceDomain String // The origin URL
}