@casekit/orm2-fixtures 1.0.0 → 1.0.1
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/build/index.d.ts +528 -0
- package/{src/index.ts → build/index.js} +1 -9
- package/build/models/audit.d.ts +15 -0
- package/{src/models/audit.ts → build/models/audit.js} +1 -3
- package/build/models/color.d.ts +11 -0
- package/{src/models/color.ts → build/models/color.js} +1 -3
- package/build/models/counter.d.ts +8 -0
- package/build/models/counter.js +3 -0
- package/build/models/friendship.d.ts +32 -0
- package/{src/models/friendship.ts → build/models/friendship.js} +1 -3
- package/build/models/friendshipStats.d.ts +38 -0
- package/{src/models/friendshipStats.ts → build/models/friendshipStats.js} +1 -3
- package/build/models/index.d.ts +512 -0
- package/{src/models/index.ts → build/models/index.js} +0 -1
- package/build/models/kitchenSink.d.ts +209 -0
- package/{src/models/kitchenSink.ts → build/models/kitchenSink.js} +1 -3
- package/build/models/like.d.ts +50 -0
- package/{src/models/like.ts → build/models/like.js} +3 -5
- package/build/models/post.d.ts +87 -0
- package/{src/models/post.ts → build/models/post.js} +6 -11
- package/build/models/user.d.ts +62 -0
- package/{src/models/user.ts → build/models/user.js} +2 -5
- package/package.json +9 -9
- package/src/models/counter.ts +0 -5
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
export declare const kitchenSink: {
|
|
2
|
+
readonly fields: {
|
|
3
|
+
readonly id: {
|
|
4
|
+
readonly type: "serial";
|
|
5
|
+
readonly primaryKey: true;
|
|
6
|
+
};
|
|
7
|
+
readonly charField: {
|
|
8
|
+
readonly type: "char";
|
|
9
|
+
};
|
|
10
|
+
readonly characterField: {
|
|
11
|
+
readonly type: "character";
|
|
12
|
+
};
|
|
13
|
+
readonly characterNField: {
|
|
14
|
+
readonly type: "character(24)";
|
|
15
|
+
};
|
|
16
|
+
readonly varcharField: {
|
|
17
|
+
readonly type: "character varying";
|
|
18
|
+
};
|
|
19
|
+
readonly varcharNField: {
|
|
20
|
+
readonly type: "character varying(24)";
|
|
21
|
+
};
|
|
22
|
+
readonly textField: {
|
|
23
|
+
readonly type: "text";
|
|
24
|
+
};
|
|
25
|
+
readonly bitField: {
|
|
26
|
+
readonly type: "bit";
|
|
27
|
+
};
|
|
28
|
+
readonly bitNField: {
|
|
29
|
+
readonly type: "bit(3)";
|
|
30
|
+
};
|
|
31
|
+
readonly bitVaryingField: {
|
|
32
|
+
readonly type: "bit varying";
|
|
33
|
+
};
|
|
34
|
+
readonly bitVaryingNField: {
|
|
35
|
+
readonly type: "bit varying(3)";
|
|
36
|
+
};
|
|
37
|
+
readonly numericField: {
|
|
38
|
+
readonly type: "numeric";
|
|
39
|
+
};
|
|
40
|
+
readonly numericPrecisionField: {
|
|
41
|
+
readonly type: "numeric(5,2)";
|
|
42
|
+
};
|
|
43
|
+
readonly integerField: {
|
|
44
|
+
readonly type: "integer";
|
|
45
|
+
};
|
|
46
|
+
readonly bigintField: {
|
|
47
|
+
readonly type: "bigint";
|
|
48
|
+
};
|
|
49
|
+
readonly smallintField: {
|
|
50
|
+
readonly type: "smallint";
|
|
51
|
+
};
|
|
52
|
+
readonly serialField: {
|
|
53
|
+
readonly type: "serial";
|
|
54
|
+
};
|
|
55
|
+
readonly bigserialField: {
|
|
56
|
+
readonly type: "bigserial";
|
|
57
|
+
};
|
|
58
|
+
readonly smallserialField: {
|
|
59
|
+
readonly type: "smallserial";
|
|
60
|
+
};
|
|
61
|
+
readonly doublePrecisionField: {
|
|
62
|
+
readonly type: "double precision";
|
|
63
|
+
};
|
|
64
|
+
readonly realField: {
|
|
65
|
+
readonly type: "real";
|
|
66
|
+
};
|
|
67
|
+
readonly moneyField: {
|
|
68
|
+
readonly type: "money";
|
|
69
|
+
};
|
|
70
|
+
readonly booleanField: {
|
|
71
|
+
readonly type: "boolean";
|
|
72
|
+
};
|
|
73
|
+
readonly uuidField: {
|
|
74
|
+
readonly type: "uuid";
|
|
75
|
+
};
|
|
76
|
+
readonly dateField: {
|
|
77
|
+
readonly type: "date";
|
|
78
|
+
};
|
|
79
|
+
readonly timeField: {
|
|
80
|
+
readonly type: "time";
|
|
81
|
+
};
|
|
82
|
+
readonly timeWithPrecisionField: {
|
|
83
|
+
readonly type: "time(3)";
|
|
84
|
+
};
|
|
85
|
+
readonly timetzField: {
|
|
86
|
+
readonly type: "timetz";
|
|
87
|
+
};
|
|
88
|
+
readonly timeWithTzField: {
|
|
89
|
+
readonly type: "time with time zone";
|
|
90
|
+
};
|
|
91
|
+
readonly timestampField: {
|
|
92
|
+
readonly type: "timestamp";
|
|
93
|
+
};
|
|
94
|
+
readonly timestampWithPrecisionField: {
|
|
95
|
+
readonly type: "timestamp(6)";
|
|
96
|
+
};
|
|
97
|
+
readonly timestamptzField: {
|
|
98
|
+
readonly type: "timestamptz";
|
|
99
|
+
};
|
|
100
|
+
readonly timestampWithTzField: {
|
|
101
|
+
readonly type: "timestamp with time zone";
|
|
102
|
+
};
|
|
103
|
+
readonly jsonField: {
|
|
104
|
+
readonly type: "json";
|
|
105
|
+
};
|
|
106
|
+
readonly jsonbField: {
|
|
107
|
+
readonly type: "jsonb";
|
|
108
|
+
};
|
|
109
|
+
readonly lineField: {
|
|
110
|
+
readonly type: "line";
|
|
111
|
+
};
|
|
112
|
+
readonly lsegField: {
|
|
113
|
+
readonly type: "lseg";
|
|
114
|
+
};
|
|
115
|
+
readonly boxField: {
|
|
116
|
+
readonly type: "box";
|
|
117
|
+
};
|
|
118
|
+
readonly polygonField: {
|
|
119
|
+
readonly type: "polygon";
|
|
120
|
+
};
|
|
121
|
+
readonly cidrField: {
|
|
122
|
+
readonly type: "cidr";
|
|
123
|
+
};
|
|
124
|
+
readonly inetField: {
|
|
125
|
+
readonly type: "inet";
|
|
126
|
+
};
|
|
127
|
+
readonly macaddrField: {
|
|
128
|
+
readonly type: "macaddr";
|
|
129
|
+
};
|
|
130
|
+
readonly macaddr8Field: {
|
|
131
|
+
readonly type: "macaddr8";
|
|
132
|
+
};
|
|
133
|
+
readonly byteaField: {
|
|
134
|
+
readonly type: "bytea";
|
|
135
|
+
};
|
|
136
|
+
readonly xmlField: {
|
|
137
|
+
readonly type: "xml";
|
|
138
|
+
};
|
|
139
|
+
readonly pathField: {
|
|
140
|
+
readonly type: "path";
|
|
141
|
+
};
|
|
142
|
+
readonly tsqueryField: {
|
|
143
|
+
readonly type: "tsquery";
|
|
144
|
+
};
|
|
145
|
+
readonly tsvectorField: {
|
|
146
|
+
readonly type: "tsvector";
|
|
147
|
+
};
|
|
148
|
+
readonly int4rangeField: {
|
|
149
|
+
readonly type: "int4range";
|
|
150
|
+
};
|
|
151
|
+
readonly int8rangeField: {
|
|
152
|
+
readonly type: "int8range";
|
|
153
|
+
};
|
|
154
|
+
readonly numrangeField: {
|
|
155
|
+
readonly type: "numrange";
|
|
156
|
+
};
|
|
157
|
+
readonly tsrangeField: {
|
|
158
|
+
readonly type: "tsrange";
|
|
159
|
+
};
|
|
160
|
+
readonly tstzrangeField: {
|
|
161
|
+
readonly type: "tstzrange";
|
|
162
|
+
};
|
|
163
|
+
readonly daterangeField: {
|
|
164
|
+
readonly type: "daterange";
|
|
165
|
+
};
|
|
166
|
+
readonly int2vectorField: {
|
|
167
|
+
readonly type: "int2vector";
|
|
168
|
+
};
|
|
169
|
+
readonly oidField: {
|
|
170
|
+
readonly type: "oid";
|
|
171
|
+
};
|
|
172
|
+
readonly pglsnField: {
|
|
173
|
+
readonly type: "pg_lsn";
|
|
174
|
+
};
|
|
175
|
+
readonly regclassField: {
|
|
176
|
+
readonly type: "regclass";
|
|
177
|
+
};
|
|
178
|
+
readonly regnamespaceField: {
|
|
179
|
+
readonly type: "regnamespace";
|
|
180
|
+
};
|
|
181
|
+
readonly regprocField: {
|
|
182
|
+
readonly type: "regproc";
|
|
183
|
+
};
|
|
184
|
+
readonly regprocedureField: {
|
|
185
|
+
readonly type: "regprocedure";
|
|
186
|
+
};
|
|
187
|
+
readonly regroleField: {
|
|
188
|
+
readonly type: "regrole";
|
|
189
|
+
};
|
|
190
|
+
readonly regtypeField: {
|
|
191
|
+
readonly type: "regtype";
|
|
192
|
+
};
|
|
193
|
+
readonly tidField: {
|
|
194
|
+
readonly type: "tid";
|
|
195
|
+
};
|
|
196
|
+
readonly xidField: {
|
|
197
|
+
readonly type: "xid";
|
|
198
|
+
};
|
|
199
|
+
readonly txidSnapshotField: {
|
|
200
|
+
readonly type: "txid_snapshot";
|
|
201
|
+
};
|
|
202
|
+
readonly arrayField: {
|
|
203
|
+
readonly type: "text[]";
|
|
204
|
+
};
|
|
205
|
+
readonly multiArrayField: {
|
|
206
|
+
readonly type: "text[][][]";
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { ModelDefinition } from "@casekit/orm2-schema";
|
|
2
|
-
|
|
3
1
|
export const kitchenSink = {
|
|
4
2
|
fields: {
|
|
5
3
|
id: { type: "serial", primaryKey: true },
|
|
@@ -74,4 +72,4 @@ export const kitchenSink = {
|
|
|
74
72
|
arrayField: { type: "text[]" },
|
|
75
73
|
multiArrayField: { type: "text[][][]" },
|
|
76
74
|
},
|
|
77
|
-
}
|
|
75
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const like: {
|
|
2
|
+
readonly fields: {
|
|
3
|
+
readonly id: {
|
|
4
|
+
readonly type: "serial";
|
|
5
|
+
readonly primaryKey: true;
|
|
6
|
+
};
|
|
7
|
+
readonly userId: {
|
|
8
|
+
readonly type: "integer";
|
|
9
|
+
readonly references: {
|
|
10
|
+
readonly model: "user";
|
|
11
|
+
readonly field: "id";
|
|
12
|
+
readonly onDelete: "CASCADE";
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly postId: {
|
|
16
|
+
readonly type: "integer";
|
|
17
|
+
readonly references: {
|
|
18
|
+
readonly model: "post";
|
|
19
|
+
readonly field: "id";
|
|
20
|
+
readonly onDelete: "CASCADE";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
readonly createdAt: {
|
|
24
|
+
readonly type: "timestamp";
|
|
25
|
+
readonly default: import("@casekit/sql").SQLStatement<import("pg").QueryResultRow>;
|
|
26
|
+
};
|
|
27
|
+
readonly deletedAt: {
|
|
28
|
+
readonly type: "timestamp";
|
|
29
|
+
readonly nullable: true;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly uniqueConstraints: [{
|
|
33
|
+
readonly fields: ["userId", "postId"];
|
|
34
|
+
readonly where: import("@casekit/sql").SQLStatement<import("pg").QueryResultRow>;
|
|
35
|
+
}];
|
|
36
|
+
readonly relations: {
|
|
37
|
+
readonly user: {
|
|
38
|
+
readonly type: "N:1";
|
|
39
|
+
readonly model: "user";
|
|
40
|
+
readonly fromField: "userId";
|
|
41
|
+
readonly toField: "id";
|
|
42
|
+
};
|
|
43
|
+
readonly post: {
|
|
44
|
+
readonly type: "N:1";
|
|
45
|
+
readonly model: "post";
|
|
46
|
+
readonly fromField: "postId";
|
|
47
|
+
readonly toField: "id";
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { ModelDefinition } from "@casekit/orm2-schema";
|
|
2
1
|
import { sql } from "@casekit/sql";
|
|
3
|
-
|
|
4
2
|
export const like = {
|
|
5
3
|
fields: {
|
|
6
4
|
id: { type: "serial", primaryKey: true },
|
|
@@ -20,11 +18,11 @@ export const like = {
|
|
|
20
18
|
onDelete: "CASCADE",
|
|
21
19
|
},
|
|
22
20
|
},
|
|
23
|
-
createdAt: { type: "timestamp", default: sql`now()` },
|
|
21
|
+
createdAt: { type: "timestamp", default: sql `now()` },
|
|
24
22
|
deletedAt: { type: "timestamp", nullable: true },
|
|
25
23
|
},
|
|
26
24
|
uniqueConstraints: [
|
|
27
|
-
{ fields: ["userId", "postId"], where: sql`deleted_at IS NULL` },
|
|
25
|
+
{ fields: ["userId", "postId"], where: sql `deleted_at IS NULL` },
|
|
28
26
|
],
|
|
29
27
|
relations: {
|
|
30
28
|
user: {
|
|
@@ -40,4 +38,4 @@ export const like = {
|
|
|
40
38
|
toField: "id",
|
|
41
39
|
},
|
|
42
40
|
},
|
|
43
|
-
}
|
|
41
|
+
};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const post: {
|
|
3
|
+
readonly fields: {
|
|
4
|
+
readonly id: {
|
|
5
|
+
readonly type: "serial";
|
|
6
|
+
readonly primaryKey: true;
|
|
7
|
+
};
|
|
8
|
+
readonly title: {
|
|
9
|
+
readonly type: "text";
|
|
10
|
+
};
|
|
11
|
+
readonly content: {
|
|
12
|
+
readonly type: "text";
|
|
13
|
+
};
|
|
14
|
+
readonly tags: {
|
|
15
|
+
readonly type: "text[]";
|
|
16
|
+
readonly default: "{}";
|
|
17
|
+
};
|
|
18
|
+
readonly authorId: {
|
|
19
|
+
readonly type: "integer";
|
|
20
|
+
readonly references: {
|
|
21
|
+
readonly model: "user";
|
|
22
|
+
readonly field: "id";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly backgroundColorValue: {
|
|
26
|
+
readonly type: "text";
|
|
27
|
+
readonly nullable: true;
|
|
28
|
+
readonly references: {
|
|
29
|
+
readonly model: "color";
|
|
30
|
+
readonly field: "hex";
|
|
31
|
+
readonly onDelete: "SET NULL";
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
readonly metadata: {
|
|
35
|
+
readonly type: "jsonb";
|
|
36
|
+
readonly default: "{}";
|
|
37
|
+
readonly zodSchema: z.ZodObject<{
|
|
38
|
+
foo: z.ZodEnum<{
|
|
39
|
+
b: "b";
|
|
40
|
+
a: "a";
|
|
41
|
+
c: "c";
|
|
42
|
+
}>;
|
|
43
|
+
bar: z.ZodArray<z.ZodObject<{
|
|
44
|
+
baz: z.ZodEnum<{
|
|
45
|
+
good: "good";
|
|
46
|
+
bad: "bad";
|
|
47
|
+
indifferent: "indifferent";
|
|
48
|
+
}>;
|
|
49
|
+
quux: z.ZodBoolean;
|
|
50
|
+
}, z.core.$strip>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
};
|
|
53
|
+
readonly createdAt: {
|
|
54
|
+
readonly type: "timestamp";
|
|
55
|
+
readonly default: import("@casekit/sql").SQLStatement<import("pg").QueryResultRow>;
|
|
56
|
+
};
|
|
57
|
+
readonly publishedAt: {
|
|
58
|
+
readonly type: "timestamp";
|
|
59
|
+
readonly nullable: true;
|
|
60
|
+
};
|
|
61
|
+
readonly deletedAt: {
|
|
62
|
+
readonly type: "timestamp";
|
|
63
|
+
readonly nullable: true;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
readonly relations: {
|
|
67
|
+
readonly author: {
|
|
68
|
+
readonly type: "N:1";
|
|
69
|
+
readonly model: "user";
|
|
70
|
+
readonly fromField: "authorId";
|
|
71
|
+
readonly toField: "id";
|
|
72
|
+
};
|
|
73
|
+
readonly backgroundColor: {
|
|
74
|
+
readonly type: "N:1";
|
|
75
|
+
readonly model: "color";
|
|
76
|
+
readonly fromField: "backgroundColorValue";
|
|
77
|
+
readonly toField: "hex";
|
|
78
|
+
readonly optional: true;
|
|
79
|
+
};
|
|
80
|
+
readonly likes: {
|
|
81
|
+
readonly type: "1:N";
|
|
82
|
+
readonly model: "like";
|
|
83
|
+
readonly fromField: "id";
|
|
84
|
+
readonly toField: "postId";
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
import { ModelDefinition } from "@casekit/orm2-schema";
|
|
4
2
|
import { sql } from "@casekit/sql";
|
|
5
|
-
|
|
6
3
|
export const post = {
|
|
7
4
|
fields: {
|
|
8
5
|
id: { type: "serial", primaryKey: true },
|
|
@@ -30,15 +27,13 @@ export const post = {
|
|
|
30
27
|
default: "{}",
|
|
31
28
|
zodSchema: z.object({
|
|
32
29
|
foo: z.enum(["a", "b", "c"]),
|
|
33
|
-
bar: z.array(
|
|
34
|
-
z.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}),
|
|
38
|
-
),
|
|
30
|
+
bar: z.array(z.object({
|
|
31
|
+
baz: z.enum(["good", "bad", "indifferent"]),
|
|
32
|
+
quux: z.boolean(),
|
|
33
|
+
})),
|
|
39
34
|
}),
|
|
40
35
|
},
|
|
41
|
-
createdAt: { type: "timestamp", default: sql`now()` },
|
|
36
|
+
createdAt: { type: "timestamp", default: sql `now()` },
|
|
42
37
|
publishedAt: { type: "timestamp", nullable: true },
|
|
43
38
|
deletedAt: { type: "timestamp", nullable: true },
|
|
44
39
|
},
|
|
@@ -63,4 +58,4 @@ export const post = {
|
|
|
63
58
|
toField: "postId",
|
|
64
59
|
},
|
|
65
60
|
},
|
|
66
|
-
}
|
|
61
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const user: {
|
|
3
|
+
readonly fields: {
|
|
4
|
+
readonly id: {
|
|
5
|
+
readonly type: "serial";
|
|
6
|
+
readonly primaryKey: true;
|
|
7
|
+
};
|
|
8
|
+
readonly name: {
|
|
9
|
+
readonly type: "text";
|
|
10
|
+
};
|
|
11
|
+
readonly email: {
|
|
12
|
+
readonly type: "text";
|
|
13
|
+
readonly zodSchema: z.ZodEmail;
|
|
14
|
+
};
|
|
15
|
+
readonly role: {
|
|
16
|
+
readonly type: "text";
|
|
17
|
+
readonly zodSchema: z.ZodEnum<{
|
|
18
|
+
user: "user";
|
|
19
|
+
admin: "admin";
|
|
20
|
+
}>;
|
|
21
|
+
};
|
|
22
|
+
readonly preferences: {
|
|
23
|
+
readonly type: "jsonb";
|
|
24
|
+
readonly default: "{}";
|
|
25
|
+
};
|
|
26
|
+
readonly createdAt: {
|
|
27
|
+
readonly type: "timestamp";
|
|
28
|
+
readonly default: import("@casekit/sql").SQLStatement<import("pg").QueryResultRow>;
|
|
29
|
+
};
|
|
30
|
+
readonly deletedAt: {
|
|
31
|
+
readonly type: "timestamp";
|
|
32
|
+
readonly nullable: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly uniqueConstraints: [{
|
|
36
|
+
readonly fields: ["email", "deletedAt"];
|
|
37
|
+
readonly nullsNotDistinct: true;
|
|
38
|
+
}];
|
|
39
|
+
readonly relations: {
|
|
40
|
+
readonly posts: {
|
|
41
|
+
readonly type: "1:N";
|
|
42
|
+
readonly model: "post";
|
|
43
|
+
readonly fromField: "id";
|
|
44
|
+
readonly toField: "authorId";
|
|
45
|
+
};
|
|
46
|
+
readonly friends: {
|
|
47
|
+
readonly type: "N:N";
|
|
48
|
+
readonly model: "user";
|
|
49
|
+
readonly through: {
|
|
50
|
+
readonly model: "friendship";
|
|
51
|
+
readonly fromRelation: "user";
|
|
52
|
+
readonly toRelation: "friend";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly friendships: {
|
|
56
|
+
readonly type: "1:N";
|
|
57
|
+
readonly model: "friendship";
|
|
58
|
+
readonly fromField: "id";
|
|
59
|
+
readonly toField: "userId";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
import { ModelDefinition } from "@casekit/orm2-schema";
|
|
4
2
|
import { sql } from "@casekit/sql";
|
|
5
|
-
|
|
6
3
|
export const user = {
|
|
7
4
|
fields: {
|
|
8
5
|
id: { type: "serial", primaryKey: true },
|
|
@@ -10,7 +7,7 @@ export const user = {
|
|
|
10
7
|
email: { type: "text", zodSchema: z.email() },
|
|
11
8
|
role: { type: "text", zodSchema: z.enum(["user", "admin"]) },
|
|
12
9
|
preferences: { type: "jsonb", default: "{}" },
|
|
13
|
-
createdAt: { type: "timestamp", default: sql`now()` },
|
|
10
|
+
createdAt: { type: "timestamp", default: sql `now()` },
|
|
14
11
|
deletedAt: { type: "timestamp", nullable: true },
|
|
15
12
|
},
|
|
16
13
|
uniqueConstraints: [
|
|
@@ -39,4 +36,4 @@ export const user = {
|
|
|
39
36
|
toField: "userId",
|
|
40
37
|
},
|
|
41
38
|
},
|
|
42
|
-
}
|
|
39
|
+
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@casekit/orm2-fixtures",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.1",
|
|
5
5
|
"author": "",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"es-toolkit": "^1.39.3",
|
|
8
|
-
"@casekit/orm2-config": "1.0.
|
|
9
|
-
"@casekit/orm2-schema": "1.0.
|
|
10
|
-
"@casekit/sql": "1.0.
|
|
8
|
+
"@casekit/orm2-config": "1.0.1",
|
|
9
|
+
"@casekit/orm2-schema": "1.0.1",
|
|
10
|
+
"@casekit/sql": "1.0.1"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
|
|
@@ -19,17 +19,17 @@
|
|
|
19
19
|
"typescript": "^5.8.3",
|
|
20
20
|
"typescript-eslint": "^8.34.1",
|
|
21
21
|
"vite-tsconfig-paths": "^5.1.4",
|
|
22
|
-
"@casekit/
|
|
23
|
-
"@casekit/
|
|
22
|
+
"@casekit/prettier-config": "1.0.1",
|
|
23
|
+
"@casekit/tsconfig": "1.0.1"
|
|
24
24
|
},
|
|
25
25
|
"exports": {
|
|
26
|
-
".": "./
|
|
26
|
+
".": "./build/index.js"
|
|
27
27
|
},
|
|
28
28
|
"files": [
|
|
29
|
-
"/
|
|
29
|
+
"/build"
|
|
30
30
|
],
|
|
31
31
|
"imports": {
|
|
32
|
-
"#*": "./
|
|
32
|
+
"#*": "./build/*"
|
|
33
33
|
},
|
|
34
34
|
"keywords": [],
|
|
35
35
|
"license": "ISC",
|