Forge.GenContext
Forge.GenContext — forge bastion.gen.context <Context> <Schema> <table> [field:type ...]
Generates a context module, schema module, and migration from a field spec.
Usage: forge bastion.gen.context Accounts User users name:string email:string forge bastion.gen.context Blog Post posts title:string body:text published_at:datetime
Supported field types (map to Depot column types): string → String (varchar 255) text → Text integer → Int float → Float boolean → Bool datetime → UtcDatetime date → Date uuid → UUID
Files created: lib/<app>/<context_snake>/<schema_snake>.march — schema + gate lib/<app>/<context_snake>.march — context CRUD API priv/depot/migrations/<ts>_create_<table>.march — migration
Functions
Build an empty gate for displaying a new
Create a new
Delete a
Fetch a single
Fetch all
Update an existing