In the previous article, we designed a set of relational models for blog-demo: User / Profile / Post / Comment / Category. It's functional, but still at the "structural level." In this section, I want to take a different approach: instead of explaining by concepts, I'll walk through a complete business workflow.
Starting from this chapter, we move from a single-table world with only User to a multi-table world with real business semantics: the blog-demo blog system.
The goal of this article is to break down the Prisma schema from top to bottom — explaining datasource, generator, model, enum, and all the attributes: what they are and how to use them.
In this article, we jump straight into a real project: using Prisma 7 + Next.js 16.2.2 + PostgreSQL + pnpm, we go from an empty directory to displaying the first User record from the database on the page.
Over the past year, AI has rapidly transformed from a 'tool' into a 'collaborator'. But many engineers, as they use it, gradually fall into a dangerous illusion: that AI can replace decision-making, even replace responsibility.
The reality is quite the opposite. The more capable the AI, the greater the demand for humans to possess stronger constraint, judgment, and information-expression skills.
A Skill (or Skills) is a reusable skills package for AI agents—typically a folder containing task instructions, scripts, templates, and reference materials. The AI loads these resources on demand when handling relevant tasks, enabling more reliable and repeatable execution of specific work.
OpenCode Go is a low-cost coding model subscription plan launched by OpenCode. Its purpose is not to create a new model, but to provide heavy-duty developers with a unified model pool and billing method.
What is a Tool in the Vercel AI SDK? Think of it as a "function with instructions": the instructions are for the model, while the function body is for your own code.