Skip to main content
Glama
schema.prisma1.23 kB
// This is your Prisma schema file, // learn more about it in the docs: https://pris.ly/d/prisma-schema // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions? // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init generator client { provider = "prisma-client-js" } datasource db { provider = "postgresql" url = env("DATABASE_URL") } model Agent { id Int @id @default(autoincrement()) name String createdAt DateTime @default(now()) updatedAt DateTime @updatedAt memories Memory[] } model Memory { id Int @id @default(autoincrement()) agentId Int content String createdAt DateTime @default(now()) agent Agent @relation(fields: [agentId], references: [id]) } model User { id Int @id @default(autoincrement()) email String @unique passwordHash String createdAt DateTime @default(now()) apiKeys ApiKey[] } model ApiKey { id Int @id @default(autoincrement()) key String @unique userId Int createdAt DateTime @default(now()) revoked Boolean @default(false) user User @relation(fields: [userId], references: [id]) }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LeadBroaf/mcp-agent-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server