@stacksjs/orm 0.75.571 → 0.75.572

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.
@@ -104,11 +104,11 @@ export default defineModel({
104
104
  isApproved: {
105
105
  required: false,
106
106
  fillable: true,
107
- default: 0,
107
+ default: false,
108
108
  validation: {
109
- rule: schema.number(),
109
+ rule: schema.boolean(),
110
110
  },
111
- factory: faker => faker.number.int({ min: 0, max: 1 }),
111
+ factory: faker => faker.datatype.boolean(),
112
112
  },
113
113
  },
114
114
 
@@ -227,12 +227,12 @@ export default defineModel({
227
227
  order: 13,
228
228
  fillable: true,
229
229
  validation: {
230
- rule: schema.number(),
230
+ rule: schema.boolean(),
231
231
  message: {
232
- number: 'Featured must be a number value',
232
+ boolean: 'Featured must be yes or no',
233
233
  },
234
234
  },
235
- factory: faker => faker.number.int({ min: 0, max: 1 }),
235
+ factory: faker => faker.datatype.boolean(),
236
236
  },
237
237
  },
238
238
 
@@ -117,24 +117,26 @@ export default defineModel({
117
117
  factory: faker => faker.helpers.arrayElement(['active', 'active', 'active', 'inactive']),
118
118
  },
119
119
 
120
+ // Yes or no, and declared as one: a switch in a form, `true` or `false`
121
+ // in a query. Declared as a number, the form asked for 0 or 1.
120
122
  isPublic: {
121
123
  required: false,
122
124
  fillable: true,
123
- default: 1,
125
+ default: true,
124
126
  validation: {
125
- rule: schema.number(),
127
+ rule: schema.boolean(),
126
128
  },
127
- factory: faker => faker.number.int({ min: 0, max: 1 }),
129
+ factory: faker => faker.datatype.boolean(),
128
130
  },
129
131
 
130
132
  doubleOptIn: {
131
133
  required: false,
132
134
  fillable: true,
133
- default: 1,
135
+ default: true,
134
136
  validation: {
135
- rule: schema.number(),
137
+ rule: schema.boolean(),
136
138
  },
137
- factory: () => 1,
139
+ factory: () => true,
138
140
  },
139
141
  },
140
142
 
@@ -91,5 +91,7 @@ export default defineModel({
91
91
 
92
92
  dashboard: {
93
93
  columns: ['email', 'status', 'source', 'user', 'createdAt'],
94
+ // The row of numbers above the list: subscribed, unsubscribed, new.
95
+ regions: { listTop: 'DataStatCards' },
94
96
  },
95
97
  } as const)
@@ -76,6 +76,8 @@ export default defineModel({
76
76
 
77
77
  dashboard: {
78
78
  columns: ['name', 'memberCount', 'status', 'createdAt'],
79
+ // The row of numbers above the list: teams, active ones, members.
80
+ regions: { listTop: 'DataStatCards' },
79
81
  // A count of members is called what it counts.
80
82
  fields: {
81
83
  memberCount: { label: 'Members' },
@@ -165,6 +165,9 @@ export default defineModel({
165
165
  // The list is for telling accounts apart. The two-factor step, the
166
166
  // billing id and the rest are on the account's own page.
167
167
  columns: ['name', 'email', 'emailVerifiedAt', 'createdAt'],
168
+ // The row of numbers above the list: how many, how many are new, how
169
+ // many confirmed their email.
170
+ regions: { listTop: 'DataStatCards' },
168
171
  // An avatar is a picture, not the address of one.
169
172
  fields: {
170
173
  // Chosen as a file, and shown as the picture it is.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/orm",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.571",
5
+ "version": "0.75.572",
6
6
  "description": "The Stacks ORM integration",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -63,32 +63,32 @@
63
63
  "prepublishOnly": "bun run build"
64
64
  },
65
65
  "dependencies": {
66
- "@stacksjs/cache": "0.75.571",
67
- "@stacksjs/cli": "0.75.571",
68
- "@stacksjs/config": "0.75.571",
69
- "@stacksjs/database": "0.75.571",
70
- "@stacksjs/env": "0.75.571",
71
- "@stacksjs/error-handling": "0.75.571",
72
- "@stacksjs/events": "0.75.571",
73
- "@stacksjs/logging": "0.75.571",
74
- "@stacksjs/model-meta": "0.75.571",
75
- "@stacksjs/pagination": "0.75.571",
76
- "@stacksjs/path": "0.75.571",
77
- "@stacksjs/query-builder": "0.75.571",
78
- "@stacksjs/realtime": "0.75.571",
79
- "@stacksjs/router": "0.75.571",
80
- "@stacksjs/storage": "0.75.571",
81
- "@stacksjs/strings": "0.75.571",
66
+ "@stacksjs/cache": "0.75.572",
67
+ "@stacksjs/cli": "0.75.572",
68
+ "@stacksjs/config": "0.75.572",
69
+ "@stacksjs/database": "0.75.572",
70
+ "@stacksjs/env": "0.75.572",
71
+ "@stacksjs/error-handling": "0.75.572",
72
+ "@stacksjs/events": "0.75.572",
73
+ "@stacksjs/logging": "0.75.572",
74
+ "@stacksjs/model-meta": "0.75.572",
75
+ "@stacksjs/pagination": "0.75.572",
76
+ "@stacksjs/path": "0.75.572",
77
+ "@stacksjs/query-builder": "0.75.572",
78
+ "@stacksjs/realtime": "0.75.572",
79
+ "@stacksjs/router": "0.75.572",
80
+ "@stacksjs/storage": "0.75.572",
81
+ "@stacksjs/strings": "0.75.572",
82
82
  "@stacksjs/ts-validation": "^0.5.7",
83
- "@stacksjs/validation": "0.75.571",
84
- "bun-query-builder": "^0.5.2",
83
+ "@stacksjs/validation": "0.75.572",
84
+ "bun-query-builder": "^0.6.0",
85
85
  "stripe": "23.0.0"
86
86
  },
87
87
  "peerDependencies": {
88
- "@stacksjs/auth": "0.75.571",
89
- "@stacksjs/payments": "0.75.571",
90
- "@stacksjs/queue": "0.75.571",
91
- "@stacksjs/search-engine": "0.75.571"
88
+ "@stacksjs/auth": "0.75.572",
89
+ "@stacksjs/payments": "0.75.572",
90
+ "@stacksjs/queue": "0.75.572",
91
+ "@stacksjs/search-engine": "0.75.572"
92
92
  },
93
93
  "peerDependenciesMeta": {
94
94
  "@stacksjs/auth": {
@@ -102,7 +102,7 @@
102
102
  }
103
103
  },
104
104
  "devDependencies": {
105
- "@stacksjs/types": "0.75.571",
105
+ "@stacksjs/types": "0.75.572",
106
106
  "better-dx": "^0.2.24"
107
107
  }
108
108
  }