---
lang: en
title: 'API docs: repository.modeldefinitionsyntax'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/repository
permalink: /doc/en/lb4/apidocs.repository.modeldefinitionsyntax.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/repository](./repository.md) &gt; [ModelDefinitionSyntax](./repository.modeldefinitionsyntax.md)

## ModelDefinitionSyntax interface

DSL for building a model definition.

<b>Signature:</b>

```typescript
export interface ModelDefinitionSyntax 
```

## Properties

|  Property | Type | Description |
|  --- | --- | --- |
|  [jsonSchema?](./repository.modeldefinitionsyntax.jsonschema.md) | [JsonSchemaWithExtensions](./repository.jsonschemawithextensions.md) | <i>(Optional)</i> |
|  [name](./repository.modeldefinitionsyntax.name.md) | string |  |
|  [properties?](./repository.modeldefinitionsyntax.properties.md) | { \[name: string\]: [PropertyDefinition](./repository.propertydefinition.md) \| [PropertyType](./repository.propertytype.md)<!-- -->; } | <i>(Optional)</i> |
|  [relations?](./repository.modeldefinitionsyntax.relations.md) | [RelationDefinitionMap](./repository.relationdefinitionmap.md) | <i>(Optional)</i> |
|  [settings?](./repository.modeldefinitionsyntax.settings.md) | [ModelSettings](./repository.modelsettings.md) | <i>(Optional)</i> |


