Commit 3a3bb6e8 authored by Christian Moll's avatar Christian Moll

Upload New File

parent 36eee9a6
-- Sequence: public.buildings_id_seq
-- DROP SEQUENCE public.buildings_id_seq;
CREATE SEQUENCE public.buildings_id_seq
INCREMENT 1
MINVALUE 1
MAXVALUE 9223372036854775807
START 1
CACHE 1;
ALTER TABLE public.buildings_id_seq
OWNER TO urban;
-- Table: public.buildings
-- DROP TABLE public.buildings;
CREATE TABLE public.buildings
(
id integer NOT NULL DEFAULT nextval('buildings_id_seq'::regclass),
type character varying(25) NOT NULL,
xsize double precision NOT NULL,
ysize double precision NOT NULL,
shape character varying(25) NOT NULL,
floors integer NOT NULL,
insulation character varying(25),
quality character varying(25),
size character varying(25),
construction_costs double precision NOT NULL,
costs_with_garage double precision NOT NULL,
CONSTRAINT buildings_pkey PRIMARY KEY (id),
CONSTRAINT buildings_insulation_check CHECK (insulation::text = ANY (ARRAY['bad'::character varying, 'average'::character varying, 'good'::character varying, 'default'::character varying]::text[])),
CONSTRAINT buildings_quality_check CHECK (quality::text = ANY (ARRAY['bad'::character varying, 'average'::character varying, 'good'::character varying, 'default'::character varying]::text[])),
CONSTRAINT buildings_shape_check CHECK (shape::text = ANY (ARRAY['circle'::character varying, 'square'::character varying, 'rectangle'::character varying]::text[])),
CONSTRAINT buildings_size_check CHECK (size::text = ANY (ARRAY['small'::character varying, 'medium'::character varying, 'big'::character varying, 'default'::character varying]::text[])),
CONSTRAINT buildings_type_check CHECK (type::text = ANY (ARRAY['house'::character varying, 'habitation tower'::character varying, 'office tower'::character varying, 'craft workshop'::character varying, 'school'::character varying, 'shop'::character varying]::text[]))
)
WITH (
OIDS=FALSE
);
ALTER TABLE public.buildings
OWNER TO urban;
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment