# Bytebase — Onboarding · 7 days · Dec 23 – Dec 29, 2024

> A real journey — the founder-signed seven-day series Bytebase sent our account after signup. Observed in our own Bytebase account. Names, credentials and links replaced with merge fields. We don't claim any email performs well.

Recorded from a signup on 2024-12-23. Sequences change; this is what the product sent then.

Times are UTC. `D3` means three days after signup. Merge fields look like `{first name}`.
Lines starting with ◆ are the account's state in the product, as the emails describe it.

## Signup (Day 0)

◆ D0 · 02:40 — Signed up, cloud workspace provisioned (time of the “workspace is ready” email)

### D0 · 02:40 — Your Bytebase workspace is ready

- From: Bytebase support team <support@bytebase.com>
- Preview: It's time to boost Database CI/CD
- Role in the sequence: Setup

## It's time to boost Database CI/CD

[Button: Login to your workspace]

Your workspace provision success, please login with the following account:

```
Email: {email}
Password: {password}
```

Sincerely,
Bytebase support team.

__

**Teardown**

- Why this moment: Sent the moment the hosted workspace finished provisioning — the first email, about an hour before the welcome.
- The one ask: Log in to the new workspace.
- Subject line: A plain status line: the workspace exists and is ready.
- Call to action: One button. The email prints a generated password in plain text, and the login link itself carried the email and password as URL parameters.

### D0 · 03:44 — Bytebase for Database DevOps (1/7)

- From: Tianzhou <t@bytebase.com>
- Preview: Welcome to Bytebase 🎉.
- Role in the sequence: Welcome

Welcome to Bytebase 🎉.

[Link: Book a Quick Demo →]

Hi there 👋,

Welcome to Bytebase!

We're delighted you find us. Bytebase is an open-source database DevSecOps platform. It's built for Developers, Security Engineers, DBAs, and Platform Engineers. Bytebase is for managing all human-to-db operations for all databases (we don't manage application-to-db operations BTW 😬):

- Change. Schema migration and ad-hoc DML.
- Query. SELECT and export.
- Secure. ACL and masking.
- Govern. Auditing and compliance.

We'd love to hear what you think; Please reply and say hello:)

Speak soon,
Tianzhou
Co-founder & CEO of Bytebase

ps. We'll send you an email each day over the next 6 days. Each email will describe a Bytebase feature to help you get familiar with the product.

_Copyright © 2024 Bytebase, All rights reserved. Blog | Unsubscribe | Contact_

**Teardown**

- Why this moment: About an hour after the workspace email. Opens a numbered series: the subject says “(1/7)”.
- The one ask: Reply and say hello. The only link is “Book a Quick Demo” at the top.
- Subject line: Category name plus a counter. “(1/7)” tells the reader up front how many emails are coming.
- Call to action: No product button. The postscript sets expectations for the next six days: one email a day, one feature each.

## Feature tour (Day 1–6)

### D1 · 03:49 — Yet Another Jira for Database? (2/7)

- From: Tianzhou <t@bytebase.com>
- Preview: We joke ourselves as the Jira for Database 🤭
- Role in the sequence: Tutorial

We joke ourselves as the Jira for Database 🤭

[Link: Book a Quick Demo →]

Internally, we joke ourselves as the Jira for Database and some Bytebase customers do come from Jira.

Similar to Jira, Bytebase has:

- A UI for the developers to submit the ticket for DBA to review.
- Customizable approval nodes.
- Comments to discuss the change.
- Labels.

And Bytebase provides much more:

### Integrated request, review, approve, deploy

DBA no longer needs to use a separate db client to apply the change.

### Change history

Changes are made when, who, why, what, and how (4 W and H).

### Rollback

Take a prior backup before the DML.

### Specify a rollout time

Deploy during non-business hours.

### SQL Lint

Detect SQL anti-patterns automatically. We will cover it in detail in the next email!

Check out the doc for details.

Speak soon,
Tianzhou
Co-founder & CEO of Bytebase

_Copyright © 2024 Bytebase, All rights reserved. Blog | Unsubscribe | Contact_

**Teardown**

- Why this moment: Day 1, five minutes later in the day than 1/7. Every email in the series drifts by about five minutes.
- The one ask: Read the change-workflow doc.
- Subject line: Borrows a tool the reader already knows (Jira) to explain the product, phrased as a question.
- Call to action: A single text link to the docs. The last section teases the next email (“We will cover it in detail in the next email!”).

### D2 · 03:54 — Database CI with SQL lint (3/7)

- From: Tianzhou <t@bytebase.com>
- Preview: Developers are familiar with code lint. 🧐
- Role in the sequence: Tutorial

Developers are familiar with code lint. 🧐

[Link: Book a Quick Demo →]

Developers are familiar with code lint. You can configure SQL review rules to automatically detect SQL anti-patterns. Once configured, Bytebase will report the violation if found.

- Enforce column constraint. NOT NULL constraint, restrict CHAR length.
- Naming convention. Make tables, columns have consistent naming.
- Delete prevention. Disallow DROP Table or require _del suffix.
- Lock prevention. Prevent statement holding long-time lock.
- Large change alert. Raise error/warning if a change affects over xxx rows.

These SQL review rules are available in the Bytebase console as well as in the API. You can configure your CI to call this API like the GitHub Actions example below:

[Image: GitHub pull request diff with GitHub Actions SQL Review warnings (column.no-null) on a CREATE TABLE migration]

Bytebase provides 200+ rules. Check out the doc for details. If you want to add your desired rule, please let us know!

Speak soon,
Tianzhou
Co-founder & CEO of Bytebase

_Copyright © 2024 Bytebase, All rights reserved. Blog | Unsubscribe | Contact_

**Teardown**

- Why this moment: Day 2, delivering on the teaser at the end of 2/7.
- The one ask: Set up SQL review rules, in the console or from CI through the API.
- Subject line: Pairs the product with a practice developers already use: CI and lint.
- Call to action: Links to the API docs, a GitHub Actions example and the rules doc. Ends by inviting rule requests.

◆ D2 · 09:35 — Workspace deactivated for inactivity (“released”) — the daily series keeps going

### D2 · 09:35 — Your Bytebase workspace is released

- From: Bytebase support team <support@bytebase.com>
- Preview: Your workspace is released
- Role in the sequence: Downgraded

## Your workspace is released

Your workspace has been deactivated due to inactivity, you can login to the Bytebase Hub and reactivate it.

[Button: Go to the Bytebase Hub]

Sincerely,
Bytebase support team.

__

**Teardown**

- Why this moment: About 55 hours after the workspace was provisioned, with no activity in it. Same sender and template as the “ready” email.
- The one ask: Log in to the Hub and reactivate the workspace.
- Subject line: “Released” is infrastructure language; the body explains it means deactivated.
- Call to action: One button to the Hub. Nothing in the founder series that follows mentions the deactivation — 4/7 to 7/7 still describe features to try in the workspace.

### D3 · 03:59 — Database GitOps (4/7)

- From: Tianzhou <t@bytebase.com>
- Preview: Developers are used to store everything in the VCS 🐙 🦊
- Role in the sequence: Tutorial

Developers are used to store everything in the VCS 🐙 🦊

[Link: Book a Quick Demo →]

Developers are used to store everything in the VCS (Version Control System). Migration scripts are no exceptions. In Bytebase, you can configure the database GitOps.

### Step 1: Add a Git provider

Bytebase supports GitHub, GitLab, Azure DevOps, Bitbucket.

### Step 2: Add GitOps connector in Project

Specify which branch and which subdirectory to observe the change. And optionally specify which databases to apply the change.

### Step 3: Create migration scripts

Submit the migration script for review in the VCS. Once the change is merged into the branch, it will be pushed to Bytebase automatically and ready for rollout.

Check out the doc for details.

Speak soon,
Tianzhou
Co-founder & CEO of Bytebase

_Copyright © 2024 Bytebase, All rights reserved. Blog | Unsubscribe | Contact_

**Teardown**

- Why this moment: Day 3, the morning after the workspace was deactivated.
- The one ask: Connect a Git provider and set up GitOps for migration scripts.
- Subject line: Two words naming the feature, plus the counter.
- Call to action: A three-step setup written out in the email, then a link to the docs.

### D4 · 04:04 — 1-click Data Rollback (5/7)

- From: Tianzhou <t@bytebase.com>
- Preview: Bytebase provides a row-level backup 💾
- Role in the sequence: Tutorial

Bytebase provides a row-level backup 💾

[Link: Book a Quick Demo →]

Your cloud database provider has already provided Point-In-Time Recovery (PITR). The problem with PITR is it wipes out both the good changes as well as the bad changes. What if you only want to revert a single change while keeping the others intact?

Bytebase provides a row-level backup, you can turn on it before running the DML.

Once enabled, Bytebase will store the pre-snapshot of the affected data in a specially named-table. If you want to revert the change, you can click the Rollback button to create the rollback issue.

Check out the doc to learn more.

Speak soon,
Tianzhou
Co-founder & CEO of Bytebase

_Copyright © 2024 Bytebase, All rights reserved. Blog | Unsubscribe | Contact_

**Teardown**

- Why this moment: Day 4.
- The one ask: Turn on row-level backup before running data changes.
- Subject line: Leads with the benefit (“1-click”) rather than the mechanism.
- Call to action: Frames the feature against what the reader already has (their provider's point-in-time recovery) and its limit, then links to the docs.

### D5 · 04:09 — Dynamic Data Masking (6/7)

- From: Tianzhou <t@bytebase.com>
- Preview: The policies can be changed on the fly. ✈️
- Role in the sequence: Tutorial

The policies can be changed on the fly. ✈️

[Link: Book a Quick Demo →]

Bytebase allows you to configure masking policies to grant different persons with different permissions to see data with different masking levels. It's called dynamic data masking because the policies can be changed on the fly.

You can configure the masking police at different layers:

### Global data classification

Health-related data is highly sensitive, thus you can assign the highest L4 level.

### Global masking rule

Do not apply masking for test environment. Apply partial masking for L3 classification level.

### Explicit masking column

Mask the first_name and last_name explicitly.

### Masking algorithm

Mask the first 4 characters.

### Grant unmasked access

Although first_name is partially masked by default. You can grant dev1 with plain text access.

You can also codify the masking policies and we have provided an example. Check out the doc to learn more.

Speak soon,
Tianzhou
Co-founder & CEO of Bytebase

_Copyright © 2024 Bytebase, All rights reserved. Blog | Unsubscribe | Contact_

**Teardown**

- Why this moment: Day 5. A separate “Bytebase Newsletter #010” (year in review) arrived about 11 hours later the same day, from the support address.
- The one ask: Configure masking policies, or codify them from the GitHub example.
- Subject line: Feature name plus the counter.
- Call to action: Five layers explained with a concrete example each, then a link to an example repo and the docs.

### D6 · 04:14 — Batch Change Databases (7/7)

- From: Tianzhou <t@bytebase.com>
- Preview: Apply the migration to all the databases consistently 🔄
- Role in the sequence: Tutorial

Apply the migration to all the databases consistently 🔄

[Link: Book a Quick Demo →]

You may have databases in multiple regions for compliance reasons. You may provision a separate database for each of your customers. When you want to release a new version and apply the schema migration, you want to apply the migration to all of the databases consistently. Bytebase allows you to do that.

### Group databases

Group similar databases together, e.g. Regionalized, partitioned, tenanted databases.

### Apply the change to the database group in 1 issue

### Configure deployment

Propagate the change gradually. e.g. Deploy to Asia, then to Europe, then to North America.

Check out the doc to learn more.

That's a wrap for the Bytebase Intro series. Thanks for being with me thus far. If you'd like to learn more, feel free to schedule a live demo with us.

Speak soon,
Tianzhou
Co-founder & CEO of Bytebase

_Copyright © 2024 Bytebase, All rights reserved. Blog | Unsubscribe | Contact_

**Teardown**

- Why this moment: Day 6, exactly as the 1/7 postscript promised. Arrived 3 days after the workspace was deactivated.
- The one ask: Schedule a live product walkthrough.
- Subject line: The “(7/7)” counter tells the reader the series is over.
- Call to action: Closes the series in the body (“That's a wrap”) and repeats the demo offer at the end with a scheduling link, alongside the docs link.

React Email template (`emails/series-part.tsx`):

```tsx
import {
  Body,
  Container,
  Head,
  Heading,
  Hr,
  Html,
  Link,
  Preview,
  Section,
  Text,
} from "@react-email/components";

interface Step {
  title: string;
  body: string;
}

interface SeriesEmailProps {
  product?: string;
  part?: number;
  total?: number;
  feature?: string;
  hook?: string;
  steps?: Step[];
  docsUrl?: string;
  founderName?: string;
  founderTitle?: string;
}

export default function SeriesEmail({
  product = "Acme",
  part = 4,
  total = 7,
  feature = "Deploy from Git",
  hook = "Your config already lives in Git. Your deploys can too.",
  steps = [
    { title: "Connect a Git provider", body: "GitHub, GitLab and Bitbucket are supported." },
    { title: "Pick a branch to watch", body: "Choose the branch and folder Acme should follow." },
    { title: "Merge to ship", body: "Once a change is merged, it is ready to roll out." },
  ],
  docsUrl = "https://acme.example/docs/git",
  founderName = "Sam",
  founderTitle = "Co-founder, Acme",
}: SeriesEmailProps) {
  const isLast = part === total;
  return (
    <Html>
      <Head />
      <Preview>{hook}</Preview>
      <Body style={body}>
        <Container style={container}>
          <Text style={counter}>
            {product} intro series · {part} of {total}
          </Text>
          <Heading style={heading}>{feature}</Heading>
          <Text style={text}>{hook}</Text>

          {steps.map((step, i) => (
            <Section key={step.title} style={{ margin: "0 0 16px" }}>
              <Text style={stepTitle}>
                Step {i + 1}: {step.title}
              </Text>
              <Text style={text}>{step.body}</Text>
            </Section>
          ))}

          <Text style={text}>
            <Link href={docsUrl} style={link}>
              Read the docs
            </Link>{" "}
            for the details.
          </Text>

          {isLast ? (
            <Text style={text}>
              That's the end of the series. Reply if you'd like a live walkthrough.
            </Text>
          ) : (
            <Text style={text}>Tomorrow: part {part + 1} of {total}.</Text>
          )}

          <Hr style={hr} />
          <Text style={sign}>
            Speak soon,
            <br />
            {founderName}
            <br />
            {founderTitle}
          </Text>
        </Container>
      </Body>
    </Html>
  );
}

SeriesEmail.PreviewProps = {
  part: 4,
  total: 7,
} satisfies SeriesEmailProps;

const body = {
  backgroundColor: "#ffffff",
  fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",
};

const container = { maxWidth: "520px", margin: "0 auto", padding: "40px 24px" };

const counter = { fontSize: "13px", color: "#71717a", margin: "0 0 8px" };

const heading = {
  fontSize: "22px",
  lineHeight: "30px",
  fontWeight: 600,
  color: "#111111",
  margin: "0 0 16px",
};

const text = { fontSize: "15px", lineHeight: "24px", color: "#3f3f46", margin: "0 0 12px" };

const stepTitle = { ...text, fontWeight: 600, color: "#111111", margin: "0 0 4px" };

const link = { color: "#111111", textDecoration: "underline" };

const hr = { borderColor: "#eeeeee", margin: "28px 0 20px" };

const sign = { ...text, margin: "0" };
```

## After the series (Day 7+)

◆ D10–32 — No more onboarding emails — only release notes (3.2.0, Day 10) and newsletters #011–#012, checked through Jan 24, 2025
