Skip to content

Instantly share code, notes, and snippets.

@omerlh
Created May 21, 2015 12:09
Show Gist options
  • 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