/model-with-enum-and-json.prisma Secret
Created
February 27, 2024 03:55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 = "postgresql" | |
url = env("DATABASE_URL") | |
} | |
enum UserRole { | |
mobileAppUser | |
misAdmin | |
misSuperAdmin | |
} | |
model MisUsers { | |
uid String @unique @id | |
role UserRole | |
name String | |
address Json | |
email String | |
createdAt DateTime @default(now()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment