@objectstack/platform-objects 7.5.0 → 7.6.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/dist/index.mjs CHANGED
@@ -408,17 +408,11 @@ var SysUser = ObjectSchema.create({
408
408
  apiMethods: ["get", "list", "create", "update", "delete"],
409
409
  trash: true,
410
410
  mru: true
411
- },
412
- validations: [
413
- {
414
- name: "email_unique",
415
- type: "unique",
416
- severity: "error",
417
- message: "Email must be unique",
418
- fields: ["email"],
419
- caseSensitive: false
420
- }
421
- ]
411
+ }
412
+ // Email uniqueness is enforced by the unique index above (and better-auth's
413
+ // managed user table). A declarative `unique` validation rule is intentionally
414
+ // not used — uniqueness needs a DB lookup, not a synchronous validation, so it
415
+ // is not one of the declarable validation-rule types.
422
416
  });
423
417
  var SysSession = ObjectSchema.create({
424
418
  name: "sys_session",