Set the primary model to select from Accepts model class or table name string
Add a column to select
Optionalopts: { alias?: string; expression?: string }Add all columns from a model
Optionalopts: { prefix?: string }Add a join to the view
Add DISTINCT
Get the view options
Build the SELECT query for the view
Build and return the SQL string
Reset the builder
Builder for creating database views