mirror of
https://github.com/rybbit-io/rybbit.git
synced 2025-05-10 20:05:38 +02:00
Refactor database integration and clean up unused code
- Removed PostgreSQL initialization and related session types to streamline database management. - Updated Clickhouse integration by commenting out unused table and view creation queries for future reference. - Enhanced button styles in the UI components for improved consistency and user experience.
This commit is contained in:
parent
6638ea32e4
commit
9c605ef00b
8 changed files with 80 additions and 146 deletions
|
@ -1,18 +1,15 @@
|
|||
import { betterAuth } from "better-auth";
|
||||
import { username, admin, organization } from "better-auth/plugins";
|
||||
import dotenv from "dotenv";
|
||||
import pg from "pg";
|
||||
import { drizzleAdapter } from "better-auth/adapters/drizzle";
|
||||
import { db } from "../db/postgres/postgres.js";
|
||||
import { IS_CLOUD, STRIPE_PRICES } from "./const.js";
|
||||
import * as schema from "../db/postgres/schema.js";
|
||||
import { admin, organization, username } from "better-auth/plugins";
|
||||
import dotenv from "dotenv";
|
||||
import { eq } from "drizzle-orm";
|
||||
import Stripe from "stripe";
|
||||
import pg from "pg";
|
||||
import { db } from "../db/postgres/postgres.js";
|
||||
import * as schema from "../db/postgres/schema.js";
|
||||
import { IS_CLOUD } from "./const.js";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
const stripeClient = new Stripe(process.env.STRIPE_SECRET_KEY!);
|
||||
|
||||
type AuthType = ReturnType<typeof betterAuth> | null;
|
||||
|
||||
const pluginList = IS_CLOUD
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue