vicious-gold
vicious-gold4mo ago

help?

How do i download the primsa file for the Crm dashboard so i can have my own database locally?
4 Replies
kapa.ai
kapa.ai4mo ago
Hi @♇luto. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- I'm sorry, but the knowledge sources provided do not include information on how to download the Prisma file for the CRM dashboard. However, you can check the schema of the backend from this link (https://api.crm.refine.dev/graphql). It's public and you can use it as a reference to create your own Prisma schema. For creating your own Prisma schema, you can refer to the examples provided in the knowledge sources. Here is an example of a Prisma schema for a SQLite database:
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}

generator client {
provider = "prisma-client-js"
}

model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now()
name String?
email String @unique
}

// ...
datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}

generator client {
provider = "prisma-client-js"
}

model User {
id Int @id @default(autoincrement())
createdAt DateTime @default(now()
name String?
email String @unique
}

// ...
You can replace the User model with your own models based on your application's requirements. For more detailed information on how to set up and use Prisma, you can refer to the official Prisma documentation (https://www.prisma.io/docs/). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4mo ago
<@478420083421609996> kapa.ai is still learning and improving, please let us know how it did by reacting below
vicious-gold
vicious-gold4mo ago
is there a version of the crm dashboard that supports sqllite database? like a github file i can take a look at
optimistic-gold
optimistic-gold4mo ago
Nest.js Query | Refine
Refine provides a data provider for APIs powered with Nest.js Query, a module for Nest.js that provides easier ways to build CRUD graphql APIs.