diff --git a/UDL-samples/Prisma_PSL_byGeket.prisma b/UDL-samples/Prisma_PSL_byGeket.prisma new file mode 100644 index 0000000..4802d80 --- /dev/null +++ b/UDL-samples/Prisma_PSL_byGeket.prisma @@ -0,0 +1,56 @@ +// This is the Prisma schema file for a blog application +// https://pris.ly/d/prisma-schema + +generator client { + provider = "prisma-client-js" +} + +datasource db { + provider = "postgresql" + url = env("DATABASE_URL") +} + +model User { + id Int @id @default(autoincrement()) + email String @unique + name String? + posts Post[] + profile Profile? + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt +} + +model Profile { + id Int @id @default(autoincrement()) + bio String? + user User @relation(fields: [userId], references: [id]) + userId Int @unique +} + +model Post { + id Int @id @default(autoincrement()) + title String + content String? + published Boolean @default(false) + author User @relation(fields: [authorId], references: [id]) + authorId Int + categories Category[] + createdAt DateTime @default(now()) + updatedAt DateTime @updatedAt + + @@index([authorId]) +} + +model Category { + id Int @id @default(autoincrement()) + name String @unique + posts Post[] + + @@map("categories") +} + +enum Role { + USER + ADMIN + MODERATOR +} \ No newline at end of file diff --git a/UDLs/Prisma_PSL_byGeket.xml b/UDLs/Prisma_PSL_byGeket.xml new file mode 100644 index 0000000..a98ca55 --- /dev/null +++ b/UDLs/Prisma_PSL_byGeket.xml @@ -0,0 +1,64 @@ + + + + + + + + 00// 01 02 03/* 04*/ + + + + + + + + ( ) [ ] , ? : = + + { + + } + + + + + + + model enum datasource generator type view + String Int Float Boolean DateTime Json Bytes Decimal BigInt Unsupported + @id @default @unique @relation @map @updatedAt @ignore @db + @@id @@unique @@index @@map @@ignore @@schema @@shardKey @@fulltext + autoincrement cuid uuid ulid nanoid now auto dbgenerated sequence env true false null + provider url output previewFeatures engineType binaryTargets fields references onDelete onUpdate name shadowDatabaseUrl directUrl relationMode extensions runtime moduleFormat generatedFileExtension importFileExtension + postgresql mysql sqlite sqlserver mongodb cockroachdb Cascade Restrict NoAction SetNull SetDefault Asc Desc + prisma-client-js prisma-client native library binary cjs esm foreignKeys prisma ObjectId Uuid Text VarChar Char SmallInt Double Date Time Timestamp JsonB ByteA + 00" 01\ 02" 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/udl-list.json b/udl-list.json index 4ce4b3d..26c3b46 100644 --- a/udl-list.json +++ b/udl-list.json @@ -2570,6 +2570,15 @@ "autoCompletion": "Practical Programming Language (PPL)", "autoCompletionAuthor": "generate_ac.py" }, + { + "id-name": "Prisma_PSL_byGeket", + "display-name": "Prisma Schema Language (PSL)", + "version": "Wed, 26 Nov 2025 8:00:00 GMT", + "sample": "Prisma_PSL_byGeket.prisma", + "repository": "", + "description": "Prisma Schema Language (PSL) syntax highlighting for Prisma ORM schema files", + "author": "Jones" + }, { "id-name": "PROC_V1_byArmandoHerrazDurango", "display-name": "Oracle PRO-C", diff --git a/udl-list.md b/udl-list.md index 490d0c0..946ad95 100644 --- a/udl-list.md +++ b/udl-list.md @@ -264,6 +264,7 @@ | [Powerpro](./UDLs/Powerpro_byBrotherGabriel-Marie.xml) | [Brother Gabriel-Marie](mailto:brgabriel@sspx.com) | Powerpro | | [Powershell](./UDLs/Powershell_by-jongalloway.xml) | [jongalloway](mailto:jongalloway@users.sourceforge.net) | Powershell | | [Practical Programming Language (PPL)](./UDLs/PPL_byOscarHenryTejera.xml) | [Oscar Henry Tejera](mailto:henrytejera@gmail.com) | Practical Programming Language (PPL) | +| [Prisma Schema Language](./UDLs/Prisma_byJones.xml) | Jones | Prisma Schema Language (PSL) syntax highlighting for Prisma ORM schema files | | [Progress4GL](./UDLs/Progress4GL_by-jefb.xml) | [jefb](mailto:jefb@users.sourceforge.net) | Progress4GL | | [Prolog (GNU)](./UDLs/Prolog-GNU_byDanielDiaz.xml) | [Daniel Diaz](mailto:Daniel.Diaz@univ-paris1.fr) | Prolog (GNU) | | [Prolog (SWI)](./UDLs/Prolog-SWI_byAnthonyBonnier.xml) | [Anthony Bonnier](mailto:anthonybonnier@gmail.com) | Prolog (SWI) |