drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
23.13k stars 564 forks source link

[FEATURE]: custom meta data for models and fields #1330

Open taivo opened 11 months ago

taivo commented 11 months ago

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:

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.

justAnArthur commented 7 months ago

+1

acidjazz commented 1 week ago

+1