Skip to content

Instantly share code, notes, and snippets.

@daniellizik
Created March 13, 2025 07:21
Show Gist options
  • Save daniellizik/9e2dd7c4f7003a2fb2a83bce1dc27394 to your computer and use it in GitHub Desktop.
Save daniellizik/9e2dd7c4f7003a2fb2a83bce1dc27394 to your computer and use it in GitHub Desktop.
shop settings sqlite3
# first, download the big file https://drive.google.com/file/d/1vh-RleVkpw68Qa25S7rD3nPeUX6vNZac/view
# name it shop-settings.xlsx
# converts xlsx into csv
brew install gnumeric
brew install sqlite3
# gnumeric contains the ssconvert tool
ssconvert shop-settings.xlsx shop-settings.csv
# https://til.simonwillison.net/sqlite/import-csv
sqlite3 shop-settings.db <<EOS
.mode csv
.import shop-settings.csv shops
EOS
# just for testing
echo -e ".mode column\n.headers on\nSELECT * FROM shops LIMIT 1;" | sqlite3 shop-settings.db > output.txt
# open the txt file, will display this
# shop_id shop_slug legacy_slugs support_code name kana_name short_name internal_name location_name location_kana_name franchise_name status category sales_tier auto_assign auto_accept min_num_people max_num_people duration buffer manual_duration min_manual_duration max_manual_duration tc_input_customer_email tc_input_customer_phone tc_require_email_unless_sms tc_require_confirm_email tc_input_room_name orders service_category purpose marketing_prompt tc_filter_times holidays_menu_items holidays_sheets enable_sms_ts enable_sms_tc enable_payments smartpay_mode show_smoking show_seat_types min_time_cutoff max_time_cutoff min_time_cutoff_at max_time_cutoff_at service_modes business_email reservation_email tc_enabled tc_include_in_sitemap portal_enabled phone url tc_inquiry_url address_region address_city address_street address_street2 address_postal_code address_country alt_address_region alt_address_city alt_address_street alt_address_street2 alt_address_postal_code alt_address_country latitude longitude google_place_ref locale country currency time_zone clock_mode use_table_turnover_timeslots reservation_modes reservation_require_user ts_warn_pace ts_warn_timeslots ts_warn_table_min_capacity ts_warn_table_max_capacity ts_warn_table_combos ts_warn_short_duration ts_warn_reservation_buffer reservation_require_customer reservation_require_purpose reservation_require_source reservation_require_media calendar_rokuyo reservation_status_before reservation_status_after reservation_show_party_name reservation_show_room_name ts_show_membership_code ts_show_customer_name_prefix ts_show_ja_honorific reservation_reverse_memos reservation_use_table_lock reservation_prompt_phone ts_prompt_cancel_reason ts_show_table_min_capacity ts_show_availability ts_show_revenue ts_show_revpash ts_show_ims_app_links ts_require_waitlist_quote ts_prefer_seated_time ts_reservation_list_grouping reservation_customer_confirm enable_provider_allocation enable_auto_daily_pack enable_sms_intl sms_reminders email_reminders use_long_polling extra_reminder_days person_name_format icon_gender pos_importer pos_shop_ref pos_input_journal_refs membership_provider is_test_data translation_locales tc_time_interval tc_timetable_interval tc_show_menu_categories tc_reservation_timeout tc_max_orders reservation_show_senior tc_show_senior tc_age_senior reservation_show_child tc_show_child tc_age_child reservation_show_baby tc_show_baby tc_age_baby tc_return_url booking_policy questions_0_ui_type questions_0_is_required questions_0_question questions_1_ui_type questions_1_is_required questions_1_question questions_2_ui_type questions_2_is_required questions_2_question tc_show_timetable tc_show_availability tc_enable_shop_select tc_enable_amend tc_prompt_cancel_reason tc_show_visit_history tc_login tc_location_name_offers tc_show_full_orders use_menu_show_locales tc_restrict_locales enable_promo_code tc_hide_phone_flag tc_theme tc_footer_translations tc_terms_agreement_text_translations tc_terms_url_translations tc_privacy_url_translations tc_offers_checkbox_text_translations tc_custom_review_html_translations tc_custom_confirm_html_translations tc_custom_email_html_translations tc_custom_css tc_custom_js payment_default_type is_payment_require_intl payment_cancel_protection_mode payment_verify_store payment_require_group_size reservation_iou_mode cancel_fees cancel_policy_translations payment_postpay_advance_days round_method nihaopay_shop_ref support_emails notify_emails scraper_email scraper_auto_import scraper_auto_import_requests scraper_auto_assign Enable Waitlist Quote? Enable Waitlist Paging? Send message when added to waitlist Paging Messages Paging Message Interval Paging Expires After Auto-delete from waitlist when expired Enable Survey Survey Delivery Method SMS Mode SMS Format Insight Analytics Booking Page Version Google Reserve Enabled Enable Search Engine Indexing Enable Online Waitlist Enable Booking Requests Enable Online Booking Requests Line reservation enabled Amexgrn enabled Enable pms inquiry Use Payments v2 Enable Optional Reservation Prepayment Show Debit Card Warning Partial Payment Order Percent Partial Payment Table Fee (per Group) Partial Payment Cover Fee (per Pax) Enable Booking Fee logrocket_mode use_zendesk_widget franchise_use_rescue_app franchise_rescue_app_show_pii booking_policy_placement booking_policy_require_confirm franchise_mailmag_provider franchise_mailmag_benchmark_username Use Web Scraping - Tabelog Use Web Scraping - Hotpepper Chit Printer Chit Content Mode Chit Report Memos tax_rules TripAdvisor Enabled apply_tax_to_service_fee time_select_mode input_customer_birthday shop_enable_thank_you_mails shop_enable_thank_you_texts enable_pos shop_pos_api_partner Tax Registration ID Round Method Partner Ref google_input_service_category google_service_category_ids
# ------------------------ --------------- --------------- ------------ --------------- --------------- --------------- --------------- ------------- ------------------ ----------------------------- ------ ---------- ---------- ----------- ----------- -------------- -------------- -------- ------ --------------- ------------------- ------------------- ----------------------- ----------------------- --------------------------- ------------------------ ------------------ -------- ---------------- -------- ---------------- --------------- ------------------- --------------- ------------- ------------- --------------- ------------- ------------ ------------------------------------------------ --------------- --------------- ------------------ ----------------------- ------------- --------------- ---------------------- ---------- --------------------- -------------- ------------ ------------------------ -------------- -------------- ------------ -------------- --------------- ------------------- --------------- ------------------ ---------------- ------------------ ------------------- ----------------------- ------------------- ---------- ----------- ---------------- ------ ------- -------- ---------- ---------- ---------------------------- ----------------- ------------------------ ------------ ----------------- -------------------------- -------------------------- -------------------- ---------------------- -------------------------- ---------------------------- --------------------------- -------------------------- ------------------------- --------------- ------------------------- ------------------------ --------------------------- -------------------------- ----------------------- ---------------------------- -------------------- ------------------------- -------------------------- ------------------------ ----------------------- -------------------------- -------------------- --------------- --------------- --------------------- ------------------------- --------------------- ---------------------------- ---------------------------- -------------------------- ---------------------- --------------- ------------- --------------- ---------------- ------------------- ------------------ ----------- ------------ ------------ ---------------------- ------------------- ------------ ------------------- ---------------- --------------------- ----------------------- ---------------------- ------------- ----------------------- -------------- ------------- ---------------------- ------------- ------------ --------------------- ------------ ----------- --------------------- ------------------- ------------------- ----------------------- ------------------------------------------------------------ ------------------- ----------------------- ------------------------------------------------------------ ------------------- ----------------------- -------------------- ----------------- -------------------- --------------------- --------------- ----------------------- --------------------- -------- ----------------------- ------------------- --------------------- ------------------- ----------------- ------------------ -------- ---------------------- ------------------------------------ ------------------------- --------------------------- ------------------------------------ ---------------------------------- ----------------------------------- --------------------------------- ------------- ------------ -------------------- ----------------------- ------------------------------ -------------------- -------------------------- -------------------- ----------- -------------------------- ---------------------------- ------------ ----------------- ---------------------------------------------- ------------------- -------------------- ------------------- ---------------------------- ------------------- ---------------------- ----------------------- ----------------------------------- --------------- ----------------------- -------------------- -------------------------------------- ------------- ---------------------- -------- ---------- ----------------- -------------------- ---------------------- ----------------------------- ---------------------- ----------------------- ------------------------------ ------------------------ --------------- ------------------ --------------- -------------------------------------- ----------------------- ----------------------------- ------------------------------------- ----------------------------------- ------------------ -------------- ------------------ ------------------------ ----------------------------- ------------------------ ------------------------------ -------------------------- ------------------------------------ -------------------------- ---------------------------- -------------- ----------------- ----------------- --------- ------------------- ------------------------ ---------------- ----------------------- --------------------------- --------------------------- ---------- -------------------- ------------------- ------------ ------------------------------------------------------------ ----------------------------- ---------------------------
# 5184018070f78ebe16000048 test-tablecheck ["chez-vesper"] TEST TableCheck TEST TableCheck TEST TableCheck TEST TableCheck TWG銀座イースト ダイニジュウナナビル $$$TEST World Restaurants Ltd live restaurant TRUE TRUE 2 25 4500 0 hide optional required TRUE FALSE optional required optional optional show_opted_in FALSE TRUE TRUE TRUE TRUE TRUE optional TRUE open, counter, outside, curtain, private, tatami なし 6ヶ月 2025/03/31 09:22:35.999 dining [email protected] [email protected] TRUE TRUE TRUE +81355650112 https://www.kkvesper.jp/ 岩手県 下閉伊郡岩泉町 下有芸 TEST 027-0504 JP Iwate-ken Shimohei-gun Iwaizumi TEST 027-0504 JP 39.7714173 141.8574724 ja JP JPY Asia/Tokyo 24h FALSE ["tables"] TRUE hide warn hide warn hide FALSE hide FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE FALSE FALSE FALSE [] FALSE FALSE default TRUE TRUE FALSE TRUE TRUE FALSE FALSE [] last_first mars_venus FALSE FALSE en, ja, fr 900 900 FALSE 300 TRUE FALSE 60 TRUE TRUE 12 TRUE FALSE 5 http://www.google.com What is your quest? radio FALSE {"ja"=>"あなたの好きな色は何ですか?", "en"=>"What's your favorite color?" checkboxes FALSE {"ja"=>"ココナッツを運ぶツバメの対気速度の速度は何ですか?", "en"=>"What is the air-s TRUE TRUE FALSE TRUE TRUE TRUE optional FALSE FALSE TRUE FALSE TRUE FALSE {} {} {} {} {"en"=>"Get offers from TableCheck"} {} {} {} postpay_required FALSE auth FALSE optional {} down [email protected], [email protected] [email protected] [email protected] TRUE FALSE TRUE TRUE TRUE TRUE 3 300 900 TRUE FALSE sms_email legacy medium pro both FALSE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE TRUE TRUE FALSE none TRUE TRUE FALSE popup TRUE none TRUE FALSE escpos_generic full [] FALSE TRUE meal hide FALSE FALSE FALSE down Bespo Alibaba, test, Dummy, test, Tabe-Time, test, IT Hackat hide
} peed velocity of a swallow carrying a coconut?"} hon 2020, test, Simplenight, test, Aspire Test, test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment