forms/prisma/schema.prisma
Naomi Carrigan e8f5078aa3
Some checks failed
Node.js CI / Lint and Test (push) Has been cancelled
feat: initial project prototype (#2)
### Explanation

_No response_

### Issue

_No response_

### Attestations

- [x] I have read and agree to the [Code of Conduct](https://docs.nhcarrigan.com/community/coc/)
- [x] I have read and agree to the [Community Guidelines](https://docs.nhcarrigan.com/community/guide/).
- [x] My contribution complies with the [Contributor Covenant](https://docs.nhcarrigan.com/dev/covenant/).

### Dependencies

- [x] I have pinned the dependencies to a specific patch version.

### Style

- [x] I have run the linter and resolved any errors.
- [x] My pull request uses an appropriate title, matching the conventional commit standards.
- [x] My scope of feat/fix/chore/etc. correctly matches the nature of changes in my pull request.

### Tests

- [ ] My contribution adds new code, and I have added tests to cover it.
- [ ] My contribution modifies existing code, and I have updated the tests to reflect these changes.
- [x] All new and existing tests pass locally with my changes.
- [x] Code coverage remains at or above the configured threshold.

### Documentation

_No response_

### Versioning

Major - My pull request introduces a breaking change.

Reviewed-on: #2
Co-authored-by: Naomi Carrigan <commits@nhcarrigan.com>
Co-committed-by: Naomi Carrigan <commits@nhcarrigan.com>
2025-02-17 14:03:32 -08:00

106 lines
2.9 KiB
Plaintext

generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "mongodb"
url = env("MONGO_URI")
}
model Appeals {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
firstName String
lastName String
understandBinding Boolean
sanctionType String
caseNumber Int
sanctionPlatform String
platformUsername String
sanctionReason String
sanctionFair String
behaviourViolation String
appealReason String
behaviourImprove String
createdAt DateTime @default(now())
}
model Contacts {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
firstName String
lastName String
companyName String
request String
createdAt DateTime @default(now())
}
model Commissions {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
firstName String
lastName String
companyName String
request String
createdAt DateTime @default(now())
}
model Staff {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
firstName String
lastName String
understandVolunteer Boolean
platform String
platformUsername String
whyJoin String
currentBehaviour String
priorExperience String
internalConflict String
handlingTrauma String
difficultSituation String
leadershipSituation String
createdAt DateTime @default(now())
}
model Events {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
firstName String
lastName String
companyName String
eventDescription String
eventTopic String
eventLocation String
eventDate String
eventBudget String
travelCovered Boolean
lodgingCovered Boolean
foodCovered Boolean
createdAt DateTime @default(now())
}
model Meetings {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
firstName String
lastName String
companyName String
sessionLength Int
sessionGoal String
paymentUnderstanding Boolean
createdAt DateTime @default(now())
}
model Mentorships {
id String @id @default(auto()) @map("_id") @db.ObjectId
email String @unique
firstName String
lastName String
companyName String
mentorshipGoal String
currentFocus String
paymentUnderstanding Boolean
createdAt DateTime @default(now())
}