How to use the TableForeignKey function from typeorm

Find comprehensive JavaScript typeorm.TableForeignKey code examples handpicked from public code repositorys.

74
75
76
77
78
79
80
81
82
83
      "default": 'now()'
    }]
  }), true);
case 2:
  _context.next = 4;
  return queryRunner.createForeignKey('product_review', new _typeorm.TableForeignKey({
    columnNames: ['product_id'],
    referencedColumnNames: ['id'],
    referencedTableName: 'product',
    onDelete: 'CASCADE'
fork icon0
star icon0
watch icon1

+ 95 other calls in file