@promakeai/cli 0.9.4 → 0.9.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.
- package/dist/index.js +236 -236
- package/package.json +1 -1
- package/template/src/db/schema.json +162 -5
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "promake",
|
|
3
|
-
"languages": [
|
|
3
|
+
"languages": [
|
|
4
|
+
"en",
|
|
5
|
+
"tr"
|
|
6
|
+
],
|
|
4
7
|
"defaultLanguage": "en",
|
|
5
8
|
"tables": {
|
|
6
9
|
"blog_categories": {
|
|
@@ -68,7 +71,9 @@
|
|
|
68
71
|
"type": "text"
|
|
69
72
|
},
|
|
70
73
|
"images": {
|
|
71
|
-
"type": [
|
|
74
|
+
"type": [
|
|
75
|
+
"string"
|
|
76
|
+
]
|
|
72
77
|
},
|
|
73
78
|
"author": {
|
|
74
79
|
"type": "string",
|
|
@@ -87,10 +92,14 @@
|
|
|
87
92
|
"type": "timestamp"
|
|
88
93
|
},
|
|
89
94
|
"tags": {
|
|
90
|
-
"type": [
|
|
95
|
+
"type": [
|
|
96
|
+
"string"
|
|
97
|
+
]
|
|
91
98
|
},
|
|
92
99
|
"categories": {
|
|
93
|
-
"type": [
|
|
100
|
+
"type": [
|
|
101
|
+
"number"
|
|
102
|
+
],
|
|
94
103
|
"ref": "blog_categories"
|
|
95
104
|
},
|
|
96
105
|
"read_time": {
|
|
@@ -117,6 +126,154 @@
|
|
|
117
126
|
"type": "text",
|
|
118
127
|
"translatable": true
|
|
119
128
|
}
|
|
129
|
+
},
|
|
130
|
+
"product_categories": {
|
|
131
|
+
"$permissions": {
|
|
132
|
+
"anon": ["read"],
|
|
133
|
+
"user": ["read"],
|
|
134
|
+
"admin": ["read", "create", "update", "delete"]
|
|
135
|
+
},
|
|
136
|
+
"id": {
|
|
137
|
+
"type": "id"
|
|
138
|
+
},
|
|
139
|
+
"name": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"nullable": false,
|
|
142
|
+
"translatable": true
|
|
143
|
+
},
|
|
144
|
+
"slug": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"nullable": false,
|
|
147
|
+
"unique": true
|
|
148
|
+
},
|
|
149
|
+
"description": {
|
|
150
|
+
"type": "text",
|
|
151
|
+
"translatable": true
|
|
152
|
+
},
|
|
153
|
+
"image": {
|
|
154
|
+
"type": "text"
|
|
155
|
+
},
|
|
156
|
+
"parent_id": {
|
|
157
|
+
"type": "int",
|
|
158
|
+
"ref": "product_categories"
|
|
159
|
+
},
|
|
160
|
+
"created_at": {
|
|
161
|
+
"type": "timestamp"
|
|
162
|
+
},
|
|
163
|
+
"updated_at": {
|
|
164
|
+
"type": "timestamp"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"products": {
|
|
168
|
+
"$permissions": {
|
|
169
|
+
"anon": ["read"],
|
|
170
|
+
"user": ["read"],
|
|
171
|
+
"admin": ["read", "create", "update", "delete"]
|
|
172
|
+
},
|
|
173
|
+
"id": {
|
|
174
|
+
"type": "id"
|
|
175
|
+
},
|
|
176
|
+
"name": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"nullable": false,
|
|
179
|
+
"translatable": true
|
|
180
|
+
},
|
|
181
|
+
"slug": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"nullable": false,
|
|
184
|
+
"unique": true
|
|
185
|
+
},
|
|
186
|
+
"description": {
|
|
187
|
+
"type": "text",
|
|
188
|
+
"translatable": true
|
|
189
|
+
},
|
|
190
|
+
"price": {
|
|
191
|
+
"type": "decimal",
|
|
192
|
+
"nullable": false
|
|
193
|
+
},
|
|
194
|
+
"sale_price": {
|
|
195
|
+
"type": "decimal"
|
|
196
|
+
},
|
|
197
|
+
"on_sale": {
|
|
198
|
+
"type": "bool",
|
|
199
|
+
"default": false
|
|
200
|
+
},
|
|
201
|
+
"images": {
|
|
202
|
+
"type": [
|
|
203
|
+
"string"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
"brand": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"translatable": true
|
|
209
|
+
},
|
|
210
|
+
"sku": {
|
|
211
|
+
"type": "string"
|
|
212
|
+
},
|
|
213
|
+
"stock": {
|
|
214
|
+
"type": "int",
|
|
215
|
+
"default": 0
|
|
216
|
+
},
|
|
217
|
+
"tags": {
|
|
218
|
+
"type": [
|
|
219
|
+
"string"
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
"categories": {
|
|
223
|
+
"type": [
|
|
224
|
+
"number"
|
|
225
|
+
],
|
|
226
|
+
"ref": "product_categories"
|
|
227
|
+
},
|
|
228
|
+
"rating": {
|
|
229
|
+
"type": "decimal",
|
|
230
|
+
"default": 0
|
|
231
|
+
},
|
|
232
|
+
"review_count": {
|
|
233
|
+
"type": "int",
|
|
234
|
+
"default": 0
|
|
235
|
+
},
|
|
236
|
+
"featured": {
|
|
237
|
+
"type": "bool",
|
|
238
|
+
"default": false
|
|
239
|
+
},
|
|
240
|
+
"is_new": {
|
|
241
|
+
"type": "bool",
|
|
242
|
+
"default": false
|
|
243
|
+
},
|
|
244
|
+
"published": {
|
|
245
|
+
"type": "bool",
|
|
246
|
+
"default": true
|
|
247
|
+
},
|
|
248
|
+
"specifications": {
|
|
249
|
+
"type": "json"
|
|
250
|
+
},
|
|
251
|
+
"variants": {
|
|
252
|
+
"type": [
|
|
253
|
+
{
|
|
254
|
+
"id": "string",
|
|
255
|
+
"name": "string",
|
|
256
|
+
"value": "string",
|
|
257
|
+
"price?": "number",
|
|
258
|
+
"image?": "string",
|
|
259
|
+
"stockQuantity": "number"
|
|
260
|
+
}
|
|
261
|
+
]
|
|
262
|
+
},
|
|
263
|
+
"created_at": {
|
|
264
|
+
"type": "timestamp"
|
|
265
|
+
},
|
|
266
|
+
"updated_at": {
|
|
267
|
+
"type": "timestamp"
|
|
268
|
+
},
|
|
269
|
+
"meta_description": {
|
|
270
|
+
"type": "text",
|
|
271
|
+
"translatable": true
|
|
272
|
+
},
|
|
273
|
+
"meta_keywords": {
|
|
274
|
+
"type": "text",
|
|
275
|
+
"translatable": true
|
|
276
|
+
}
|
|
120
277
|
}
|
|
121
278
|
}
|
|
122
|
-
}
|
|
279
|
+
}
|