> ISPO SDK documentation. [HTML](https://ispo.ai/docs/interfaces/core.EntityRecord.html) · [Documentation index](https://ispo.ai/docs/llms.txt)

# Interface EntityRecord<T>

```typescript
interface EntityRecord<T = unknown> {
    createdAt: string;
    createdBy: Principal;
    data: T;
    deletedAt?: string;
    deletedBy?: Principal;
    id: string;
    source?: EntitySource;
    type: string;
    updatedAt: string;
    updatedBy: Principal;
    version: number;
}
```

Types: [T](#t), [createdAt](#createdat), [createdBy](#createdby), [Principal](../types/core.Supporting_types.Principal.md), [data](#data), [deletedAt](#deletedat), [deletedBy](#deletedby), [id](#id), [source](#source), [EntitySource](../types/core.EntitySource.md), [type](#type), [updatedAt](#updatedat), [updatedBy](#updatedby), [version](#version)

#### Type Parameters

*   <a id="t"></a>T = unknown

##### Index

### <a id="properties"></a>Properties

[createdAt](#createdat) [createdBy](#createdby) [data](#data) [deletedAt?](#deletedat) [deletedBy?](#deletedby) [id](#id) [source?](#source) [type](#type) [updatedAt](#updatedat) [updatedBy](#updatedby) [version](#version)

## <a id="properties-1"></a>Properties

### <a id="createdat"></a>createdAt

```typescript
createdAt: string
```

### <a id="createdby"></a>createdBy

```typescript
createdBy: Principal
```

Types: [Principal](../types/core.Supporting_types.Principal.md)

### <a id="data"></a>data

```typescript
data: T
```

Types: [T](#t)

### <a id="deletedat"></a>`Optional`deletedAt

```typescript
deletedAt?: string
```

### <a id="deletedby"></a>`Optional`deletedBy

```typescript
deletedBy?: Principal
```

Types: [Principal](../types/core.Supporting_types.Principal.md)

### <a id="id"></a>id

```typescript
id: string
```

### <a id="source"></a>`Optional`source

```typescript
source?: EntitySource
```

Types: [EntitySource](../types/core.EntitySource.md)

### <a id="type"></a>type

```typescript
type: string
```

### <a id="updatedat"></a>updatedAt

```typescript
updatedAt: string
```

### <a id="updatedby"></a>updatedBy

```typescript
updatedBy: Principal
```

Types: [Principal](../types/core.Supporting_types.Principal.md)

### <a id="version"></a>version

```typescript
version: number
```
