mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 16:31:47 +00:00
Part of CORE-99 This PR scaffolds the database schema and code structure based on [CORE-99 comment](https://linear.app/sourcegraph/issue/CORE-99/enterprise-portal-design-sams-user-to-subscription-rpcs#comment-8105ac31) with some modifications. See inline comments for more elaborations. - It uses GORM's ONLY for auto migration, just to kick things off, we may migrate to file-based migration like we are planning for SAMS. - It then uses the `*pgxpool.Pool` as the DB interface for executing business logic queries. Additionally, refactored `subscriptionsservice/v1.go` to use a `Store` that provide single interface for accessing data(base), as we have been doing in SAMS and SSC. ## Test plan Enterprise Portal starts locally, and database is initialized:  |
||
|---|---|---|
| .. | ||
| bigquerywriter | ||
| cloudsql | ||
| runtime | ||
| BUILD.bazel | ||
| go.mod | ||
| go.sum | ||
| managedservicesplatform.go | ||