lang-database 1.1.1 → 1.3.0

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.
package/.env-dev CHANGED
@@ -1,3 +1,3 @@
1
- DATABASE_URL="file:c:/syke/devel/sqlite/lang.db"
2
- SHADOW_DATABASE_URL="file:c:/syke/devel/sqlite/lang-shadow.db"
1
+ DATABASE_URL="postgresql://myuser:mypass@localhost:5432/ez_dev"
2
+ SHADOW_DATABASE_URL="postgresql://myuser:mypass@localhost:5432/ez_dev_shadow"
3
3
  JWT_KEY="This is my jwt key"
package/.env-test CHANGED
@@ -1,4 +1,4 @@
1
- DATABASE_URL="file:c:/syke/devel/sqlite/lang-test.db"
2
- SHADOW_DATABASE_URL="file:c:/syke/devel/sqlite/lang-test-shadow.db"
1
+ DATABASE_URL="postgresql://myuser:mypass@localhost:5432/ez_test"
2
+ SHADOW_DATABASE_URL="postgresql://myuser:mypass@localhost:5432/ez_test_shadow"
3
3
  JWT_KEY="This is my jwt key"
4
4
  IS_TESTING=true
@@ -88,13 +88,6 @@ Prisma.NullTypes = {
88
88
  // https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
89
89
  function makeEnum(x) { return x; }
90
90
 
91
- exports.Prisma.AdminScalarFieldEnum = makeEnum({
92
- id: 'id',
93
- email: 'email',
94
- name: 'name',
95
- password: 'password'
96
- });
97
-
98
91
  exports.Prisma.AnswerScalarFieldEnum = makeEnum({
99
92
  id: 'id',
100
93
  userId: 'userId',
@@ -117,7 +110,7 @@ exports.Prisma.GoogleUserScalarFieldEnum = makeEnum({
117
110
 
118
111
  exports.Prisma.PackScalarFieldEnum = makeEnum({
119
112
  id: 'id',
120
- adminId: 'adminId',
113
+ teacherId: 'teacherId',
121
114
  name: 'name',
122
115
  currentPrice: 'currentPrice'
123
116
  });
@@ -129,12 +122,27 @@ exports.Prisma.PurchaseScalarFieldEnum = makeEnum({
129
122
  price: 'price'
130
123
  });
131
124
 
125
+ exports.Prisma.QueryMode = makeEnum({
126
+ default: 'default',
127
+ insensitive: 'insensitive'
128
+ });
129
+
132
130
  exports.Prisma.SortOrder = makeEnum({
133
131
  asc: 'asc',
134
132
  desc: 'desc'
135
133
  });
136
134
 
135
+ exports.Prisma.TeacherScalarFieldEnum = makeEnum({
136
+ id: 'id',
137
+ email: 'email',
138
+ name: 'name',
139
+ password: 'password'
140
+ });
141
+
137
142
  exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
143
+ ReadUncommitted: 'ReadUncommitted',
144
+ ReadCommitted: 'ReadCommitted',
145
+ RepeatableRead: 'RepeatableRead',
138
146
  Serializable: 'Serializable'
139
147
  });
140
148
 
@@ -158,7 +166,7 @@ exports.Prisma.ModelName = makeEnum({
158
166
  UserCard: 'UserCard',
159
167
  Pack: 'Pack',
160
168
  User: 'User',
161
- Admin: 'Admin',
169
+ Teacher: 'Teacher',
162
170
  GoogleUser: 'GoogleUser',
163
171
  Answer: 'Answer',
164
172
  Purchase: 'Purchase'