create table archive (
	id              serial,
	dvd_nr          int not null,
	total_size      bigint default -1,
	note            text,
	username        varchar(20) not null,
	date            timestamp default now(),
	primary key(id)
);

create table archive_backup
(
	archive_id	int not null references archive(id) on delete cascade,
	backup_id	int not null references backups(id),
	primary key(archive_id, backup_id)
);
