{
  "routes": [
    { "method": "GET", "path": "/api/users" },
    { "method": "POST", "path": "/api/users" },
    { "method": "GET", "path": "/api/users/[id]" },
    { "method": "PUT", "path": "/api/users/[id]" },
    { "method": "DELETE", "path": "/api/users/[id]" },
    { "method": "GET", "path": "/api/posts" },
    { "method": "POST", "path": "/api/posts" },
    { "method": "GET", "path": "/api/posts/[id]/comments" },
    { "method": "POST", "path": "/api/posts/[id]/comments" }
  ],
  "models": [
    {
      "name": "users",
      "fields": ["id", "email", "name", "createdAt"],
      "relations": ["posts", "comments"]
    },
    {
      "name": "posts",
      "fields": ["id", "title", "content", "published", "authorId", "createdAt"],
      "relations": ["author", "comments"]
    },
    {
      "name": "comments",
      "fields": ["id", "body", "postId", "authorId", "createdAt"],
      "relations": []
    }
  ],
  "components": [
    { "name": "UserCard", "props": ["name", "email", "avatar"] },
    { "name": "PostList", "props": ["posts", "onSelect"] },
    { "name": "CommentForm", "props": ["postId", "onSubmit"] }
  ],
  "envVars": ["DATABASE_URL", "NEXTAUTH_SECRET", "NEXT_PUBLIC_API_URL"],
  "middleware": ["middleware", "auth"]
}
