Skip to content

Instantly share code, notes, and snippets.

@omerlh
Created May 25, 2015 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save omerlh/74fe8e2dbb2388475db9 to your computer and use it in GitHub Desktop.
Save omerlh/74fe8e2dbb2388475db9 to your computer and use it in GitHub Desktop.
DeviceGroup
HomeDeviceEntity
{
DeviceId: A
}
HomeDeviceEntity
{
DeviceId: B
}
DeviceGroupEntity
{
GroupId: G
Devices:
{
{DeviceId: A}
{DeviceId: B}
}
}
HomeDeviceToDeviceGroupEntity
{
DeviceId: A
GroupId: G
}
HomeDeviceToDeviceGroupEntity
{
DeviceId: B
GroupId: G
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment