introduce scaffold for new models

This commit is contained in:
Hayden 2023-03-04 22:00:28 -09:00
parent 14315cb88a
commit 4725d9c823
No known key found for this signature in database
GPG key ID: 17CF79474E257545
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,18 @@
---
messages:
pre: |
# Ent Model Generation
With Boilerplate!
post: |
Complete!
questions:
- name: "model"
prompt:
message: "What is the name of the model? (PascalCase)"
required: true
rewrites:
- from: 'templates/model.go'
to: 'backend/internal/data/ent/schema/{{ lower .Scaffold.model }}.go'