);
+--
+-- Name: mirror_checks; Type: TABLE; Schema: public; Owner: -
+--
+
+CREATE TABLE public.mirror_checks (
+ mirror_id integer NOT NULL,
+ checked_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
+ success boolean DEFAULT false NOT NULL,
+ response_time double precision,
+ http_status integer,
+ last_sync_at timestamp without time zone,
+ error text
+);
+
+
+--
+-- Name: mirrors; Type: TABLE; Schema: public; Owner: -
+--
+
+CREATE TABLE public.mirrors (
+ id integer NOT NULL,
+ hostname text NOT NULL,
+ path text NOT NULL,
+ owner text,
+ contact text,
+ created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
+ created_by integer NOT NULL,
+ deleted_at timestamp without time zone,
+ deleted_by integer,
+ last_check_success boolean,
+ last_check_at timestamp without time zone,
+ last_sync_at timestamp without time zone,
+ country_code text,
+ error text,
+ asn integer,
+ notes text DEFAULT ''::text NOT NULL
+);
+
+
--
-- Name: repository_builds; Type: TABLE; Schema: public; Owner: -
--
ALTER SEQUENCE public.messages_id_seq OWNED BY public.messages.id;
---
--- Name: mirror_checks; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public.mirror_checks (
- mirror_id integer NOT NULL,
- checked_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
- success boolean DEFAULT false NOT NULL,
- response_time double precision,
- http_status integer,
- last_sync_at timestamp without time zone,
- error text
-);
-
-
---
--- Name: mirrors; Type: TABLE; Schema: public; Owner: -
---
-
-CREATE TABLE public.mirrors (
- id integer NOT NULL,
- hostname text NOT NULL,
- path text NOT NULL,
- owner text,
- contact text,
- created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
- created_by integer NOT NULL,
- deleted_at timestamp without time zone,
- deleted_by integer,
- last_check_success boolean,
- last_check_at timestamp without time zone,
- last_sync_at timestamp without time zone,
- country_code text,
- error text,
- asn integer,
- notes text DEFAULT ''::text NOT NULL
-);
-
-
--
-- Name: mirrors_id_seq; Type: SEQUENCE; Schema: public; Owner: -
--