feat(server): feature model (#9709)

close CLOUD-101
This commit is contained in:
forehalo
2025-01-16 09:36:16 +00:00
parent 0acd23695b
commit 1687184891
7 changed files with 327 additions and 6 deletions

View File

@@ -1,21 +1,24 @@
import { Global, Injectable, Module } from '@nestjs/common';
import { FeatureModel } from './feature';
import { SessionModel } from './session';
import { UserModel } from './user';
import { VerificationTokenModel } from './verification-token';
export * from './session';
export * from './user';
export * from './verification-token';
const models = [UserModel, SessionModel, VerificationTokenModel] as const;
const models = [
UserModel,
SessionModel,
VerificationTokenModel,
FeatureModel,
] as const;
@Injectable()
export class Models {
constructor(
public readonly user: UserModel,
public readonly session: SessionModel,
public readonly verificationToken: VerificationTokenModel
public readonly verificationToken: VerificationTokenModel,
public readonly feature: FeatureModel
) {}
}
@@ -25,3 +28,8 @@ export class Models {
exports: [Models],
})
export class ModelModules {}
export * from './feature';
export * from './session';
export * from './user';
export * from './verification-token';