Files
medusa-store/packages/modules/customer/mikro-orm.config.dev.ts
Adrien de Peretti 77d72c5791 fix(customer): Unique constraint on customer email (#7439)
**What**
Prevent creating multiple customers with the same email
2024-05-24 14:20:54 +00:00

13 lines
317 B
TypeScript

import * as entities from "./src/models"
import { TSMigrationGenerator } from "@medusajs/utils"
module.exports = {
entities: Object.values(entities),
schema: "public",
clientUrl: "postgres://postgres@localhost/medusa-customer",
type: "postgresql",
migrations: {
generator: TSMigrationGenerator,
},
}