export enum Gender { MALE = "MALE", FEMALE = "FEMALE",}export function enumToPgEnum(myEnum: any): [string, ...string[]] { return Object.values(myEnum).map((value: any) => `${value}`) as [ string, ...string[], ];}const genderEnumList = enumToPgEnum(Gender);export const genderEnum = pgEnum('gender', genderEnumList);