storemw-core-api 1.0.75 → 1.0.76
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,7 +1,7 @@
|
|
|
1
1
|
import { user_props, Prisma } from "@prisma/client";
|
|
2
2
|
import { DefaultOmitFields } from "../../lib";
|
|
3
3
|
import { DefaultServiceProps } from "../../utils";
|
|
4
|
-
declare const primaryKey = "
|
|
4
|
+
declare const primaryKey = "user_prop_id";
|
|
5
5
|
export declare const ModelUserPropFields: {
|
|
6
6
|
type: "type";
|
|
7
7
|
createdatetime: "createdatetime";
|
|
@@ -12,7 +12,7 @@ export declare const ModelUserPropFields: {
|
|
|
12
12
|
istrash: "istrash";
|
|
13
13
|
accountid: "accountid";
|
|
14
14
|
user_id: "user_id";
|
|
15
|
-
|
|
15
|
+
user_prop_id: "user_prop_id";
|
|
16
16
|
props_value: "props_value";
|
|
17
17
|
props_id: "props_id";
|
|
18
18
|
props_numeric: "props_numeric";
|
|
@@ -44,7 +44,7 @@ export type ModelUserPropListProps = {
|
|
|
44
44
|
limit?: number;
|
|
45
45
|
};
|
|
46
46
|
export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
47
|
-
primaryKey: "type" | "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "
|
|
47
|
+
primaryKey: "type" | "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "user_prop_id" | "props_value" | "props_id" | "props_numeric" | "props_timestamp" | "props_integer";
|
|
48
48
|
getFields: (prefix?: string, excludeKeywords?: string[]) => Promise<{
|
|
49
49
|
name: string;
|
|
50
50
|
type: string;
|
|
@@ -61,7 +61,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
61
61
|
istrash: boolean | null;
|
|
62
62
|
accountid: bigint;
|
|
63
63
|
user_id: bigint | null;
|
|
64
|
-
|
|
64
|
+
user_prop_id: bigint;
|
|
65
65
|
props_value: string | null;
|
|
66
66
|
props_id: bigint;
|
|
67
67
|
props_numeric: Prisma.Decimal;
|
|
@@ -81,7 +81,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
81
81
|
istrash: boolean | null;
|
|
82
82
|
accountid: bigint;
|
|
83
83
|
user_id: bigint | null;
|
|
84
|
-
|
|
84
|
+
user_prop_id: bigint;
|
|
85
85
|
props_value: string | null;
|
|
86
86
|
props_id: bigint;
|
|
87
87
|
props_numeric: Prisma.Decimal;
|
|
@@ -102,7 +102,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
102
102
|
istrash: boolean | null;
|
|
103
103
|
accountid: bigint;
|
|
104
104
|
user_id: bigint | null;
|
|
105
|
-
|
|
105
|
+
user_prop_id: bigint;
|
|
106
106
|
props_value: string | null;
|
|
107
107
|
props_id: bigint;
|
|
108
108
|
props_numeric: Prisma.Decimal;
|
|
@@ -119,7 +119,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
119
119
|
istrash: boolean | null;
|
|
120
120
|
accountid: bigint;
|
|
121
121
|
user_id: bigint | null;
|
|
122
|
-
|
|
122
|
+
user_prop_id: bigint;
|
|
123
123
|
props_value: string | null;
|
|
124
124
|
props_id: bigint;
|
|
125
125
|
props_numeric: Prisma.Decimal;
|
|
@@ -130,7 +130,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
130
130
|
where?: Record<string, any>;
|
|
131
131
|
}) => Promise<number>;
|
|
132
132
|
aggregate: ({ field, operation, where, }: {
|
|
133
|
-
field: "type" | "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "
|
|
133
|
+
field: "type" | "createdatetime" | "createuserid" | "updatedatetime" | "updateuserid" | "isdelete" | "istrash" | "accountid" | "user_id" | "user_prop_id" | "props_value" | "props_id" | "props_numeric" | "props_timestamp" | "props_integer";
|
|
134
134
|
operation?: "sum" | "avg" | "min" | "max" | "count";
|
|
135
135
|
where?: Record<string, any>;
|
|
136
136
|
}) => Promise<number>;
|
|
@@ -147,7 +147,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
147
147
|
istrash: boolean | null;
|
|
148
148
|
accountid: bigint;
|
|
149
149
|
user_id: bigint | null;
|
|
150
|
-
|
|
150
|
+
user_prop_id: bigint;
|
|
151
151
|
props_value: string | null;
|
|
152
152
|
props_id: bigint;
|
|
153
153
|
props_numeric: Prisma.Decimal;
|
|
@@ -165,7 +165,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
165
165
|
istrash: boolean | null;
|
|
166
166
|
accountid: bigint;
|
|
167
167
|
user_id: bigint | null;
|
|
168
|
-
|
|
168
|
+
user_prop_id: bigint;
|
|
169
169
|
props_value: string | null;
|
|
170
170
|
props_id: bigint;
|
|
171
171
|
props_numeric: Prisma.Decimal;
|
|
@@ -185,7 +185,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
185
185
|
istrash: boolean | null;
|
|
186
186
|
accountid: bigint;
|
|
187
187
|
user_id: bigint | null;
|
|
188
|
-
|
|
188
|
+
user_prop_id: bigint;
|
|
189
189
|
props_value: string | null;
|
|
190
190
|
props_id: bigint;
|
|
191
191
|
props_numeric: Prisma.Decimal;
|
|
@@ -204,7 +204,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
204
204
|
istrash: boolean | null;
|
|
205
205
|
accountid: bigint;
|
|
206
206
|
user_id: bigint | null;
|
|
207
|
-
|
|
207
|
+
user_prop_id: bigint;
|
|
208
208
|
props_value: string | null;
|
|
209
209
|
props_id: bigint;
|
|
210
210
|
props_numeric: Prisma.Decimal;
|
|
@@ -223,7 +223,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
223
223
|
istrash: boolean | null;
|
|
224
224
|
accountid: bigint;
|
|
225
225
|
user_id: bigint | null;
|
|
226
|
-
|
|
226
|
+
user_prop_id: bigint;
|
|
227
227
|
props_value: string | null;
|
|
228
228
|
props_id: bigint;
|
|
229
229
|
props_numeric: Prisma.Decimal;
|
|
@@ -243,7 +243,7 @@ export declare const UserPropModel: ({ ...rest }: DefaultServiceProps) => {
|
|
|
243
243
|
istrash: boolean | null;
|
|
244
244
|
accountid: bigint;
|
|
245
245
|
user_id: bigint | null;
|
|
246
|
-
|
|
246
|
+
user_prop_id: bigint;
|
|
247
247
|
props_value: string | null;
|
|
248
248
|
props_id: bigint;
|
|
249
249
|
props_numeric: Prisma.Decimal;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserPropModel = exports.ModelUserPropFields = void 0;
|
|
4
4
|
const lib_1 = require("../../lib");
|
|
5
|
-
const primaryKey = "
|
|
5
|
+
const primaryKey = "user_prop_id";
|
|
6
6
|
exports.ModelUserPropFields = (0, lib_1.getFieldsByType)();
|
|
7
7
|
const UserPropModel = ({ ...rest }) => (0, lib_1.ModelFactory)({
|
|
8
8
|
...rest,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserPropModel.js","sourceRoot":"","sources":["../../../src/models/user/UserPropModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,
|
|
1
|
+
{"version":3,"file":"UserPropModel.js","sourceRoot":"","sources":["../../../src/models/user/UserPropModel.ts"],"names":[],"mappings":";;;AACA,+BAAyE;AAGzE,MAAM,UAAU,GAAG,cAAc,CAAC;AAErB,QAAA,mBAAmB,GAAG,IAAA,qBAAe,GAAc,CAAC;AAkC1D,MAAM,aAAa,GAAG,CAAC,EAAE,GAAG,IAAI,EAAuB,EAAE,EAAE,CAC9D,IAAA,kBAAY,EAAqE;IAC7E,GAAG,IAAI;IACP,SAAS,EAAE,YAAY;IACvB,UAAU;CACb,CAAC,CAAC;AALM,QAAA,aAAa,iBAKnB","sourcesContent":["import { PrismaClient, user_props, Prisma } from \"@prisma/client\";\nimport { ModelFactory, DefaultOmitFields, getFieldsByType } from \"@/lib\";\nimport { DefaultServiceProps } from \"@/utils\";\n\nconst primaryKey = \"user_prop_id\";\n\nexport const ModelUserPropFields = getFieldsByType<user_props>();\n\nexport type ModelUserProp = user_props;\n\nexport type ModelUserPropOmitFields = typeof primaryKey | DefaultOmitFields;\n\nexport type ModelUserPropCreateProps = {\n data: Omit<Prisma.user_propsUncheckedCreateInput, ModelUserPropOmitFields>;\n};\n\nexport type ModelUserPropUpdateProps = {\n id: number;\n data: Omit<Prisma.user_propsUncheckedUpdateInput, ModelUserPropOmitFields>;\n};\n\nexport type ModelUserPropTrashProps = {\n ids: number[];\n};\n\nexport type ModelUserPropRemoveProps = {\n id: number;\n};\n\nexport type ModelUserPropGetProps = {\n id: number;\n};\n\nexport type ModelUserPropListProps = {\n where?: Prisma.user_propsWhereInput;\n orderBy?: Prisma.user_propsOrderByWithRelationInput | Prisma.user_propsOrderByWithRelationInput[];\n offset?: number;\n limit?: number;\n};\n\nexport const UserPropModel = ({ ...rest }: DefaultServiceProps) =>\n ModelFactory<PrismaClient, \"user_props\", PrismaClient[\"user_props\"], user_props>({\n ...rest,\n modelName: \"user_props\",\n primaryKey\n });\n"]}
|
|
@@ -30,7 +30,7 @@ export declare const UserPropService: (props: UserPropServiceProps) => {
|
|
|
30
30
|
istrash: boolean | null;
|
|
31
31
|
accountid: bigint;
|
|
32
32
|
user_id: bigint | null;
|
|
33
|
-
|
|
33
|
+
user_prop_id: bigint;
|
|
34
34
|
props_value: string | null;
|
|
35
35
|
props_id: bigint;
|
|
36
36
|
props_numeric: Prisma.Decimal;
|
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -288,7 +288,7 @@ model locations {
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
model user_props {
|
|
291
|
-
|
|
291
|
+
user_prop_id BigInt @id(map: "cl_user_props_pkey") @default(autoincrement())
|
|
292
292
|
user_id BigInt?
|
|
293
293
|
type String? @db.VarChar(256)
|
|
294
294
|
props_value String? @db.VarChar(256)
|