prisma_dart_generator 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,107 +0,0 @@
1
- // This is your Prisma schema file,
2
- // learn more about it in the docs: https://pris.ly/d/prisma-schema
3
-
4
- // Looking for ways to speed up your queries, or scale easily with your serverless or edge functions?
5
- // Try Prisma Accelerate: https://pris.ly/cli/accelerate-init
6
-
7
- generator client {
8
- provider = "prisma-client"
9
- output = "../generated/prisma"
10
- }
11
-
12
- datasource db {
13
- provider = "postgresql"
14
- }
15
-
16
- model User {
17
- id String @id @default(uuid())
18
- name String
19
- email String @unique
20
- password String
21
- createdAt DateTime @default(now())
22
- updatedAt DateTime @updatedAt
23
- posts Post[]
24
- userProfiles UserProfile[]
25
- }
26
-
27
- model Post {
28
- id String @id @default(uuid())
29
- title String
30
- content String
31
- createdAt DateTime @default(now())
32
- updatedAt DateTime @updatedAt
33
- authorId String
34
- author User @relation(fields: [authorId], references: [id])
35
- comments Comment[]
36
- category Category? @relation(fields: [categoryId], references: [id])
37
- categoryId String?
38
- tag Tag? @relation(fields: [tagId], references: [id])
39
- tagId String?
40
- images Image[]
41
- }
42
-
43
- model Comment {
44
- id String @id @default(uuid())
45
- content String
46
- createdAt DateTime @default(now())
47
- updatedAt DateTime @updatedAt
48
- postId String
49
- post Post @relation(fields: [postId], references: [id])
50
- }
51
-
52
- model Category {
53
- id String @id @default(uuid())
54
- name String
55
- createdAt DateTime @default(now())
56
- updatedAt DateTime @updatedAt
57
- posts Post[]
58
- }
59
-
60
- model Tag {
61
- id String @id @default(uuid())
62
- name String
63
- createdAt DateTime @default(now())
64
- updatedAt DateTime @updatedAt
65
- posts Post[]
66
- }
67
-
68
- model Image {
69
- id String @id @default(uuid())
70
- url String
71
- createdAt DateTime @default(now())
72
- updatedAt DateTime @updatedAt
73
- postId String
74
- post Post @relation(fields: [postId], references: [id])
75
- }
76
-
77
- model UserProfile {
78
- id String @id @default(uuid())
79
- userId String
80
- user User @relation(fields: [userId], references: [id])
81
- createdAt DateTime @default(now())
82
- updatedAt DateTime @updatedAt
83
- }
84
-
85
- enum UserRole {
86
- ADMIN
87
- USER
88
- }
89
-
90
- enum UserStatus {
91
- ACTIVE
92
- INACTIVE
93
- PENDING
94
- BLOCKED
95
- }
96
-
97
- enum UserGender {
98
- MALE
99
- FEMALE
100
- OTHER
101
- }
102
-
103
- enum UserSubscription {
104
- FREE
105
- PREMIUM
106
- ENTERPRISE
107
- }
@@ -1,16 +0,0 @@
1
-
2
- // This file was generated by Prisma and assumes you have installed the following:
3
- // npm install --save-dev prisma dotenv
4
- import "dotenv/config";
5
- import { defineConfig, env } from "prisma/config";
6
-
7
- export default defineConfig({
8
- schema: "prisma/schema.prisma",
9
- migrations: {
10
- path: "prisma/migrations",
11
- },
12
- engine: "classic",
13
- datasource: {
14
- url: env("DATABASE_URL"),
15
- },
16
- });
package/tsconfig.json DELETED
@@ -1,29 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- // Environment setup & latest features
4
- "lib": ["ESNext"],
5
- "target": "ESNext",
6
- "module": "Preserve",
7
- "moduleDetection": "force",
8
- "jsx": "react-jsx",
9
- "allowJs": true,
10
-
11
- // Bundler mode
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "noEmit": true,
16
-
17
- // Best practices
18
- "strict": true,
19
- "skipLibCheck": true,
20
- "noFallthroughCasesInSwitch": true,
21
- "noUncheckedIndexedAccess": true,
22
- "noImplicitOverride": true,
23
-
24
- // Some stricter flags (disabled by default)
25
- "noUnusedLocals": false,
26
- "noUnusedParameters": false,
27
- "noPropertyAccessFromIndexSignature": false
28
- }
29
- }