feat: Implement repositories for authentication, certificates, metrics, and platform services
- Added AuthRepository for user and settings management with CRUD operations. - Introduced CertificateRepository to handle domains, certificates, and requirements. - Created MetricsRepository for managing metrics and logs. - Developed PlatformRepository for platform services and resources management. - Established RegistryRepository for registry and token operations. - Implemented ServiceRepository for CRUD operations on services. - Defined types and interfaces in types.ts for database interactions.
This commit is contained in:
13
ts/database/base.repository.ts
Normal file
13
ts/database/base.repository.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Base repository class with common query methods
|
||||
*/
|
||||
|
||||
import type { TBindValue, TQueryFunction } from './types.ts';
|
||||
|
||||
export abstract class BaseRepository {
|
||||
protected query: TQueryFunction;
|
||||
|
||||
constructor(queryFn: TQueryFunction) {
|
||||
this.query = queryFn;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user