Refactor database schema and improve code readability

Significantly simplified the syntax of SQL scripts for managing privileges to improve readability. Improved the structure and format of the code by making spacing and indentation consistent. Also made minor changes to the creation and configuration of enums and table schemas.
This commit is contained in:
giancarlo
2024-04-02 11:11:36 +08:00
parent f58aaa330c
commit 28396d1273
2 changed files with 1400 additions and 1167 deletions

View File

@@ -29,7 +29,7 @@ const LazyEmbeddedCheckout = dynamic(
},
);
async function ReturnStripeSessionPage({ searchParams }: SessionPageProps) {
async function ReturnCheckoutSessionPage({ searchParams }: SessionPageProps) {
const { customerEmail, checkoutToken } = await loadCheckoutSession(
searchParams.session_id,
);
@@ -62,7 +62,7 @@ async function ReturnStripeSessionPage({ searchParams }: SessionPageProps) {
);
}
export default withI18n(ReturnStripeSessionPage);
export default withI18n(ReturnCheckoutSessionPage);
export async function loadCheckoutSession(sessionId: string) {
const client = getSupabaseServerComponentClient();

File diff suppressed because it is too large Load Diff