@mapeo/schema
Version:
JSON schema and flow types for Mapeo
132 lines (70 loc) • 1.88 kB
Markdown
[API](../README.md) / Common
# Interface: Common
These properties are shared by all objects in the Mapeo database.
## Indexable
▪ [k: `string`]: `unknown`
## Table of contents
### Properties
- [created\_at](Common.md#created_at)
- [deviceId](Common.md#deviceid)
- [id](Common.md#id)
- [links](Common.md#links)
- [schemaType](Common.md#schematype)
- [schemaVersion](Common.md#schemaversion)
- [timestamp](Common.md#timestamp)
- [userId](Common.md#userid)
- [version](Common.md#version)
## Properties
### created\_at
• **created\_at**: `string`
RFC3339-formatted datetime of when the first version of the element was created
#### Defined in
common/v1.ts:23
___
### deviceId
• `Optional` **deviceId**: `string`
ID of the device that made this edit
#### Defined in
common/v1.ts:35
___
### id
• **id**: `string`
Unique value that identifies this element
#### Defined in
common/v1.ts:15
___
### links
• `Optional` **links**: `string`[]
Version ids of the previous document versions this one is replacing
#### Defined in
common/v1.ts:43
___
### schemaType
• **schemaType**: `string`
enum that defines the type of document in the database (defines which schema should be used)
#### Defined in
common/v1.ts:39
___
### schemaVersion
• `Optional` **schemaVersion**: `number`
Version of schema. Should increment for breaking changes to the schema
#### Defined in
common/v1.ts:47
___
### timestamp
• `Optional` **timestamp**: `string`
RFC3339-formatted datetime of when this version of the element was created
#### Defined in
common/v1.ts:27
___
### userId
• `Optional` **userId**: `string`
ID of the user who made this edit
#### Defined in
common/v1.ts:31
___
### version
• `Optional` **version**: `string`
Unique value that identifies this particular version of this element
#### Defined in
common/v1.ts:19