# DatabaseModelEntity

**Kind:** Interface

**Source:** [`atloria-monorepo/apps/parser-orchestrator/src/interfaces/entity.interface.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/parser-orchestrator/src/interfaces/entity.interface.ts#L620)

Database Model entity

## Properties

| Property | Type |
|---|---|
| `type` | `EntityType.DATABASE_MODEL` |
| `tableName` | `string` |
| `fields` | `FieldDefinition[]` |
| `indexes` | `IndexDefinition[]` |
| `relations` | `RelationDefinition[]` |
| `orm` | `'prisma' | 'typeorm' | 'sequelize' | 'mongoose' | 'drizzle' | 'raw'` |
| `primaryKey` | `string[]` |
| `uniqueConstraints` | `UniqueConstraint[]` |
