get certificate private key endpoint + migrations

This commit is contained in:
x
2025-04-29 20:34:39 -04:00
parent ba94b91974
commit e81c49500b
10 changed files with 192 additions and 7 deletions
@@ -0,0 +1,10 @@
import { TDbClient } from "@app/db";
import { TableName } from "@app/db/schemas";
import { ormify } from "@app/lib/knex";
export type TCertificateSecretDALFactory = ReturnType<typeof certificateSecretDALFactory>;
export const certificateSecretDALFactory = (db: TDbClient) => {
const caSecretOrm = ormify(db, TableName.CertificateSecret);
return caSecretOrm;
};