PrismaP
Prisma8mo ago
6 replies
Llamanat3r

Supabase Database w/ Prisma, not return `slug` column.

Hi,

So I have the following model described with Prisma.

model BattleSize {
  id          Int      @id @default(autoincrement())
  title       String
  description String
  icon        String?
  pointsMin   Int      @default(0)
  pointsMax   Int      @default(0)
  createdAt   DateTime @default(now())
  updatedAt   DateTime @updatedAt
  slug        String   @unique
  battles     Battle[]
}


My table in Supabase show all the correct columns, and my seed script populated the slug table with unique identifiers.

However, when using Prisma, I'm unable to get the slug column back from Supabase.

[
    {
        "id": 1,
        "title": "Combat Patrol",
        "description": "The smallest and fastest game size, typically using the contents of a single Combat Patrol box set. It's designed for quick, balanced games that are great for beginners or when you have limited time.",
        "icon": null,
        "pointsMin": 0,
        "pointsMax": 500,
        "createdAt": "2025-06-07T03:49:18.204Z",
        "updatedAt": "2025-06-07T13:59:15.581Z"
    },
 ...
]


Is there something unique with a column named slug? Do I need to interact with the slug column?

Things I have tried:
- npx prisma db pull
- npx prima db push
Was this page helpful?