SET default_table_access_method = heap;
+--
+-- Name: build_groups; Type: TABLE; Schema: public; Owner: -
+--
+
+CREATE TABLE public.build_groups (
+ id integer NOT NULL,
+ uuid uuid DEFAULT gen_random_uuid() NOT NULL,
+ created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
+ created_by integer,
+ deleted_at timestamp without time zone,
+ deleted_by integer,
+ finished_at timestamp without time zone,
+ failed boolean DEFAULT false NOT NULL,
+ tested_build_id integer
+);
+
+
+--
+-- Name: builds; Type: TABLE; Schema: public; Owner: -
+--
+
+CREATE TABLE public.builds (
+ id integer NOT NULL,
+ uuid uuid DEFAULT gen_random_uuid() NOT NULL,
+ pkg_id integer NOT NULL,
+ severity text,
+ message text,
+ created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
+ build_repo_id integer NOT NULL,
+ owner_id integer,
+ priority integer DEFAULT 0 NOT NULL,
+ finished_at timestamp without time zone,
+ failed boolean DEFAULT false NOT NULL,
+ deleted_at timestamp without time zone,
+ deleted_by integer,
+ build_group_id integer,
+ deprecating_build_id integer,
+ deprecated_at timestamp without time zone,
+ deprecated_by integer,
+ test_group_id integer,
+ test boolean DEFAULT false NOT NULL,
+ disable_test_builds boolean DEFAULT false NOT NULL,
+ points integer DEFAULT 0 NOT NULL
+);
+
+
--
-- Name: build_bugs; Type: TABLE; Schema: public; Owner: -
--
);
---
--- Name: build_groups; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public.build_groups (
- id integer NOT NULL,
- uuid uuid DEFAULT gen_random_uuid() NOT NULL,
- created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
- created_by integer,
- deleted_at timestamp without time zone,
- deleted_by integer,
- finished_at timestamp without time zone,
- failed boolean DEFAULT false NOT NULL,
- tested_build_id integer
-);
-
-
--
-- Name: build_points; Type: TABLE; Schema: public; Owner: -
--
);
---
--- Name: builds; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public.builds (
- id integer NOT NULL,
- uuid uuid DEFAULT gen_random_uuid() NOT NULL,
- pkg_id integer NOT NULL,
- severity text,
- message text,
- created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
- build_repo_id integer NOT NULL,
- owner_id integer,
- priority integer DEFAULT 0 NOT NULL,
- finished_at timestamp without time zone,
- failed boolean DEFAULT false NOT NULL,
- deleted_at timestamp without time zone,
- deleted_by integer,
- build_group_id integer,
- deprecating_build_id integer,
- deprecated_at timestamp without time zone,
- deprecated_by integer,
- test_group_id integer,
- test boolean DEFAULT false NOT NULL,
- disable_test_builds boolean DEFAULT false NOT NULL,
- points integer DEFAULT 0 NOT NULL
-);
-
-
--
-- Name: jobs; Type: TABLE; Schema: public; Owner: -
--
);
---
--- Name: build_test_builds; Type: VIEW; Schema: public; Owner: -
---
-
-CREATE VIEW public.build_test_builds AS
- SELECT builds.id AS build_id,
- test_builds.id AS test_build_id
- FROM ((public.builds
- JOIN public.build_groups ON ((builds.test_group_id = build_groups.id)))
- JOIN public.builds test_builds ON ((test_builds.build_group_id = build_groups.id)))
- WHERE ((builds.deleted_at IS NULL) AND (build_groups.deleted_at IS NULL));
-
-
--
-- Name: builder_stats; Type: TABLE; Schema: public; Owner: -
--