Skip to content

Commit

Permalink
update device model
Browse files Browse the repository at this point in the history
  • Loading branch information
mordka committed Oct 16, 2017
1 parent e39f51d commit 25df698
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions source/includes/_device.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ Creates new device item

Name | Type | Constraints | Description
--------|-------|--------- | ------
id | string, uuid | required, max length 100| unique hardware serial
owner | string | required| The foreign key id of device owner
name | string | required, max length 100 | Name of the device
device | string | max length 200 | Description
hwstats | string | required, max length 500 | Hardware stats
usage | string | required, max length 1000| Usage data
device | string | required, max length 100| Usage data
id | string, uuid | (optionally auto generated) | unique hardware serial, autogenerated if not provided
owner | string | (auto generated)| The identityId of device owner
name | string | max length 100, (optionally auto generated) | Name of the device, autogenerated if not provided
description | string | optional | Description
hwstats | string | optional | Hardware stats
usage | string | optional | Usage data
createdAt | timestamp | (auto generated) | item created timestamp
updatedAt | timestamp | (auto generated) | item updated timestamp

Expand Down Expand Up @@ -74,12 +73,10 @@ Replace a given subset of attributes.
#### Payload
Name | Type | Constraints | Description
--------|-------|--------- | ------
owner | string | required| The foreign key id of device owner
name | string | required, max length 100 | Name of the device
hwstats | string | required, max length 500 | Hardware stats
description | string | max length 200 | Description
usage | string | required, max length 1000| Usage data
device | string | required, max length 100| Usage data
name | string | optional, max length 100 | Name of the device
hwstats | string | optional, | Hardware stats
description | string | optional | Description
usage | string | optional| Usage data


### Delete a device
Expand Down

0 comments on commit 25df698

Please sign in to comment.