Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

docs: add the source code tour stub (#2014)

tianzhou241ccacb066b
diff --git a/docs/design/assets/code-structure.png b/docs/design/assets/code-structure.png
new file mode 100644
index 0000000000..cc984811d1
Binary files /dev/null and b/docs/design/assets/code-structure.png differ
diff --git a/docs/design/source-code-tour.snb.md b/docs/design/source-code-tour.snb.md
new file mode 100644
index 0000000000..6c06b6a164
--- /dev/null
+++ b/docs/design/source-code-tour.snb.md
@@ -0,0 +1,17 @@
+# Source Code Tour
+
+This is [best viewed on Sourcegraph](https://sourcegraph.com/github.com/bytebase/bytebase/-/blob/docs/design/source-code-tour.snb.md).
+
+The code snippets in this file correspond to search queries and can be displayed by clicking the button to the right of each query. For example, here is a snippet that shows off the database driver interface.
+
+https://sourcegraph.com/github.com/bytebase/bytebase@d55481/-/blob/plugin/db/driver.go?L382-422
+
+## Architecture Overview
+
+![code structure](./assets/code-structure.png)
+
+## Life of a Schema Migration Change
+
+## Namespacing
+
+To keep a modular design, the codebase uses [reverse domain name notation](https://en.wikipedia.org/wiki/Reverse_domain_name_notation) extensively.