ObjectStackObjectStack

Demo Staff schema — System Protocol reference

Demo Staff schemas of the ObjectStack System Protocol: DemoStaff — each property with its type, default and a TypeScript example.

Source: packages/spec/src/system/demo-staff.zod.ts

TypeScript Usage

import { DemoStaffSchema } from '@objectstack/spec/system';
import type { DemoStaff } from '@objectstack/spec/system';

// Validate data
const result = DemoStaffSchema.parse(data);

DemoStaff

Properties

PropertyTypeRequiredDescription
namestring✅Display name of the demo account — the value a seed dataset names it by in a sys_user reference such as owner_id
emailstring✅Sign-in address of the demo account
positionstringoptionalA position this application declares in positions, assigned to the demo account
permissionSetsstring[]optionalPermission sets this application declares in permissions, granted to the demo account

On this page