export const deploymentListByOrg = db
.select({ id: deployments.id, name: deployments.name, description: deployments.description })
.from(deployments)
.where(eq(deployments.organizationId, sql.placeholder("orgId")))
.prepare();
export type DeploymentListResponse = typeof deploymentListByOrg.all;
// export type DeploymentListResponse = { id: number; name: string; description: string | null }[]; <--- this is the type of the response that should be inferred
export const deploymentListByOrg = db
.select({ id: deployments.id, name: deployments.name, description: deployments.description })
.from(deployments)
.where(eq(deployments.organizationId, sql.placeholder("orgId")))
.prepare();
export type DeploymentListResponse = typeof deploymentListByOrg.all;
// export type DeploymentListResponse = { id: number; name: string; description: string | null }[]; <--- this is the type of the response that should be inferred