|
1
|
{"slug":"/references/dml/Property/methods/dml.Property.autoincrement","title":"autoincrement","frontmatter":{},"toc":[{"title":"Example","id":"example","level":2}],"blocks":[{"kind":"markdown","html":"This method defines an autoincrement property."},{"kind":"heading","level":2,"text":"Example","id":"example"},{"kind":"markdown","html":"```ts\nimport { model } from \"@medusajs/framework/utils\"\n\nconst MyCustom = model.define(\"my_custom\", {\n serial_id: model.autoincrement(),\n // ...\n})\n\nexport default MyCustom\n```"}]} |