-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrentme.sql
466 lines (324 loc) · 13.2 KB
/
rentme.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
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
--
-- PostgreSQL database dump
--
-- Dumped from database version 13.1
-- Dumped by pg_dump version 13.1
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: bungalow; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.bungalow (
id integer NOT NULL,
oid integer NOT NULL,
no_of_room integer NOT NULL,
no_of_floor integer NOT NULL,
no_of_bathroom integer NOT NULL,
area integer NOT NULL,
locality character varying(50) NOT NULL,
address text NOT NULL,
city character varying(50) NOT NULL,
rent integer NOT NULL,
deposit integer NOT NULL,
negotiable boolean DEFAULT false NOT NULL,
more text NOT NULL,
images character varying(80)[] NOT NULL,
status boolean DEFAULT true
);
ALTER TABLE public.bungalow OWNER TO postgres;
--
-- Name: bungalow_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.bungalow_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.bungalow_id_seq OWNER TO postgres;
--
-- Name: bungalow_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.bungalow_id_seq OWNED BY public.bungalow.id;
--
-- Name: flat; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.flat (
id integer NOT NULL,
oid integer NOT NULL,
bhk integer NOT NULL,
floor integer NOT NULL,
locality character varying NOT NULL,
address text NOT NULL,
city character varying NOT NULL,
rent integer NOT NULL,
deposit integer NOT NULL,
more text NOT NULL,
balcony boolean DEFAULT false NOT NULL,
parking boolean DEFAULT false NOT NULL,
negotiable boolean DEFAULT false NOT NULL,
images character varying(300)[] NOT NULL,
status boolean DEFAULT true
);
ALTER TABLE public.flat OWNER TO postgres;
--
-- Name: flat_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.flat_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.flat_id_seq OWNER TO postgres;
--
-- Name: flat_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.flat_id_seq OWNED BY public.flat.id;
--
-- Name: owner; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.owner (
id integer NOT NULL,
uid bigint NOT NULL,
name character varying(50) NOT NULL,
city character varying(50) NOT NULL,
phno bigint
);
ALTER TABLE public.owner OWNER TO postgres;
--
-- Name: rowhouse; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.rowhouse (
id integer NOT NULL,
oid integer NOT NULL,
no_of_room integer NOT NULL,
no_of_floor integer NOT NULL,
no_of_bathroom integer NOT NULL,
area integer NOT NULL,
locality character varying(50) NOT NULL,
address text NOT NULL,
city character varying(50) NOT NULL,
rent integer NOT NULL,
deposit integer NOT NULL,
balcony boolean DEFAULT false NOT NULL,
parking boolean DEFAULT false NOT NULL,
negotiable boolean DEFAULT false NOT NULL,
more text NOT NULL,
images character varying(80)[] NOT NULL,
status boolean DEFAULT true
);
ALTER TABLE public.rowhouse OWNER TO postgres;
--
-- Name: rowhouse_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.rowhouse_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.rowhouse_id_seq OWNER TO postgres;
--
-- Name: rowhouse_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.rowhouse_id_seq OWNED BY public.rowhouse.id;
--
-- Name: tenant; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.tenant (
id integer NOT NULL,
uid bigint NOT NULL,
name character varying(50) NOT NULL,
city character varying(50) NOT NULL
);
ALTER TABLE public.tenant OWNER TO postgres;
--
-- Name: users; Type: TABLE; Schema: public; Owner: postgres
--
CREATE TABLE public.users (
id integer NOT NULL,
username character varying(50) NOT NULL,
email character varying(50) NOT NULL,
password character varying(50) NOT NULL
);
ALTER TABLE public.users OWNER TO postgres;
--
-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE public.users_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.users_id_seq OWNER TO postgres;
--
-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id;
--
-- Name: bungalow id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.bungalow ALTER COLUMN id SET DEFAULT nextval('public.bungalow_id_seq'::regclass);
--
-- Name: flat id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.flat ALTER COLUMN id SET DEFAULT nextval('public.flat_id_seq'::regclass);
--
-- Name: rowhouse id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.rowhouse ALTER COLUMN id SET DEFAULT nextval('public.rowhouse_id_seq'::regclass);
--
-- Name: users id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass);
--
-- Data for Name: bungalow; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.bungalow (id, oid, no_of_room, no_of_floor, no_of_bathroom, area, locality, address, city, rent, deposit, negotiable, more, images, status) FROM stdin;
4 15 5 1 2 900 Kanchan Bagh 110/05, MHB Colony,Modern Rd Hyderabad 30000 275000 t All families will love this apartment in Kanchan Bagh as it has all that you need in a home & more. This 900 sqft & comes with ample dedicated parking area and a small garden. This lovely bungalow for rent is only 30,000 rupees & could be your new home. This home faces the East direction. {982image_search_1622625143315.jpg,112image_search_1622625463265.jpg,2598image_search_1622626437035.jpg} t
\.
--
-- Data for Name: flat; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.flat (id, oid, bhk, floor, locality, address, city, rent, deposit, more, balcony, parking, negotiable, images, status) FROM stdin;
9 15 3 1 Charminar, Alijah kotla Kotla Alijah near Alijah Kotla Masjid Hyderabad 8500 30000 If u are looking for spacious flat then it is available near Charminar ,alijah kotla . Your search for a 3 BHK in Alijah kotla ends here, this home is conveniently located & comes at just 8,500 rupees. This DK facing 1200 sqft. home comes with a convenient parking lot for a bike. If you are looking for an apartment to rent ideal for families, you need to check out this home. This home is on the 1st floor & brings in light & air to the home. t t t {1634image_search_1622625628813.jpg,3845image_search_1622625642798.jpg,1699image_search_1622626359964.jpg} t
10 16 4 25 Hebbal NH 44 Bangalore 25000 150000 Located right on NH 44, Hebbal, Century Ethos enjoys quick connectivity to MG Road and KIA. Century Ethos boasts of spacious residences. Housing one of the largest residential clubhouse of North Bengaluru at 50,000 sq. ft. which is filled with decadent indulgences. From a double height lobby which extends seamlessly to the co-working spaces and the business center, from squash court to an indoor heated swimming pool to a 100-seater banquet hall, this magnificent clubhouse has enough room to cater to your every whim. Come experience life just the way you like it. t t t {3554image_search_1622625117301.jpg,7416image_search_1622625491098.jpg,510image_search_1622626289954.jpg} t
11 17 3 15 Gangapur Rd Gangapur Rd Nashik 25000 175000 Lavish 3 BHK Luxurious flats available for rent near Wisdom Highschool. Project is RERA registered and loaded with all modern amenities. Contact Today. Lavish2 & 3BHK homes in the heart of the city. t t t {4600image_search_1622625103120.jpg,8703image_search_1622625501626.jpg,775image_search_1622626429110.jpg} t
12 18 2 4 Ashok Nagar Colony Nashik 3500 30000 description t t t {1525image_search_1622625103120.jpg,6759image_search_1622625501626.jpg,7896image_search_1622626429110.jpg} t
\.
--
-- Data for Name: owner; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.owner (id, uid, name, city, phno) FROM stdin;
14 2121212 Owais 8668201034 8945567213
15 454545 Abhishek Hyderabad 9578561235
16 75235 Sanjyot Bangalore 8457123690
17 652142 Sohail Nashik 8456213652
18 566552 Abhishek W NASHIK 8654123523
\.
--
-- Data for Name: rowhouse; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.rowhouse (id, oid, no_of_room, no_of_floor, no_of_bathroom, area, locality, address, city, rent, deposit, balcony, parking, negotiable, more, images, status) FROM stdin;
3 16 3 1 1 812 Malad Malad West Mumbai 5000 30000 f t t Choose to rent this rowhouse that is ideal for families & enjoy all that this home has to offer. Finding a semi furnished house in Chincholi Bunder at just 30,000 rupees is pretty tough and this home could be just what you are looking for. This South facing home is over 812 sqft. You get ample & dedicated parking space for car and bike with this home. {2109image_search_1622625125758.jpg,3876image_search_1622625522175.jpg,3862image_search_1622626368251.jpg} t
\.
--
-- Data for Name: tenant; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.tenant (id, uid, name, city) FROM stdin;
\.
--
-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY public.users (id, username, email, password) FROM stdin;
14 owais owaisansari1112@gmail.com owais
15 Abhishek abhiwaje123@gmail.com abhishek123
16 Sanjyot sanjyot123@gmail.com sanjyot
17 Sohail sohail@gmail.com sohail
18 Abhishek W abhishekw12@gmail.com abhishek123
\.
--
-- Name: bungalow_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.bungalow_id_seq', 5, true);
--
-- Name: flat_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.flat_id_seq', 12, true);
--
-- Name: rowhouse_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.rowhouse_id_seq', 3, true);
--
-- Name: users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('public.users_id_seq', 18, true);
--
-- Name: bungalow bungalow_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.bungalow
ADD CONSTRAINT bungalow_pkey PRIMARY KEY (id);
--
-- Name: flat flat_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.flat
ADD CONSTRAINT flat_pkey PRIMARY KEY (id);
--
-- Name: owner owner_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.owner
ADD CONSTRAINT owner_id_key UNIQUE (id);
--
-- Name: owner owner_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.owner
ADD CONSTRAINT owner_pkey PRIMARY KEY (uid);
--
-- Name: rowhouse rowhouse_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.rowhouse
ADD CONSTRAINT rowhouse_pkey PRIMARY KEY (id);
--
-- Name: tenant tenant_id_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.tenant
ADD CONSTRAINT tenant_id_key UNIQUE (id);
--
-- Name: tenant tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.tenant
ADD CONSTRAINT tenant_pkey PRIMARY KEY (uid);
--
-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_email_key UNIQUE (email);
--
-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.users
ADD CONSTRAINT users_pkey PRIMARY KEY (id);
--
-- Name: bungalow bungalow_oid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.bungalow
ADD CONSTRAINT bungalow_oid_fkey FOREIGN KEY (oid) REFERENCES public.owner(id);
--
-- Name: flat flat_oid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.flat
ADD CONSTRAINT flat_oid_fkey FOREIGN KEY (oid) REFERENCES public.owner(id);
--
-- Name: owner owner_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.owner
ADD CONSTRAINT owner_id_fkey FOREIGN KEY (id) REFERENCES public.users(id);
--
-- Name: rowhouse rowhouse_oid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.rowhouse
ADD CONSTRAINT rowhouse_oid_fkey FOREIGN KEY (oid) REFERENCES public.owner(id);
--
-- Name: tenant tenant_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY public.tenant
ADD CONSTRAINT tenant_id_fkey FOREIGN KEY (id) REFERENCES public.users(id);
--
-- PostgreSQL database dump complete
--