schema.js
Define the project's storage in one Drizzle-like file. The platform provisions it, and there is no database server to run, patch or keep awake.
Tables, column types, defaults, modifiers and indexes live in `tgcloud/schema.js` and are reviewed with the rest of the code. The runtime has built-in storage, so a new project does not need a separate managed database.
There are no foreign keys. Relationships are modelled with plain columns and enforced in code; the schema will not deploy if a foreign key is added, which keeps the constraint explicit rather than surprising.
One schema file
Tables and indexes live beside the handlers that use them.
Built-in storage
No database server to provision or maintain.
No foreign keys
Relationships are enforced in code, by design.
Explore more
Describe your next change.
The agent plans, writes, validates, and deploys it to Telegram.