model.ts 289 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 10 11 12 import { Association, HasOne, Model } from 'sequelize'; class MyModel extends Model { public static associations: { other: HasOne; }; public static async customStuff() { return this.sequelize!.query('select 1'); } } const assoc: Association = MyModel.associations.other;