Skip to content

Latest commit

 

History

History
68 lines (50 loc) · 2.47 KB

File metadata and controls

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

Index / Views / ArticleAnalytics

ArticleAnalytics View

Aggregated article metrics for the workspace analytics dashboard.

Backed by a SQL view that joins Article, Comment, and User. Refreshed on each query — not materialized. For high-traffic workspaces, consider caching at the application layer.

Defined in: content.zmodel

Declaration · content.zmodel
view ArticleAnalytics {
    articleId     String
    title         String
    status        String
    authorName    String
    viewCount     Int
    commentCount  Int
    publishedAt   DateTime?
    daysSincePublished Int?
}

diagram

📋 Fields

All fields defined on this entity, including inherited fields from mixins and parent models.

Field Type Required Default Attributes Description
articleId String Yes
title String Yes Title of the article.
status String Yes Current editorial status.
authorName String Yes Display name of the author.
viewCount Int Yes Total number of views.
commentCount Int Yes Total number of comments.
publishedAt DateTime? No When the article was published, or null if unpublished.
daysSincePublished Int? No Days since publication. Null for unpublished articles.

📚 References


Next: MemberActivity