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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
|
--
-- PostgreSQL database dump
--
\restrict glJa3ruKbCYJ5e028FR51030DZ2dUgDjNP4bVEcrCnFu1K7MGF5Og3eeAMdRNGu
-- Dumped from database version 18.1
-- Dumped by pg_dump version 18.1
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;
--
-- Name: robots; Type: TABLE; Schema: public; Owner: robot_master
--
CREATE TABLE public.robots (
id integer NOT NULL,
name character varying(100) NOT NULL,
status character varying(10) NOT NULL,
lat numeric(10,7) NOT NULL,
lon numeric(10,7) NOT NULL,
robot_positions jsonb DEFAULT '[]'::jsonb,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT robots_status_check CHECK (((status)::text = ANY ((ARRAY['idle'::character varying, 'moving'::character varying])::text[])))
);
ALTER TABLE public.robots OWNER TO robot_master;
--
-- Name: robots_id_seq; Type: SEQUENCE; Schema: public; Owner: robot_master
--
CREATE SEQUENCE public.robots_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE public.robots_id_seq OWNER TO robot_master;
--
-- Name: robots_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: robot_master
--
ALTER SEQUENCE public.robots_id_seq OWNED BY public.robots.id;
--
-- Name: users; Type: TABLE; Schema: public; Owner: robot_master
--
CREATE TABLE public.users (
id integer NOT NULL,
email character varying(255) NOT NULL,
password_hash text NOT NULL,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);
ALTER TABLE public.users OWNER TO robot_master;
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: robot_master
--
CREATE SEQUENCE public.users_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER SEQUENCE public.users_id_seq OWNER TO robot_master;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: robot_master
--
ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
--
-- Name: robots id; Type: DEFAULT; Schema: public; Owner: robot_master
--
ALTER TABLE ONLY public.robots ALTER COLUMN id SET DEFAULT nextval('public.robots_id_seq'::regclass);
--
-- Name: users id; Type: DEFAULT; Schema: public; Owner: robot_master
--
ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
--
-- Data for Name: robots; Type: TABLE DATA; Schema: public; Owner: robot_master
--
COPY public.robots (id, name, status, lat, lon, robot_positions, created_at, updated_at) FROM stdin;
1 R2-D2 idle 51.3408630 12.3759190 [] 2026-01-09 22:04:04.983244 2026-01-09 22:04:04.983244
2 Wall-E idle 51.3408630 12.3759190 [] 2026-01-09 22:04:04.983244 2026-01-09 22:04:04.983244
3 Bender idle 51.3408630 12.3759190 [] 2026-01-09 22:04:04.983244 2026-01-09 22:04:04.983244
4 Marvin idle 51.3408630 12.3759190 [] 2026-01-09 22:04:04.983244 2026-01-09 22:04:04.983244
\.
--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: robot_master
--
COPY public.users (id, email, password_hash, created_at) FROM stdin;
1 admin@test.com $2b$10$nPoFqcBSa4wrfUsAXDTeyeuxXN2KMFgbBcbttI0QG/KPq3JhtQH5K 2026-01-09 21:54:32.719188
\.
--
-- Name: robots_id_seq; Type: SEQUENCE SET; Schema: public; Owner: robot_master
--
SELECT pg_catalog.setval('public.robots_id_seq', 4, true);
--
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: robot_master
--
SELECT pg_catalog.setval('public.users_id_seq', 1, true);
--
-- Name: robots robots_pkey; Type: CONSTRAINT; Schema: public; Owner: robot_master
--
ALTER TABLE ONLY public.robots
ADD CONSTRAINT robots_pkey PRIMARY KEY (id);
--
-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: robot_master
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_email_key UNIQUE (email);
--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: robot_master
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
--
-- Name: SCHEMA public; Type: ACL; Schema: -; Owner: pg_database_owner
--
GRANT ALL ON SCHEMA public TO robot_master;
--
-- PostgreSQL database dump complete
--
\unrestrict glJa3ruKbCYJ5e028FR51030DZ2dUgDjNP4bVEcrCnFu1K7MGF5Og3eeAMdRNGu
|