|
@@ -10,7 +10,8 @@ You may define custom models (entities) that will be registered on the global co
|
|
|
// src/models/post.ts
|
|
|
|
|
|
import { BeforeInsert, Column, Entity, PrimaryColumn } from "typeorm";
|
|
|
-import { BaseEntity, generateEntityId } from "@medusajs/utils";
|
|
|
+import { generateEntityId } from "@medusajs/utils";
|
|
|
+import { BaseEntity } from "@medusajs/medusa";
|
|
|
|
|
|
@Entity()
|
|
|
export class Post extends BaseEntity {
|