CheapStack uses Drizzle ORM for database access. Drizzle is a type-safe ORM that supports both SQLite (via libSQL/Turso) and PostgreSQL (via Neon). The SaaS Starter ($49) uses SQLite via libSQL. The SaaS Boilerplate ($59) supports both SQLite and PostgreSQL — configurable via the DATABASE_TYPE environment variable.
import { sqliteTable, text, integer } from "drizzle-orm/sqlite-core";
import { pgTable, text as pgText, integer as pgInt } from "drizzle-orm/pg-core";
export const users = sqliteTable("users", {
id: text("id").primaryKey(),
email: text("email").notNull().unique(),
name: text("name"),
});