env and database access overhaul;

new dev scripts
This commit is contained in:
Dobromir Popov
2024-04-05 19:58:07 +03:00
parent 3209d273e2
commit 8becbfc926
18 changed files with 49 additions and 45 deletions

View File

@ -10,7 +10,6 @@
// //to generate schema
// > npx prisma
// GPT
// This is a Prisma database schema definition, which describes the structure and relationships between various entities in the database. Here's a brief overview of the different models:
// Publisher: Represents a publisher, with attributes such as first name, last name, email, phone, age, and availability. A publisher can have many availabilities and assignments, and can also have multiple user accounts and sessions.
@ -21,9 +20,10 @@
// Location: Represents a location where a cart event can take place. A location can have a name, address, and multiple cart events.
// Overall, this schema seems to represent a system for managing publishers and their assignments to cart events, including their availabilities and locations.
//$env:DATABASE="{connection string}"; npx prisma migrate deploy
datasource db {
provider = "mysql"
url = env("DATABASE_URL")
url = env("DATABASE")
}
generator client {