Database Seed Script (seed/db.ts)

onlook · database, Database / ORM, seed, dev-tools, orm, fixtures

Populates the development database with default users, projects, branches, and related entities for testing and onboarding.

// Source: https://github.com/mperkins0155/onlook | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
import { createDefaultProject } from '@/defaults/project';
import { Tags } from '@onlook/constants';
import {
    branches,
    canvases,
    conversations,
    createDefaultCanvas, createDefaultFrame, createDefaultUserCanvas,
    deployments,
    frames,
    legacySubscriptions,
    messages,
    previewDomains,
    prices,
    products,
    projectCustomDomains,
    projects,
    rateLimits,
    subscriptions,
    usageRecords,
    userCanvases,
    userProjects,
    users,
    type Branch,
    type Conversation,
    type Message,
    type Price,
    type Product,
    type RateLimit

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key