-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLI] Generate model #1221
Comments
For DP3, I think it's ok to always use
I think that list is a good start and enough for DP3. However, the arrays should be typed. When the user selects "array", we should ask them to provide the type of array items (e.g. "string" or "number" - basically anything from the list above with the exception of arrays). |
related to #441 |
Rejecting because we do not have information on how the models will interact with the potential artifacts being created (e.g. JSON representations) |
In the current design (at least for DP3 scope), models are defined code-first by using TypeScript classes and annotations, see e.g. examples/todo/src/models/todo.model.ts. As I understand the goal of this story, we need a CLI command that will create a A story to tell: as a user creating The repository requires a datasource to be attached to. The CLI should scan Remember, we are not trying to build the ideal solution that won't need any further changes. Instead, we want to simplify the process of building If we decide to change the app design guidelines, e.g. by moving datasource config from TypeScript to JSON, then such task would require an update of |
@virkt25 , if it's good for estimate, please move to the |
Description / Feature proposal
CLI command to generate model TS file.
Outstanding questions
Entity
.string
number
boolean
object
array
date
buffer
Acceptance Criteria
Entity
User Experience
At the end,
src/models/customer.model.ts
will be created.The text was updated successfully, but these errors were encountered: