PAWAN_KEY=pk-SiLlpaMcxHaTomcSbJkwEUQnxoKBWSVPQAcrKsgIwIlVvdoy
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET transaction_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;

CREATE TABLE public.groups (
    id integer NOT NULL,
    name text,
    is_admin boolean DEFAULT false NOT NULL,
    is_vip boolean DEFAULT false NOT NULL,
    multiplier numeric DEFAULT 1 NOT NULL,
    sale double precision DEFAULT 1 NOT NULL,
    max_multigen integer DEFAULT 2 NOT NULL,
    is_tester boolean DEFAULT false NOT NULL,
    max_waifus integer DEFAULT 3 NOT NULL
);
ALTER TABLE public.groups OWNER TO kurumi_bot;
CREATE SEQUENCE public.groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
ALTER SEQUENCE public.groups_id_seq OWNER TO kurumi_bot;
ALTER SEQUENCE public.groups_id_seq OWNED BY public.groups.id;

CREATE TABLE public.shop_autos (
    id integer NOT NULL,
    name text DEFAULT ''::text NOT NULL,
    price numeric(20,0) DEFAULT '999999999999'::bigint NOT NULL
);
ALTER TABLE public.shop_autos OWNER TO kurumi_bot;
CREATE SEQUENCE public.shop_autos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
ALTER SEQUENCE public.shop_autos_id_seq OWNER TO kurumi_bot;
ALTER SEQUENCE public.shop_autos_id_seq OWNED BY public.shop_autos.id;

CREATE TABLE public.shop_businesses (
    id integer NOT NULL,
    name text DEFAULT ''::text NOT NULL,
    price numeric(20,0) DEFAULT 999999999 NOT NULL,
    income numeric(20,0) DEFAULT 0 NOT NULL
);
ALTER TABLE public.shop_businesses OWNER TO kurumi_bot;
CREATE SEQUENCE public.shop_businesses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
ALTER SEQUENCE public.shop_businesses_id_seq OWNER TO kurumi_bot;
ALTER SEQUENCE public.shop_businesses_id_seq OWNED BY public.shop_businesses.id;

CREATE TABLE public.shop_maids (
    id integer NOT NULL,
    name text DEFAULT ''::text NOT NULL,
    price numeric(20,0) DEFAULT 0 NOT NULL,
    income numeric(20,0) DEFAULT 0 NOT NULL
);
ALTER TABLE public.shop_maids OWNER TO kurumi_bot;
CREATE SEQUENCE public.shop_maids_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
ALTER SEQUENCE public.shop_maids_id_seq OWNER TO kurumi_bot;
ALTER SEQUENCE public.shop_maids_id_seq OWNED BY public.shop_maids.id;

CREATE TABLE public.shop_miners (
    id integer NOT NULL,
    name text DEFAULT ''::text NOT NULL,
    price numeric(20,0) DEFAULT 1 NOT NULL,
    income numeric(20,6) DEFAULT 1 NOT NULL
);
ALTER TABLE public.shop_miners OWNER TO kurumi_bot;
CREATE SEQUENCE public.shop_miners_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
ALTER SEQUENCE public.shop_miners_id_seq OWNER TO kurumi_bot;
ALTER SEQUENCE public.shop_miners_id_seq OWNED BY public.shop_miners.id;

CREATE TABLE public.works (
    id integer NOT NULL,
    name text NOT NULL,
    required_level integer DEFAULT 1 NOT NULL,
    money_income numeric(10,0) DEFAULT 1 NOT NULL,
    min_exp integer DEFAULT 1 NOT NULL,
    max_exp integer DEFAULT 1 NOT NULL
);
ALTER TABLE public.works OWNER TO kurumi_bot;
CREATE SEQUENCE public.works_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1;
ALTER SEQUENCE public.works_id_seq OWNER TO kurumi_bot;
ALTER SEQUENCE public.works_id_seq OWNED BY public.works.id;

ALTER TABLE ONLY public.groups ALTER COLUMN id SET DEFAULT nextval('public.groups_id_seq'::regclass);
ALTER TABLE ONLY public.shop_autos ALTER COLUMN id SET DEFAULT nextval('public.shop_autos_id_seq'::regclass);
ALTER TABLE ONLY public.shop_businesses ALTER COLUMN id SET DEFAULT nextval('public.shop_businesses_id_seq'::regclass);
ALTER TABLE ONLY public.shop_maids ALTER COLUMN id SET DEFAULT nextval('public.shop_maids_id_seq'::regclass);
ALTER TABLE ONLY public.shop_miners ALTER COLUMN id SET DEFAULT nextval('public.shop_miners_id_seq'::regclass);
ALTER TABLE ONLY public.works ALTER COLUMN id SET DEFAULT nextval('public.works_id_seq'::regclass);

INSERT INTO public.groups VALUES (1, '✨Пользователь✨', false, false, 1.0, 1, 3, false, 3);
INSERT INTO public.groups VALUES (3, '👾Премиум🌟', false, true, 5, 0.75, 7, false, 3);
INSERT INTO public.groups VALUES (2, '🔮VIP🔮', false, true, 2.5, 0.9, 5, false, 3);
INSERT INTO public.groups VALUES (4, '💎Админ💎', true, true, 10, 0.6, 10, true, 3);
INSERT INTO public.groups VALUES (5, '💰🔱СОЗДАТЕЛЬ🔱💰', true, true, 20, 0.5, 10, true, 3);
INSERT INTO public.groups VALUES (6, '⚠Тостер⚠', false, true, 3, 0.85, 3, true, 3);
INSERT INTO public.groups VALUES (1488, '📚Экономист📈', false, true, 14.88, 0.6, 3, false, 3);
INSERT INTO public.groups VALUES (1337, '🏳‍🌈ToP GaY In ThE WorlD🏳‍🌈🌈', false, true, 13.37, 0.7, 3, false, 3);

INSERT INTO public.shop_autos VALUES (1, 'Москвич 412', 40000);
INSERT INTO public.shop_autos VALUES (2, 'ВАЗ 2105', 100000);
INSERT INTO public.shop_autos VALUES (3, 'Nissan Skyline GT-R R32', 225000);
INSERT INTO public.shop_autos VALUES (4, 'Toyota AE86 Sprinter Trueno', 450000);
INSERT INTO public.shop_autos VALUES (5, 'Toyota Mark II X90 Tourer V', 800000);
INSERT INTO public.shop_autos VALUES (6, 'Mazda RX-7 FD3S', 1200000);
INSERT INTO public.shop_autos VALUES (7, 'Mitsubishi Lancer Evolution X', 1650000);
INSERT INTO public.shop_autos VALUES (8, 'Subaru Impreza WRX STI II', 1875000);

INSERT INTO public.shop_businesses VALUES (1, 'Стенд с лимонадом', 200000, 1500);
INSERT INTO public.shop_businesses VALUES (2, 'Союзпечать', 1000000, 7000);
INSERT INTO public.shop_businesses VALUES (3, 'Маленький магазин вещей из Китая', 2500000, 17500);
INSERT INTO public.shop_businesses VALUES (4, 'Ларёк с шаурмой', 3000000, 21000);
INSERT INTO public.shop_businesses VALUES (5, 'Магазин тофу', 5000000, 35000);
INSERT INTO public.shop_businesses VALUES (6, 'Соц. сеть', 10000000, 70000);
INSERT INTO public.shop_businesses VALUES (7, 'Продажа машин из Японии', 20000000, 140000);
INSERT INTO public.shop_businesses VALUES (8, 'Автосервис', 40000000, 280000);
INSERT INTO public.shop_businesses VALUES (9, 'Компания по разработке игр', 100000000, 700000);
INSERT INTO public.shop_businesses VALUES (10, 'Аниме студия', 250000000, 1725000);
INSERT INTO public.shop_businesses VALUES (11, 'Сеть магазинов', 500000000, 3500000);
INSERT INTO public.shop_businesses VALUES (12, 'Сеть заводов', 1000000000, 7000000);
INSERT INTO public.shop_businesses VALUES (13, 'Автосалон', 10000000000, 70000000);
INSERT INTO public.shop_businesses VALUES (14, 'Бренд электроники', 50000000000, 350000000);
INSERT INTO public.shop_businesses VALUES (15, 'Автомобильная марка', 100000000000, 700000000);

INSERT INTO public.shop_maids VALUES (1, 'Кавайная горничная', 50, 7500);
INSERT INTO public.shop_maids VALUES (2, 'Кавайная в кружеве', 100, 15000);
INSERT INTO public.shop_maids VALUES (3, 'Тору', 250, 30000);
INSERT INTO public.shop_maids VALUES (4, 'Лоли горничные', 500, 52500);
INSERT INTO public.shop_maids VALUES (5, 'Рам и Рем', 2000, 150000);
INSERT INTO public.shop_maids VALUES (6, 'Неко-горничная', 4500, 225000);

INSERT INTO public.shop_miners VALUES (1, 'Старый ПК', 20000, 0.000001);
INSERT INTO public.shop_miners VALUES (2, 'Новый ПК', 120000, 0.000005);
INSERT INTO public.shop_miners VALUES (3, 'Маленький майнер', 250000, 0.000010);
INSERT INTO public.shop_miners VALUES (4, 'Средний майнер', 600000, 0.000025);
INSERT INTO public.shop_miners VALUES (5, 'Большой майнер', 1000000, 0.000050);
INSERT INTO public.shop_miners VALUES (6, 'Огромный майнер', 2500000, 0.000100);
INSERT INTO public.shop_miners VALUES (7, 'Маленькая ферма майнеров', 10000000, 0.000500);
INSERT INTO public.shop_miners VALUES (8, 'Средняя ферма майнкеров', 100000000, 0.005000);
INSERT INTO public.shop_miners VALUES (9, 'Большая ферма майнеров', 500000000, 0.025000);
INSERT INTO public.shop_miners VALUES (10, 'Огромная ферма майнеров', 5000000000, 0.250000);
INSERT INTO public.shop_miners VALUES (11, 'Гигантская ферма майнеров', 10000000000, 0.500000);
INSERT INTO public.shop_miners VALUES (12, 'Комната майнеров', 25000000000, 1.000000);
INSERT INTO public.shop_miners VALUES (13, 'Этаж с майнерми', 100000000000, 5.000000);
INSERT INTO public.shop_miners VALUES (14, 'Небоскреб майнеров', 250000000000, 10.000000);

INSERT INTO public.works VALUES (1, 'Уборщик в маке', 1, 13000, 20, 28);
INSERT INTO public.works VALUES (2, 'Рабочий на заводе', 3, 20000, 48, 65);
INSERT INTO public.works VALUES (3, 'Продавец в пятёрочке', 5, 25000, 76, 103);
INSERT INTO public.works VALUES (4, 'Учитель', 7, 40000, 104, 141);
INSERT INTO public.works VALUES (5, 'Повар', 9, 50000, 175, 237);
INSERT INTO public.works VALUES (6, 'Полицейский', 11, 60000, 260, 351);
INSERT INTO public.works VALUES (7, 'Художник', 13, 80000, 305, 412);
INSERT INTO public.works VALUES (8, 'Программист', 15, 100000, 350, 474);

SELECT pg_catalog.setval('public.groups_id_seq', 7, false);
SELECT pg_catalog.setval('public.shop_autos_id_seq', 8, true);
SELECT pg_catalog.setval('public.shop_businesses_id_seq', 15, true);
SELECT pg_catalog.setval('public.shop_maids_id_seq', 6, true);
SELECT pg_catalog.setval('public.shop_miners_id_seq', 14, true);
SELECT pg_catalog.setval('public.works_id_seq', 8, true);

ALTER TABLE ONLY public.groups ADD CONSTRAINT groups_pk PRIMARY KEY (id);
ALTER TABLE ONLY public.shop_autos ADD CONSTRAINT shop_autos_pk PRIMARY KEY (id);
ALTER TABLE ONLY public.shop_businesses ADD CONSTRAINT shop_businesses_pk PRIMARY KEY (id);
ALTER TABLE ONLY public.shop_maids ADD CONSTRAINT shop_maids_pk PRIMARY KEY (id);
ALTER TABLE ONLY public.shop_miners ADD CONSTRAINT shop_miners_pk PRIMARY KEY (id);
ALTER TABLE ONLY public.works ADD CONSTRAINT works_pk PRIMARY KEY (id);