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