@objectstack/platform-objects 11.10.0 → 12.1.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.
@@ -441,6 +441,25 @@ var SysUser = ObjectSchema.create({
441
441
  group: "Admin",
442
442
  description: "When enforced MFA first applied to this user (grace-period clock). Backs mfa_required; system-managed."
443
443
  }),
444
+ // ADR-0069 D7 — login audit. Stamped on every successful `/sign-in/email`
445
+ // by the auth manager's after-hook (independent of lockout config). Backs
446
+ // the admin "last seen" surface + anomaly review; system-managed, read-only.
447
+ last_login_at: Field.datetime({
448
+ label: "Last Login At",
449
+ required: false,
450
+ readonly: true,
451
+ group: "Admin",
452
+ description: "Timestamp of the last successful sign-in. Stamped by the auth manager; system-managed."
453
+ }),
454
+ last_login_ip: Field.text({
455
+ label: "Last Login IP",
456
+ required: false,
457
+ readonly: true,
458
+ maxLength: 45,
459
+ // IPv6 max textual length
460
+ group: "Admin",
461
+ description: "Client IP of the last successful sign-in (from the trusted proxy forwarded header). System-managed."
462
+ }),
444
463
  ai_access: Field.boolean({
445
464
  label: "AI Access",
446
465
  defaultValue: false,