This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heythanks_pg.sql
131 lines (99 loc) · 2.58 KB
/
heythanks_pg.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
--
-- PostgreSQL database dump
--
-- Dumped from database version 14.0
-- Dumped by pg_dump version 14.0
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;
--
-- Name: cart_count; Type: TABLE; Schema: public; Owner: ianherrington
--
CREATE TABLE public.cart_count (
shop text NOT NULL,
day text NOT NULL,
count integer
);
ALTER TABLE public.cart_count OWNER TO ianherrington;
--
-- Name: error; Type: TABLE; Schema: public; Owner: ianherrington
--
CREATE TABLE public.error (
id text NOT NULL,
error text,
shop text,
created_at text
);
ALTER TABLE public.error OWNER TO ianherrington;
--
-- Name: order_record; Type: TABLE; Schema: public; Owner: ianherrington
--
CREATE TABLE public.order_record (
order_id text,
price numeric,
currency text,
plan_id text,
details json,
id text NOT NULL,
created_at text,
paid_by text,
period_end text,
shop text
);
ALTER TABLE public.order_record OWNER TO ianherrington;
--
-- Name: shop; Type: TABLE; Schema: public; Owner: ianherrington
--
CREATE TABLE public.shop (
fulfillment_service text,
fulfillment_email text,
fulfillment_phone text,
fulfillment_manual boolean,
onboarded boolean,
active_plan text,
url text,
email text,
id text NOT NULL,
formatted_address text[],
plan_name text,
partner_development boolean,
shopify_plus boolean,
name text,
shop text,
access_token text,
installed boolean,
requires_update boolean,
cart_sections json,
created_at text,
updated_at text,
fulfillment_bearer_token text,
fulfillment_refresh_token text
);
ALTER TABLE public.shop OWNER TO ianherrington;
--
-- Name: error error_pkey; Type: CONSTRAINT; Schema: public; Owner: ianherrington
--
ALTER TABLE ONLY public.error
ADD CONSTRAINT error_pkey PRIMARY KEY (id);
--
-- Name: order_record order_record_pkey; Type: CONSTRAINT; Schema: public; Owner: ianherrington
--
ALTER TABLE ONLY public.order_record
ADD CONSTRAINT order_record_pkey PRIMARY KEY (id);
--
-- Name: shop shop_pkey; Type: CONSTRAINT; Schema: public; Owner: ianherrington
--
ALTER TABLE ONLY public.shop
ADD CONSTRAINT shop_pkey PRIMARY KEY (id);
--
-- PostgreSQL database dump complete
--