| 12 | } |
| 13 | |
| 14 | @Entity() |
| 15 | class Book { |
| 16 | @PrimaryKey({ type: 'string' }) |
| 17 | id!: string; |
| 18 | |
| 19 | @Property({ type: 'string' }) |
| 20 | name!: string; |
| 21 | |
| 22 | @ManyToOne(() => Author, { ref: true }) |
| 23 | author!: Ref<Author>; |
| 24 | } |
| 25 | |
| 26 | async function createEntities(em: EntityManager) { |
| 27 | const author = new Author(); |
nothing calls this directly
no test coverage detected