Portfolio/Websites/UnusedPages/prisma/schema.prisma

30 lines
815 B
Plaintext

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
// provider = "postgresql"
provider = "mysql"
url = env("DATABASE_URL")
}
model Issue {
id Int @id @default(autoincrement()) // auto increasing id number for issues
title String @db.VarChar(255) // change varchar(variable character limit to 255)
description String @db.Text // issue description
status Status @default(OPEN) // stating issue is open
createdAT DateTime @default(now()) // creation time
updatedAt DateTime @updatedAt // updated time
}
// issue status, or ticket status
// supported in mysql, but possibly not other db's
enum Status {
OPEN
IN_PROGRESS
CLOSED
}