Files
ent/examples/start
Giau. Tran Minh 6b1d0a2e84 entc/gen: fixed conflict with package name table/column (#4357)
* entc/gen: fixed conflict with package name table/column

* examples: codegen

* entc/integration: codegen
2025-03-19 16:00:07 +07:00
..
2023-04-06 12:50:36 +03:00

Getting Started Example

The example from the getting-started page in https://entgo.io.

Generate Assets

go generate ./...

Generate Migration Files

atlas migrate diff migration_name \
  --dir "file://ent/migrate/migrations" \
  --to "ent://ent/schema" \
  --dev-url "sqlite://file?mode=memory&_fk=1"