Refactor app management to use Drizzle ORM
- Replaced Sequelize models with Drizzle ORM for app and app list management. - Updated routes in app-manager to utilize new database queries. - Removed obsolete Sequelize model files for app, app list, and app domain. - Introduced new helper functions for app and app domain management. - Enhanced user app management with improved file handling and user migration. - Adjusted public API routes to align with new database structure. - Implemented caching mechanisms for domain management.
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { App } from '@kevisual/router';
|
||||
import * as redisLib from './modules/redis.ts';
|
||||
import * as sequelizeLib from './modules/sequelize.ts';
|
||||
import { useContextKey } from '@kevisual/context';
|
||||
import { SimpleRouter } from '@kevisual/router/simple';
|
||||
import { s3Client, oss as s3Oss } from './modules/s3.ts';
|
||||
@@ -22,7 +21,6 @@ export const oss = useContextKey(
|
||||
export { s3Client }
|
||||
export const redis = useContextKey('redis', () => redisLib.redis);
|
||||
export const subscriber = useContextKey('subscriber', () => redisLib.subscriber);
|
||||
export const sequelize = useContextKey('sequelize', () => sequelizeLib.sequelize);
|
||||
export { db };
|
||||
const init = () => {
|
||||
return new App({
|
||||
|
||||
Reference in New Issue
Block a user