feat: player CRUD

This commit is contained in:
Deluan
2020-03-12 09:38:07 -04:00
committed by Deluan Quintão
parent 353c48d8d8
commit 45180115a6
5 changed files with 108 additions and 2 deletions
@@ -32,9 +32,13 @@ create table player
client varchar not null,
ip_address varchar,
last_seen timestamp,
transcoding_id varchar, -- todo foreign key
max_bit_rate int default 0,
unique (name)
transcoding_id varchar,
unique (name),
foreign key (transcoding_id)
references transcoding(id)
on update restrict
on delete restrict
);
`)
return err