Skip to content

Instantly share code, notes, and snippets.

@omerlh
Created May 21, 2015 12:09
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/d0feb0d592a25fad01a3 to your computer and use it in GitHub Desktop.
Save omerlh/d0feb0d592a25fad01a3 to your computer and use it in GitHub Desktop.
Device Group
HomeDeviceEntity
{
DeviceId: A
GroupId: G
}
HomeDeviceEntity
{
DeviceId: B
GroupId: G
}
DeviceGroupEntity
{
GroupId: G
Devices:
{
{DeviceId: A}
{DeviceId: B}
}
}
HomeDeviceEntity
{
DeviceId: A
}
HomeDeviceEntity
{
DeviceId: B
}
DeviceGroupEntity
{
GroupId: G
}
HomeDeviceToDeviceGroupEntity
{
DeviceId: A
GroupId: G
}
HomeDeviceToDeviceGroupEntity
{
DeviceId: B
GroupId: G
}
DeviceGroupToHomeDeviceEntity
{
GroupId: G
DeviceId: A
}
DeviceGroupToHomeDeviceEntity
{
GroupId: G
DeviceId: B
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment