Public
Like
createanappthatallowsuserstopostdailyhabits
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.
This directory contains the database schema and query functions for the Side Hustle Hub application.
migrations.ts: Contains the database schema definitions and initial setupqueries.ts: Contains typed query functions for interacting with the database
The application uses SQLite with the following tables:
side_hustle_users_1: Stores user informationside_hustle_opportunities_1: Stores side hustle opportunitiesside_hustle_chat_rooms_1: Stores chat room informationside_hustle_messages_1: Stores chat messages
The database is initialized when the application starts by calling runMigrations() from the main backend entry point.
Query functions are exported from queries.ts and provide typed access to the database.