feat: build out initial prototype #1

Merged
naomi merged 6 commits from feat/prototype into main 2025-08-11 19:40:10 -07:00
4 changed files with 455 additions and 79 deletions
Showing only changes of commit 0b6a85ea2c - Show all commits

View File

@@ -15,6 +15,10 @@
"@nhcarrigan/typescript-config": "4.0.0",
"@types/node": "24.2.1",
"eslint": "9.33.0",
"prisma": "6.13.0",
"typescript": "5.9.2"
},
"dependencies": {
"@prisma/client": "6.13.0"
}
}

508
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

21
prisma/schema.prisma Normal file
View File

@@ -0,0 +1,21 @@
// 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 = "mongodb"
url = env("MONGO_URI")
}
model Links {
id String @id @default(auto()) @map("_id") @db.ObjectId
userId String
url String
slug String @unique
@@unique([userId, url], map: "userId_url")
@@index(userId)
}

1
prod.env Normal file
View File

@@ -0,0 +1 @@
MONGO_URI="op://Environment Variables - Naomi/Lynira/mongo uri"