Skip to content

Latest commit

 

History

History
92 lines (62 loc) · 3.71 KB

File metadata and controls

92 lines (62 loc) · 3.71 KB
//////////////////////////////////////////////////////////////////////////////////////////////
// DO NOT MODIFY THIS FILE                                                                  //
// This file is automatically generated by ZenStack CLI and should not be manually updated. //
// Source: showcase.zmodel · Generated: 2026-02-23                                          //
//////////////////////////////////////////////////////////////////////////////////////////////

Schema Documentation

This documentation describes a ZModel schema — the data modeling language used by ZenStack.

9 models · 3 views · 2 types · 3 enums · 7 procedures

Models · Views · Types · Enums · Procedures · Relationships · ERD

🗃️ Models

  • Activity — Records significant events for audit and activity feed purposes.
  • Comment — A comment on a task.
  • Organization — An organization is the top-level tenant in the system.
  • Project — A project organizes tasks under a team within an organization.
  • Tag — A label that can be attached to tasks and projects for categorization.
  • Task — A unit of work within a project.
  • Team — A team groups users within an organization for project collaboration.
  • TeamMember — Represents a user's membership in a team with a specific role.
  • User — A registered user in the platform.

👁️ Views

  • ProjectTaskSummary — Aggregated task metrics per project for analytics dashboards.
  • UserLeaderboard — Leaderboard view ranking users by completed task count.
  • UserProfile — Flattened user profile for reporting dashboards.

🧩 Types

🏷️ Enums

  • Priority — Priority levels for tasks.
  • Role — Defines the access level of a user within an organization.
  • TaskStatus — Lifecycle status of a task.

⚡ Procedures

  • archiveProject · mutation — Archive a project and all its tasks.
  • bulkUpdateTaskStatus · mutation — Bulk-update the status of multiple tasks at once.
  • createAndAssignTask · mutation — Create a new task and assign it to a user in one step.
  • getProjectStats · query — Get aggregated statistics for a project.
  • getUser · query — Retrieve a user by their unique identifier.
  • listOrgUsers · query — List all users belonging to a given organization.
  • signUp · mutation — Register a new user in the platform.

🗺️ Entity Relationship Diagram

Entity Relationship Diagram

Mermaid source

📎 See Also


Generation Stats
Metric Value
Files 29
Duration 133.02 ms
Source showcase.zmodel
Generated 2026-02-23