Sequelize.getViews() method
The registered models that are declared as views.
Signature:
getViews(): (typeof BaseModel)[];
Returns:
(typeof BaseModel)[]
Model classes flagged as views, in registration order.
Remarks
A model counts as a view once View or DynamicView has put treatAsView in its options, which is the same flag that makes the table sync skip it and drop() issue DROP VIEW.