Hi,
Having the ability to attach custom metadata to models and fields could help make drizzle significantly useful for concerns that go beyond database interaction, e.g. auto forms generation, data bootstrapping scripts.
There are a few important areas where automatic code generation can help significantly speed up the app development process. These areas are also closely related to the model. For example:
form generation. Metadata can be used to indicate the preferred form type: e.g., select dropdown vs autocomplete combobox, whether select values are conditioned on another field, whether a field should be displayed or required in CRUD forms, etc.
admin site generation
potential to leverage these metadata to customize the drizzle studio with application specific constraints. This could turn drizzle studio immediately into an admin site.
auto generation of field values, e.g. slug field that is the slugified value of another field, or sum field that is the total of a field and b field.
Having this sort of meta data live with the model themselves makes sense because this type of metadata actually help describe the model constraints.
P.S. This isn't a new idea on my part. It's mostly influenced by the Django ORM. I'd love to see this available as it would immensely speed up the data model iteration part of app development.
Describe what you want
Hi, Having the ability to attach custom metadata to models and fields could help make drizzle significantly useful for concerns that go beyond database interaction, e.g. auto forms generation, data bootstrapping scripts.
There are a few important areas where automatic code generation can help significantly speed up the app development process. These areas are also closely related to the model. For example:
slug
field that is the slugified value of another field, orsum
field that is the total ofa
field andb
field.Having this sort of meta data live with the model themselves makes sense because this type of metadata actually help describe the model constraints.
P.S. This isn't a new idea on my part. It's mostly influenced by the Django ORM. I'd love to see this available as it would immensely speed up the data model iteration part of app development.