public.venues

#NameTypeNullableDefaultPK
1iduuidNOuuid_generate_v4()PK
2slugtextNO
3nametextNO
4name_pltextYES
5name_uktextYES
6description_entextYES
7description_pltextYES
8description_uktextYES
9venue_typeUSER-DEFINEDNO'karaoke_bar'::venue_type
10districtUSER-DEFINEDNO
11addresstextNO
12latitudedouble precisionNO
13longitudedouble precisionNO
14phonetextYES
15websitetextYES
16instagramtextYES
17facebooktextYES
18google_maps_urltextYES
19image_urltextYES
20opening_hoursjsonbNO'{}'::jsonb
21price_rangeintegerYES
22price_details_entextYES
23price_details_pltextYES
24price_details_uktextYES
25has_private_roomsbooleanNOfalse
26has_foodbooleanNOfalse
27has_drinksbooleanNOtrue
28song_countintegerYES
29has_english_songsbooleanNOtrue
30has_polish_songsbooleanNOtrue
31has_ukrainian_songsbooleanNOfalse
32reservation_requiredbooleanNOfalse
33reservation_urltextYES
34sourcesjsonbNO'[]'::jsonb
35last_scraped_attimestamp with time zoneYES
36scrape_statustextYES'pending'::text
37scrape_errortextYES
38is_activebooleanNOtrue
39is_verifiedbooleanNOfalse
40search_vectortsvectorYES
41created_attimestamp with time zoneNOnow()
42updated_attimestamp with time zoneNOnow()
43google_place_idtextYES
44price_detailstextYES
45hours_sourcetextYES
46last_discovery_attimestamp with time zoneYES
47data_confidencedouble precisionYES
48karaoke_hoursjsonbYES'{}'::jsonb
49is_dedicated_karaokebooleanYESfalse
50karaoke_schedule_notetextYES
51karaoke_schedule_confidencedouble precisionYES0
52karaoke_schedule_sourcesARRAYYES'{}'::text[]
53karaoke_schedule_note_pltextYES
54karaoke_schedule_note_uktextYES

Indexes

NameDefinitionUniquePrimarySize
idx_venues_activeCREATE INDEX idx_venues_active ON public.venues USING btree (is_active) WHERE (is_active = true)16 kB
idx_venues_discoveryCREATE INDEX idx_venues_discovery ON public.venues USING btree (last_discovery_at)16 kB
idx_venues_districtCREATE INDEX idx_venues_district ON public.venues USING btree (district)16 kB
idx_venues_locationCREATE INDEX idx_venues_location ON public.venues USING btree (latitude, longitude)16 kB
idx_venues_searchCREATE INDEX idx_venues_search ON public.venues USING gin (search_vector)80 kB
idx_venues_slugCREATE INDEX idx_venues_slug ON public.venues USING btree (slug)16 kB
idx_venues_typeCREATE INDEX idx_venues_type ON public.venues USING btree (venue_type)16 kB
venues_pkeyCREATE UNIQUE INDEX venues_pkey ON public.venues USING btree (id)16 kB
venues_slug_keyCREATE UNIQUE INDEX venues_slug_key ON public.venues USING btree (slug)16 kB

Constraints

NameTypeDefinition
venues_price_range_checkCHECKCHECK (((price_range >= 1) AND (price_range <= 3)))
venues_pkeyPRIMARY KEYPRIMARY KEY (id)
venues_slug_keyUNIQUEUNIQUE (slug)