diff options
| author | Asbjørn Sloth Tønnesen <ast@a5n.dk> | 2024-11-07 21:50:31 +0000 | 
|---|---|---|
| committer | Asbjørn Sloth Tønnesen <ast@a5n.dk> | 2024-11-07 21:50:31 +0000 | 
| commit | a314f3ff2eff4e7fa62f67dfd1b6ebc7b619740b (patch) | |
| tree | 1e6db815781ab2231436cea88a212d7a3dd84f9a | |
| parent | fef29917c688da707f3a49871efda72010042155 (diff) | |
| download | peeringdb-simplesync-a314f3ff2eff4e7fa62f67dfd1b6ebc7b619740b.tar.gz peeringdb-simplesync-a314f3ff2eff4e7fa62f67dfd1b6ebc7b619740b.tar.xz peeringdb-simplesync-a314f3ff2eff4e7fa62f67dfd1b6ebc7b619740b.zip | |
schema: add support for new objects
Signed-off-by: Asbjørn Sloth Tønnesen <ast@a5n.dk>
| -rw-r--r-- | schema.sql | 35 | 
1 files changed, 35 insertions, 0 deletions
| @@ -36,6 +36,7 @@ CREATE TABLE IF NOT EXISTS peeringdb.ix (  CREATE TABLE IF NOT EXISTS peeringdb.fac (  	id int not null,  	org_id int not null, +	campus_id int,  	status text not null,  	data jsonb not null,  	created timestamptz not null, @@ -113,3 +114,37 @@ CREATE TABLE IF NOT EXISTS peeringdb.netixlan (  	deleted timestamptz,  	primary key (id)  ); + +CREATE TABLE IF NOT EXISTS peeringdb.carrier ( +	id int not null, +	org_id int not null, +	status text not null, +	data jsonb not null, +	created timestamptz not null, +	updated timestamptz not null, +	deleted timestamptz, +	primary key (id) +); + +CREATE TABLE IF NOT EXISTS peeringdb.carrierfac ( +	id int not null, +	carrier_id int not null, +	fac_id int not null, +	status text not null, +	data jsonb not null, +	created timestamptz not null, +	updated timestamptz not null, +	deleted timestamptz, +	primary key (id) +); + +CREATE TABLE IF NOT EXISTS peeringdb.campus ( +	id int not null, +	org_id int not null, +	status text not null, +	data jsonb not null, +	created timestamptz not null, +	updated timestamptz not null, +	deleted timestamptz, +	primary key (id) +); | 
