--
-- PostgreSQL database dump
--

-- Dumped from database version 16.0
-- Dumped by pg_dump version 16.4

-- Started on 2025-09-15 09:50:58

SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

SET default_tablespace = '';

SET default_table_access_method = heap;

--
-- TOC entry 230 (class 1259 OID 2160668)
-- Name: bucket_info; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.bucket_info (
    id integer NOT NULL,
    bucket_id character varying(255) NOT NULL,
    name character varying(255) NOT NULL,
    marker character varying(255) NOT NULL,
    placement_id bigint DEFAULT 0 NOT NULL
);


ALTER TABLE s3billing.bucket_info OWNER TO s3billing;

--
-- TOC entry 229 (class 1259 OID 2160667)
-- Name: bucket_info_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.bucket_info_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.bucket_info_id_seq OWNER TO s3billing;

--
-- TOC entry 3448 (class 0 OID 0)
-- Dependencies: 229
-- Name: bucket_info_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.bucket_info_id_seq OWNED BY s3billing.bucket_info.id;


--
-- TOC entry 226 (class 1259 OID 2160642)
-- Name: bucket_stat; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.bucket_stat (
    bucket_id bigint,
    num_shards bigint NOT NULL,
    tenant character varying(255) DEFAULT NULL::character varying,
    zone_group bigint NOT NULL,
    placement_id bigint NOT NULL,
    explicit_placement_data_pool character varying(255) DEFAULT NULL::character varying,
    explicit_placement_data_extra_pool character varying(255) DEFAULT NULL::character varying,
    explicit_placement_index_pool character varying(255) DEFAULT NULL::character varying,
    index_type_id bigint NOT NULL,
    versioned boolean DEFAULT false,
    versioning_enabled boolean DEFAULT false,
    object_lock_enabled boolean DEFAULT false,
    mfa_enabled boolean DEFAULT false,
    owner character varying(255) NOT NULL,
    bucket_quota_enabled boolean DEFAULT false,
    bucket_quota_check_on_raw boolean DEFAULT false,
    bucket_quota_max_size bigint NOT NULL,
    bucket_quota_max_size_kb bigint NOT NULL,
    bucket_quota_max_objects bigint NOT NULL,
    usage_rgw_main_size bigint NOT NULL,
    usage_rgw_main_size_actual bigint NOT NULL,
    usage_rgw_main_size_utilized bigint NOT NULL,
    usage_rgw_main_size_kb bigint NOT NULL,
    usage_rgw_main_size_kb_actual bigint NOT NULL,
    usage_rgw_main_size_kb_utilized bigint NOT NULL,
    usage_rgw_main_num_objects bigint NOT NULL,
    usage_rgw_multimeta_size bigint,
    usage_rgw_multimeta_size_actual bigint,
    usage_rgw_multimeta_size_utilized bigint,
    usage_rgw_multimeta_size_kb bigint,
    usage_rgw_multimeta_size_kb_actual bigint,
    usage_rgw_multimeta_size_kb_utilized bigint,
    usage_rgw_multimeta_num_objects bigint,
    creation_time timestamp without time zone NOT NULL,
    mtime timestamp without time zone NOT NULL,
    timestamp_addition timestamp without time zone DEFAULT date_trunc('hour'::text, CURRENT_TIMESTAMP)
);


ALTER TABLE s3billing.bucket_stat OWNER TO s3billing;

--
-- TOC entry 245 (class 1259 OID 2160763)
-- Name: category; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.category (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE s3billing.category OWNER TO s3billing;

--
-- TOC entry 244 (class 1259 OID 2160762)
-- Name: category_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.category_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.category_id_seq OWNER TO s3billing;

--
-- TOC entry 3451 (class 0 OID 0)
-- Dependencies: 244
-- Name: category_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.category_id_seq OWNED BY s3billing.category.id;


--
-- TOC entry 225 (class 1259 OID 2160635)
-- Name: goose_db_version; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.goose_db_version (
    id integer NOT NULL,
    version_id bigint NOT NULL,
    is_applied boolean NOT NULL,
    tstamp timestamp without time zone DEFAULT now() NOT NULL
);


ALTER TABLE s3billing.goose_db_version OWNER TO s3billing;

--
-- TOC entry 224 (class 1259 OID 2160634)
-- Name: goose_db_version_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

ALTER TABLE s3billing.goose_db_version ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
    SEQUENCE NAME s3billing.goose_db_version_id_seq
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1
);


--
-- TOC entry 234 (class 1259 OID 2160684)
-- Name: index_type; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.index_type (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE s3billing.index_type OWNER TO s3billing;

--
-- TOC entry 233 (class 1259 OID 2160683)
-- Name: index_type_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.index_type_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.index_type_id_seq OWNER TO s3billing;

--
-- TOC entry 3454 (class 0 OID 0)
-- Dependencies: 233
-- Name: index_type_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.index_type_id_seq OWNED BY s3billing.index_type.id;


--
-- TOC entry 232 (class 1259 OID 2160677)
-- Name: placement; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.placement (
    id integer NOT NULL,
    name character varying(255) NOT NULL
);


ALTER TABLE s3billing.placement OWNER TO s3billing;

--
-- TOC entry 231 (class 1259 OID 2160676)
-- Name: placement_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.placement_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.placement_id_seq OWNER TO s3billing;

--
-- TOC entry 3456 (class 0 OID 0)
-- Dependencies: 231
-- Name: placement_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.placement_id_seq OWNED BY s3billing.placement.id;


--
-- TOC entry 239 (class 1259 OID 2160705)
-- Name: usage_bucket_by_user; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.usage_bucket_by_user (
    bucketid bigint,
    "time" timestamp without time zone NOT NULL,
    bytes_sent bigint NOT NULL,
    bytes_received bigint NOT NULL,
    ops bigint NOT NULL,
    successful_ops bigint NOT NULL,
    date_start timestamp without time zone NOT NULL,
    date_end timestamp without time zone NOT NULL,
    user_id bigint NOT NULL,
    category_id bigint NOT NULL
);


ALTER TABLE s3billing.usage_bucket_by_user OWNER TO s3billing;

--
-- TOC entry 238 (class 1259 OID 2160698)
-- Name: usage_stat_summary; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.usage_stat_summary (
    id integer NOT NULL,
    userid character varying(255) NOT NULL,
    category character varying(255) NOT NULL,
    bytes_sent bigint NOT NULL,
    bytes_received bigint NOT NULL,
    ops bigint NOT NULL,
    successful_ops bigint NOT NULL,
    date_start timestamp without time zone NOT NULL,
    date_end timestamp without time zone NOT NULL
);


ALTER TABLE s3billing.usage_stat_summary OWNER TO s3billing;

--
-- TOC entry 237 (class 1259 OID 2160697)
-- Name: usage_stat_summary_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.usage_stat_summary_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.usage_stat_summary_id_seq OWNER TO s3billing;

--
-- TOC entry 3459 (class 0 OID 0)
-- Dependencies: 237
-- Name: usage_stat_summary_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.usage_stat_summary_id_seq OWNED BY s3billing.usage_stat_summary.id;


--
-- TOC entry 236 (class 1259 OID 2160691)
-- Name: usage_stat_total; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.usage_stat_total (
    id integer NOT NULL,
    userid character varying(255) NOT NULL,
    bytes_sent bigint NOT NULL,
    bytes_received bigint NOT NULL,
    ops bigint NOT NULL,
    successful_ops bigint NOT NULL,
    date_start timestamp without time zone NOT NULL,
    date_end timestamp without time zone NOT NULL
);


ALTER TABLE s3billing.usage_stat_total OWNER TO s3billing;

--
-- TOC entry 235 (class 1259 OID 2160690)
-- Name: usage_stat_total_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.usage_stat_total_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.usage_stat_total_id_seq OWNER TO s3billing;

--
-- TOC entry 3461 (class 0 OID 0)
-- Dependencies: 235
-- Name: usage_stat_total_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.usage_stat_total_id_seq OWNED BY s3billing.usage_stat_total.id;


--
-- TOC entry 243 (class 1259 OID 2160751)
-- Name: user_info; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.user_info (
    id integer NOT NULL,
    name character varying(255) NOT NULL,
    owner character varying(255) NOT NULL
);


ALTER TABLE s3billing.user_info OWNER TO s3billing;

--
-- TOC entry 242 (class 1259 OID 2160750)
-- Name: user_info_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.user_info_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.user_info_id_seq OWNER TO s3billing;

--
-- TOC entry 3463 (class 0 OID 0)
-- Dependencies: 242
-- Name: user_info_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.user_info_id_seq OWNED BY s3billing.user_info.id;


--
-- TOC entry 241 (class 1259 OID 2160712)
-- Name: user_quota_bucket; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.user_quota_bucket (
    id integer NOT NULL,
    userid character varying(255) NOT NULL,
    enabled boolean DEFAULT false,
    check_on_raw boolean DEFAULT false,
    max_size bigint NOT NULL,
    max_size_kb bigint NOT NULL,
    max_objects bigint NOT NULL
);


ALTER TABLE s3billing.user_quota_bucket OWNER TO s3billing;

--
-- TOC entry 240 (class 1259 OID 2160711)
-- Name: user_quota_bucket_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.user_quota_bucket_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.user_quota_bucket_id_seq OWNER TO s3billing;

--
-- TOC entry 3465 (class 0 OID 0)
-- Dependencies: 240
-- Name: user_quota_bucket_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.user_quota_bucket_id_seq OWNED BY s3billing.user_quota_bucket.id;


--
-- TOC entry 228 (class 1259 OID 2160661)
-- Name: zone_group; Type: TABLE; Schema: s3billing; Owner: s3billing
--

CREATE TABLE s3billing.zone_group (
    id integer NOT NULL,
    name uuid NOT NULL
);


ALTER TABLE s3billing.zone_group OWNER TO s3billing;

--
-- TOC entry 227 (class 1259 OID 2160660)
-- Name: zone_group_id_seq; Type: SEQUENCE; Schema: s3billing; Owner: s3billing
--

CREATE SEQUENCE s3billing.zone_group_id_seq
    AS integer
    START WITH 1
    INCREMENT BY 1
    NO MINVALUE
    NO MAXVALUE
    CACHE 1;


ALTER SEQUENCE s3billing.zone_group_id_seq OWNER TO s3billing;

--
-- TOC entry 3467 (class 0 OID 0)
-- Dependencies: 227
-- Name: zone_group_id_seq; Type: SEQUENCE OWNED BY; Schema: s3billing; Owner: s3billing
--

ALTER SEQUENCE s3billing.zone_group_id_seq OWNED BY s3billing.zone_group.id;


--
-- TOC entry 3258 (class 2604 OID 2160671)
-- Name: bucket_info id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.bucket_info ALTER COLUMN id SET DEFAULT nextval('s3billing.bucket_info_id_seq'::regclass);


--
-- TOC entry 3268 (class 2604 OID 2160766)
-- Name: category id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.category ALTER COLUMN id SET DEFAULT nextval('s3billing.category_id_seq'::regclass);


--
-- TOC entry 3261 (class 2604 OID 2160687)
-- Name: index_type id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.index_type ALTER COLUMN id SET DEFAULT nextval('s3billing.index_type_id_seq'::regclass);


--
-- TOC entry 3260 (class 2604 OID 2160680)
-- Name: placement id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.placement ALTER COLUMN id SET DEFAULT nextval('s3billing.placement_id_seq'::regclass);


--
-- TOC entry 3263 (class 2604 OID 2160701)
-- Name: usage_stat_summary id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.usage_stat_summary ALTER COLUMN id SET DEFAULT nextval('s3billing.usage_stat_summary_id_seq'::regclass);


--
-- TOC entry 3262 (class 2604 OID 2160694)
-- Name: usage_stat_total id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.usage_stat_total ALTER COLUMN id SET DEFAULT nextval('s3billing.usage_stat_total_id_seq'::regclass);


--
-- TOC entry 3267 (class 2604 OID 2160754)
-- Name: user_info id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.user_info ALTER COLUMN id SET DEFAULT nextval('s3billing.user_info_id_seq'::regclass);


--
-- TOC entry 3264 (class 2604 OID 2160715)
-- Name: user_quota_bucket id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.user_quota_bucket ALTER COLUMN id SET DEFAULT nextval('s3billing.user_quota_bucket_id_seq'::regclass);


--
-- TOC entry 3257 (class 2604 OID 2160664)
-- Name: zone_group id; Type: DEFAULT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.zone_group ALTER COLUMN id SET DEFAULT nextval('s3billing.zone_group_id_seq'::regclass);


--
-- TOC entry 3278 (class 2606 OID 2160675)
-- Name: bucket_info bucket_info_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.bucket_info
    ADD CONSTRAINT bucket_info_pkey PRIMARY KEY (id);


--
-- TOC entry 3273 (class 2606 OID 2476484)
-- Name: bucket_stat bucket_stat_unique; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.bucket_stat
    ADD CONSTRAINT bucket_stat_unique UNIQUE (bucket_id, placement_id, timestamp_addition);


--
-- TOC entry 3298 (class 2606 OID 2160768)
-- Name: category category_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.category
    ADD CONSTRAINT category_pkey PRIMARY KEY (id);


--
-- TOC entry 3270 (class 2606 OID 2160640)
-- Name: goose_db_version goose_db_version_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.goose_db_version
    ADD CONSTRAINT goose_db_version_pkey PRIMARY KEY (id);


--
-- TOC entry 3284 (class 2606 OID 2160689)
-- Name: index_type index_type_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.index_type
    ADD CONSTRAINT index_type_pkey PRIMARY KEY (id);


--
-- TOC entry 3282 (class 2606 OID 2160682)
-- Name: placement placement_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.placement
    ADD CONSTRAINT placement_pkey PRIMARY KEY (id);


--
-- TOC entry 3290 (class 2606 OID 2476705)
-- Name: usage_bucket_by_user usage_bucket_by_user_unique; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.usage_bucket_by_user
    ADD CONSTRAINT usage_bucket_by_user_unique UNIQUE (bucketid, date_start, date_end, user_id, category_id);


--
-- TOC entry 3288 (class 2606 OID 2160703)
-- Name: usage_stat_summary usage_stat_summary_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.usage_stat_summary
    ADD CONSTRAINT usage_stat_summary_pkey PRIMARY KEY (id);


--
-- TOC entry 3286 (class 2606 OID 2160696)
-- Name: usage_stat_total usage_stat_total_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.usage_stat_total
    ADD CONSTRAINT usage_stat_total_pkey PRIMARY KEY (id);


--
-- TOC entry 3295 (class 2606 OID 2160758)
-- Name: user_info user_info_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.user_info
    ADD CONSTRAINT user_info_pkey PRIMARY KEY (id);


--
-- TOC entry 3292 (class 2606 OID 2160719)
-- Name: user_quota_bucket user_quota_bucket_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.user_quota_bucket
    ADD CONSTRAINT user_quota_bucket_pkey PRIMARY KEY (id);


--
-- TOC entry 3275 (class 2606 OID 2160666)
-- Name: zone_group zone_group_pkey; Type: CONSTRAINT; Schema: s3billing; Owner: s3billing
--

ALTER TABLE ONLY s3billing.zone_group
    ADD CONSTRAINT zone_group_pkey PRIMARY KEY (id);


--
-- TOC entry 3276 (class 1259 OID 2474077)
-- Name: bucket_info_name_idx; Type: INDEX; Schema: s3billing; Owner: s3billing
--

CREATE INDEX bucket_info_name_idx ON s3billing.bucket_info USING btree (name);


--
-- TOC entry 3279 (class 1259 OID 2474078)
-- Name: bucket_info_placement_id_idx; Type: INDEX; Schema: s3billing; Owner: s3billing
--

CREATE INDEX bucket_info_placement_id_idx ON s3billing.bucket_info USING btree (placement_id);


--
-- TOC entry 3271 (class 1259 OID 2474094)
-- Name: bucket_stat_owner_idx; Type: INDEX; Schema: s3billing; Owner: s3billing
--

CREATE INDEX bucket_stat_owner_idx ON s3billing.bucket_stat USING btree (owner);


--
-- TOC entry 3296 (class 1259 OID 2474445)
-- Name: category_name_idx; Type: INDEX; Schema: s3billing; Owner: s3billing
--

CREATE UNIQUE INDEX category_name_idx ON s3billing.category USING btree (name);


--
-- TOC entry 3280 (class 1259 OID 2474468)
-- Name: placement_name_idx; Type: INDEX; Schema: s3billing; Owner: s3billing
--

CREATE UNIQUE INDEX placement_name_idx ON s3billing.placement USING btree (name);


--
-- TOC entry 3293 (class 1259 OID 2474438)
-- Name: user_info_name_idx; Type: INDEX; Schema: s3billing; Owner: s3billing
--

CREATE INDEX user_info_name_idx ON s3billing.user_info USING btree (name);


--
-- TOC entry 3447 (class 0 OID 0)
-- Dependencies: 230
-- Name: TABLE bucket_info; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.bucket_info TO grafanabilling;


--
-- TOC entry 3449 (class 0 OID 0)
-- Dependencies: 226
-- Name: TABLE bucket_stat; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.bucket_stat TO grafanabilling;


--
-- TOC entry 3450 (class 0 OID 0)
-- Dependencies: 245
-- Name: TABLE category; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.category TO grafanabilling;


--
-- TOC entry 3452 (class 0 OID 0)
-- Dependencies: 225
-- Name: TABLE goose_db_version; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.goose_db_version TO grafanabilling;


--
-- TOC entry 3453 (class 0 OID 0)
-- Dependencies: 234
-- Name: TABLE index_type; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.index_type TO grafanabilling;


--
-- TOC entry 3455 (class 0 OID 0)
-- Dependencies: 232
-- Name: TABLE placement; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.placement TO grafanabilling;


--
-- TOC entry 3457 (class 0 OID 0)
-- Dependencies: 239
-- Name: TABLE usage_bucket_by_user; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.usage_bucket_by_user TO grafanabilling;


--
-- TOC entry 3458 (class 0 OID 0)
-- Dependencies: 238
-- Name: TABLE usage_stat_summary; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.usage_stat_summary TO grafanabilling;


--
-- TOC entry 3460 (class 0 OID 0)
-- Dependencies: 236
-- Name: TABLE usage_stat_total; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.usage_stat_total TO grafanabilling;


--
-- TOC entry 3462 (class 0 OID 0)
-- Dependencies: 243
-- Name: TABLE user_info; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.user_info TO grafanabilling;


--
-- TOC entry 3464 (class 0 OID 0)
-- Dependencies: 241
-- Name: TABLE user_quota_bucket; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.user_quota_bucket TO grafanabilling;


--
-- TOC entry 3466 (class 0 OID 0)
-- Dependencies: 228
-- Name: TABLE zone_group; Type: ACL; Schema: s3billing; Owner: s3billing
--

GRANT SELECT ON TABLE s3billing.zone_group TO grafanabilling;


-- Completed on 2025-09-15 09:50:59

--
-- PostgreSQL database dump complete
--

