• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
homestocompare

homestocompare

HTOC

Public
Like
HTOC
Home
Code
4
backend
4
frontend
4
shared
3
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
backend
/
database
/
README.md
Code
/
backend
/
database
/
README.md
Search
5/15/2025
README.md

Database Layer

This directory contains the database schema and query functions for the House Hunter application.

Files

  • migrations.ts - Contains the database schema definitions and initial data seeding
  • queries.ts - Contains functions for querying the database

Schema

The main table is properties_v1 which stores all property listings with the following fields:

  • id - Unique identifier
  • title - Property title
  • description - Detailed description
  • price - Price in USD
  • bedrooms - Number of bedrooms
  • bathrooms - Number of bathrooms
  • sqft - Square footage
  • address - Street address
  • city - City
  • state - State
  • zip - ZIP code
  • lat - Latitude (for map display)
  • lng - Longitude (for map display)
  • image_url - URL to the property image
  • created_at - Creation timestamp
  • updated_at - Last update timestamp

Usage

The database is automatically initialized when the application starts. The runMigrations function creates the necessary tables and seeds initial data if needed.

FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.