1 changed files with 14 additions and 0 deletions
@ -0,0 +1,14 @@ |
|||
create table if not exists camera_remark |
|||
( |
|||
id serial not null, |
|||
camera_id integer not null, |
|||
remark varchar(256) not null, |
|||
constraint camera_remark_pk |
|||
primary key (id), |
|||
constraint camera_remark_camera_id_fk |
|||
foreign key (camera_id) references camera |
|||
); |
|||
|
|||
create unique index if not exists camera_remark_id_uindex |
|||
on camera_remark (id); |
|||
|
Loading…
Reference in new issue