Orne Brocaar f657c3e971 Implement adding gws to multicast-group + Class-C scheduling config.
This makes it possible to add gateways to a multicast-group, which in
case configured will always be used for transmitting the multicast
downlinks.

This also moves the multicast class-c scheduling to the multicast-group
configuration. Options are delay between multiple gateways, or GPS time
synchronized transmission.
2023-02-09 15:29:23 +00:00

13 lines
484 B
SQL

create table multicast_group_gateway (
multicast_group_id uuid not null references multicast_group on delete cascade,
gateway_id bytea not null references gateway on delete cascade,
created_at timestamp with time zone not null,
primary key (multicast_group_id, gateway_id)
);
alter table multicast_group
add column class_c_scheduling_type varchar(20) not null default 'DELAY';
alter table multicast_group
alter column class_c_scheduling_type drop default;