不要怂,就是干,撸起袖子干!

Commit dc6249a6 by Sushant

docs: update links to sequelize.org

1 parent 6a8e08ea
......@@ -30,7 +30,7 @@
"title": "Sequelize",
"description": "Node.js ORM for PostgreSQL, MySQL, SQLite and MSSQL",
"repository": "https://github.com/sequelize/sequelize",
"site": "http://docs.sequelizejs.com/"
"site": "https://sequelize.org/master/"
},
"manual": {
"index": "./docs/index.md",
......
......@@ -18,11 +18,11 @@ Sequelize is a promise-based Node.js ORM for Postgres, MySQL, MariaDB, SQLite an
Sequelize follows [SEMVER](http://semver.org). Supports Node v6 and above to use ES6 features.
New to Sequelize? Take a look at the [Tutorials and Guides](http://docs.sequelizejs.com/). You might also be interested in the [API Reference](http://docs.sequelizejs.com/identifiers).
New to Sequelize? Take a look at the [Tutorials and Guides](https://sequelize.org/master). You might also be interested in the [API Reference](https://sequelize.org/master/identifiers).
## v5 Release
You can find the upgrade guide and changelog [here](http://docs.sequelizejs.com/manual/upgrade-to-v5.html).
You can find the upgrade guide and changelog [here](https://sequelize.org/master/manual/upgrade-to-v5.html).
## Table of Contents
- [Installation](#installation)
......@@ -44,7 +44,7 @@ $ npm install --save tedious # Microsoft SQL Server
```
## Documentation
- [v5 Documentation](http://docs.sequelizejs.com)
- [v5 Documentation](https://sequelize.org/master)
- [v4 Documentation](https://sequelize.org/v4)
- [v3 Documentation](https://sequelize.org/v3)
- [Contributing](https://github.com/sequelize/sequelize/blob/master/CONTRIBUTING.md)
......@@ -59,16 +59,16 @@ If you have any security issue to report, contact project maintainers privately.
- [Stack Overflow](https://stackoverflow.com/questions/tagged/sequelize.js)
### Tools
- [Sequelize & TypeScript](http://docs.sequelizejs.com/manual/typescript.html)
- [Sequelize & TypeScript](https://sequelize.org/master/manual/typescript.html)
- [Enhanced TypeScript with decorators](https://github.com/RobinBuschmann/sequelize-typescript)
- [Sequelize & GraphQL](https://github.com/mickhansen/graphql-sequelize)
- [Add-ons & Plugins](http://docs.sequelizejs.com/manual/resources.html)
- [Add-ons & Plugins](https://sequelize.org/master/manual/resources.html)
- [Sequelize CLI](https://github.com/sequelize/cli)
### Learning
- [Getting Started](http://docs.sequelizejs.com/manual/getting-started)
- [Getting Started](https://sequelize.org/master/manual/getting-started)
- [Express Example](https://github.com/sequelize/express-example)
### Translations
- [English v5](http://docs.sequelizejs.com) (OFFICIAL)
- [English v5](https://sequelize.org/master) (OFFICIAL)
- [中文文档 v4/v5](https://github.com/demopark/sequelize-docs-Zh-CN) (UNOFFICIAL)
......@@ -784,7 +784,7 @@ project.setUsers([user1, user2]).then(() => {
### Scopes
This section concerns association scopes. For a definition of association scopes vs. scopes on associated models, see [Scopes](/manual/scopes.html).
This section concerns association scopes. For a definition of association scopes vs. scopes on associated models, see [Scopes](scopes.html).
Association scopes allow you to place a scope (a set of default attributes for `get` and `create`) on the association. Scopes can be placed both on the associated model (the target of the association), and on the through table for n:m relations.
......
......@@ -165,7 +165,7 @@ Timeline.create({ range: [-Infinity, new Date(Date.UTC(2016, 0, 1))] });
## Extending datatypes
Most likely the type you are trying to implement is already included in [DataTypes](/manual/data-types.html). If a new datatype is not included, this manual will show how to write it yourself.
Most likely the type you are trying to implement is already included in [DataTypes](data-types.html). If a new datatype is not included, this manual will show how to write it yourself.
Sequelize doesn't create new datatypes in the database. This tutorial explains how to make Sequelize recognize new datatypes and assumes that those new datatypes are already created in the database.
......
......@@ -38,7 +38,7 @@ const sequelize = new Sequelize('database', 'username', 'password', {
const sequelize = new Sequelize('postgres://user:pass@example.com:5432/dbname');
```
The Sequelize constructor takes a whole slew of options that are documented in the [API Reference for the Sequelize constructor](/class/lib/sequelize.js~Sequelize.html#instance-constructor-constructor).
The Sequelize constructor takes a whole slew of options that are documented in the [API Reference for the Sequelize constructor](../class/lib/sequelize.js~Sequelize.html#instance-constructor-constructor).
### Note: setting up SQLite
......@@ -67,7 +67,7 @@ const sequelize = new Sequelize(/* ... */, {
});
```
Learn more in the [API Reference for the Sequelize constructor](/class/lib/sequelize.js~Sequelize.html#instance-constructor-constructor). If you're connecting to the database from multiple processes, you'll have to create one instance per process, but each instance should have a maximum connection pool size of such that the total maximum size is respected. For example, if you want a max connection pool size of 90 and you have three processes, the Sequelize instance of each process should have a max connection pool size of 30.
Learn more in the [API Reference for the Sequelize constructor](../class/lib/sequelize.js~Sequelize.html#instance-constructor-constructor). If you're connecting to the database from multiple processes, you'll have to create one instance per process, but each instance should have a maximum connection pool size of such that the total maximum size is respected. For example, if you want a max connection pool size of 90 and you have three processes, the Sequelize instance of each process should have a max connection pool size of 30.
### Testing the connection
......@@ -132,7 +132,7 @@ const User = sequelize.define('user', {
Internally, `sequelize.define` calls `Model.init`.
The above code tells Sequelize to expect a table named `users` in the database with the fields `firstName` and `lastName`. The table name is automatically pluralized by default (a library called [inflection](https://www.npmjs.com/package/inflection) is used under the hood to do this). This behavior can be stopped for a specific model by using the `freezeTableName: true` option, or for all models by using the `define` option from the [Sequelize constructor](http://docs.sequelizejs.com/class/lib/sequelize.js~Sequelize.html#instance-constructor-constructor).
The above code tells Sequelize to expect a table named `users` in the database with the fields `firstName` and `lastName`. The table name is automatically pluralized by default (a library called [inflection](https://www.npmjs.com/package/inflection) is used under the hood to do this). This behavior can be stopped for a specific model by using the `freezeTableName: true` option, or for all models by using the `define` option from the [Sequelize constructor](../class/lib/sequelize.js~Sequelize.html#instance-constructor-constructor).
Sequelize also defines by default the fields `id` (primary key), `createdAt` and `updatedAt` to every model. This behavior can also be changed, of course (check the API Reference to learn more about the available options).
......@@ -158,7 +158,7 @@ class Bar extends Model {}
Bar.init({ /* ... */ }, { sequelize, timestamps: true });
```
You can read more about creating models in the [Model.init API Reference](/class/lib/model.js~Model.html#static-method-init), or in the [sequelize.define API reference](/class/lib/sequelize.js~Sequelize.html#instance-method-define).
You can read more about creating models in the [Model.init API Reference](../class/lib/model.js~Model.html#static-method-init), or in the [sequelize.define API reference](../class/lib/sequelize.js~Sequelize.html#instance-method-define).
## Synchronizing the model with the database
......@@ -181,7 +181,7 @@ Instead of calling `sync()` for every model, you can call `sequelize.sync()` whi
### Note for production
In production, you might want to consider using Migrations instead of calling `sync()` in your code. Learn more in the [Migrations](http://docs.sequelizejs.com/manual/migrations.html) guide.
In production, you might want to consider using Migrations instead of calling `sync()` in your code. Learn more in the [Migrations](migrations.html) guide.
## Querying
......
......@@ -598,4 +598,4 @@ Using `queryInterface` object described before you can change database schema. T
[0]: https://github.com/sequelize/cli
[1]: https://github.com/sequelize/umzug
[2]: /class/lib/query-interface.js~QueryInterface.html
[2]: ../class/lib/query-interface.js~QueryInterface.html
......@@ -132,7 +132,7 @@ Sequelize.Deferrable.NOT
```
The last option is the default in PostgreSQL and won't allow you to dynamically change
the rule in a transaction. See [the transaction section](/manual/transactions.html#options) for further information.
the rule in a transaction. See [the transaction section](transactions.html#options) for further information.
## Getters & setters
......@@ -721,7 +721,7 @@ User.init({}, {
});
```
[0]: /manual/models-definition.html#configuration
[1]: /manual/data-types.html
[0]: models-definition.html#configuration
[1]: data-types.html
[3]: https://github.com/chriso/validator.js
[5]: /docs/final/misc#asynchronicity
......@@ -2,7 +2,7 @@
## Data retrieval / Finders
Finder methods are intended to query data from the database. They do *not* return plain objects but instead return model instances. Because finder methods return model instances you can call any model instance member on the result as described in the documentation for [*instances*](/manual/instances.html).
Finder methods are intended to query data from the database. They do *not* return plain objects but instead return model instances. Because finder methods return model instances you can call any model instance member on the result as described in the documentation for [*instances*](instances.html).
In this document we'll explore what finder methods can do:
......
......@@ -184,7 +184,7 @@ const Op = Sequelize.Op
Range types can be queried with all supported operators.
Keep in mind, the provided range value can
[define the bound inclusion/exclusion](/manual/data-types.html#range-types)
[define the bound inclusion/exclusion](data-types.html#range-types)
as well.
```js
......
......@@ -35,7 +35,7 @@ sequelize
})
```
See more options in the [query API reference](/class/lib/sequelize.js~Sequelize.html#instance-method-query). Some examples below:
See more options in the [query API reference](../class/lib/sequelize.js~Sequelize.html#instance-method-query). Some examples below:
```js
sequelize.query('SELECT 1', {
......
......@@ -288,7 +288,7 @@ this.Post.hasMany(this.Comment, {
});
```
When calling `post.getComments()`, this will automatically add `WHERE commentable = 'post'`. Similarly, when adding new comments to a post, `commentable` will automagically be set to `'post'`. The association scope is meant to live in the background without the programmer having to worry about it - it cannot be disabled. For a more complete polymorphic example, see [Association scopes](/manual/associations.html#scopes)
When calling `post.getComments()`, this will automatically add `WHERE commentable = 'post'`. Similarly, when adding new comments to a post, `commentable` will automagically be set to `'post'`. The association scope is meant to live in the background without the programmer having to worry about it - it cannot be disabled. For a more complete polymorphic example, see [Association scopes](associations.html#scopes)
Consider then, that Post has a default scope which only shows active posts: `where: { active: true }`. This scope lives on the associated model (Post), and not on the association like the `commentable` scope did. Just like the default scope is applied when calling `Post.findAll()`, it is also applied when calling `User.getPosts()` - this will only return the active posts for that user.
......
......@@ -12,7 +12,7 @@ Sequelize v5 will only support Node 6 and up [#9015](https://github.com/sequeliz
With v4 you started to get a deprecation warning `String based operators are now deprecated`. Also concept of operators was introduced. These operators are Symbols which prevent hash injection attacks.
[http://docs.sequelizejs.com/manual/querying.html#operators-security](http://docs.sequelizejs.com/manual/querying.html#operators-security)
[operators-security](querying.html#operators-security)
**With v5**
......
......@@ -6,6 +6,6 @@ const noop = () => {};
exports.noRawAttributes = deprecate(noop, 'Use sequelize.fn / sequelize.literal to construct attributes', 'SEQUELIZE0001');
exports.noTrueLogging = deprecate(noop, 'The logging-option should be either a function or false. Default: console.log', 'SEQUELIZE0002');
exports.noStringOperators = deprecate(noop, 'String based operators are deprecated. Please use Symbol based operators for better security, read more at http://docs.sequelizejs.com/manual/querying.html#operators', 'SEQUELIZE0003');
exports.noStringOperators = deprecate(noop, 'String based operators are deprecated. Please use Symbol based operators for better security, read more at https://sequelize.org/master/manual/querying.html#operators', 'SEQUELIZE0003');
exports.noBoolOperatorAliases = deprecate(noop, 'A boolean value was passed to options.operatorsAliases. This is a no-op with v5 and should be removed.', 'SEQUELIZE0004');
exports.noDoubleNestedGroup = deprecate(noop, 'Passing a double nested nested array to `group` is unsupported and will be removed in v6.', 'SEQUELIZE0005');
......@@ -17,7 +17,7 @@
"bugs": {
"url": "https://github.com/sequelize/sequelize/issues"
},
"homepage": "http://docs.sequelizejs.com/",
"homepage": "https://sequelize.org/",
"main": "index.js",
"types": "types",
"engines": {
......
......@@ -113,7 +113,7 @@ export interface BelongsToManyGetAssociationsMixinOptions extends FindOptions {
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyGetAssociationsMixin<TModel> = (
......@@ -154,7 +154,7 @@ export interface BelongsToManySetAssociationsMixinOptions
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManySetAssociationsMixin<TModel, TModelPrimaryKey> = (
......@@ -196,7 +196,7 @@ export interface BelongsToManyAddAssociationsMixinOptions
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyAddAssociationsMixin<TModel, TModelPrimaryKey> = (
......@@ -238,7 +238,7 @@ export interface BelongsToManyAddAssociationMixinOptions
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyAddAssociationMixin<TModel, TModelPrimaryKey> = (
......@@ -275,7 +275,7 @@ export interface BelongsToManyCreateAssociationMixinOptions extends CreateOption
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyCreateAssociationMixin<TModel> = (
......@@ -311,7 +311,7 @@ export interface BelongsToManyRemoveAssociationMixinOptions extends InstanceDest
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyRemoveAssociationMixin<TModel, TModelPrimaryKey> = (
......@@ -347,7 +347,7 @@ export interface BelongsToManyRemoveAssociationsMixinOptions extends InstanceDes
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyRemoveAssociationsMixin<TModel, TModelPrimaryKey> = (
......@@ -383,7 +383,7 @@ export interface BelongsToManyHasAssociationMixinOptions extends BelongsToManyGe
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyHasAssociationMixin<TModel, TModelPrimaryKey> = (
......@@ -419,7 +419,7 @@ export interface BelongsToManyHasAssociationsMixinOptions extends BelongsToManyG
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyHasAssociationsMixin<TModel, TModelPrimaryKey> = (
......@@ -460,7 +460,7 @@ export interface BelongsToManyCountAssociationsMixinOptions extends Transactiona
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to-many/
* @see https://sequelize.org/master/class/lib/associations/belongs-to-many.js~BelongsToMany.html
* @see Instance
*/
export type BelongsToManyCountAssociationsMixin = (
......
......@@ -53,7 +53,7 @@ export interface BelongsToGetAssociationMixinOptions extends FindOptions {
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/
* @see https://sequelize.org/master/class/lib/associations/belongs-to.js~BelongsTo.html
* @see Instance
*/
export type BelongsToGetAssociationMixin<TModel> = (options?: BelongsToGetAssociationMixinOptions) => Promise<TModel>;
......@@ -84,7 +84,7 @@ export interface BelongsToSetAssociationMixinOptions extends SaveOptions {
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/
* @see https://sequelize.org/master/class/lib/associations/belongs-to.js~BelongsTo.html
* @see Instance
*/
export type BelongsToSetAssociationMixin<TModel, TPrimaryKey> = (
......@@ -113,7 +113,7 @@ export interface BelongsToCreateAssociationMixinOptions extends CreateOptions, B
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/
* @see https://sequelize.org/master/class/lib/associations/belongs-to.js~BelongsTo.html
* @see Instance
*/
export type BelongsToCreateAssociationMixin<TModel> = (
......
......@@ -66,7 +66,7 @@ export interface HasManyGetAssociationsMixinOptions extends FindOptions {
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyGetAssociationsMixin<TModel> = (options?: HasManyGetAssociationsMixinOptions) => Promise<TModel[]>;
......@@ -99,7 +99,7 @@ export interface HasManySetAssociationsMixinOptions extends FindOptions, Instanc
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManySetAssociationsMixin<TModel, TModelPrimaryKey> = (
......@@ -135,7 +135,7 @@ export interface HasManyAddAssociationsMixinOptions extends InstanceUpdateOption
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyAddAssociationsMixin<TModel, TModelPrimaryKey> = (
......@@ -171,7 +171,7 @@ export interface HasManyAddAssociationMixinOptions extends InstanceUpdateOptions
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyAddAssociationMixin<TModel, TModelPrimaryKey> = (
......@@ -207,7 +207,7 @@ export interface HasManyCreateAssociationMixinOptions extends CreateOptions {}
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyCreateAssociationMixin<TModel> = (
......@@ -243,7 +243,7 @@ export interface HasManyRemoveAssociationMixinOptions extends InstanceUpdateOpti
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyRemoveAssociationMixin<TModel, TModelPrimaryKey> = (
......@@ -279,7 +279,7 @@ export interface HasManyRemoveAssociationsMixinOptions extends InstanceUpdateOpt
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyRemoveAssociationsMixin<TModel, TModelPrimaryKey> = (
......@@ -315,7 +315,7 @@ export interface HasManyHasAssociationMixinOptions extends HasManyGetAssociation
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyHasAssociationMixin<TModel, TModelPrimaryKey> = (
......@@ -351,7 +351,7 @@ export interface HasManyHasAssociationsMixinOptions extends HasManyGetAssociatio
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyHasAssociationsMixin<TModel, TModelPrimaryKey> = (
......@@ -392,7 +392,7 @@ export interface HasManyCountAssociationsMixinOptions extends Transactionable, F
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-many/
* @see https://sequelize.org/master/class/lib/associations/has-many.js~HasMany.html
* @see Instance
*/
export type HasManyCountAssociationsMixin = (options?: HasManyCountAssociationsMixinOptions) => Promise<number>;
......@@ -51,7 +51,7 @@ export interface HasOneGetAssociationMixinOptions extends FindOptions {
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/
* @see https://sequelize.org/master/class/lib/associations/has-one.js~HasOne.html
* @see Instance
*/
export type HasOneGetAssociationMixin<TModel> = (options?: HasOneGetAssociationMixinOptions) => Promise<TModel>;
......@@ -82,7 +82,7 @@ export interface HasOneSetAssociationMixinOptions extends HasOneGetAssociationMi
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/
* @see https://sequelize.org/master/class/lib/associations/has-one.js~HasOne.html
* @see Instance
*/
export type HasOneSetAssociationMixin<TModel, TModelPrimaryKey> = (
......@@ -111,7 +111,7 @@ export interface HasOneCreateAssociationMixinOptions extends HasOneSetAssociatio
* }
* ```
*
* @see http://docs.sequelizejs.com/en/latest/api/associations/has-one/
* @see https://sequelize.org/master/class/lib/associations/has-one.js~HasOne.html
* @see Instance
*/
export type HasOneCreateAssociationMixin<TModel> = (
......
......@@ -142,7 +142,7 @@ export type Rangable = [number, number] | [Date, Date] | Literal;
/**
* Operators that can be used in WhereOptions
*
* See http://docs.sequelizejs.com/en/v3/docs/querying/#operators
* See https://sequelize.org/master/en/v3/docs/querying/#operators
*/
export interface WhereOperators {
/**
......@@ -1570,13 +1570,13 @@ export abstract class Model<T = any, T2 = any> extends Hooks {
*
* As shown above, column definitions can be either strings, a reference to one of the datatypes that are predefined on the Sequelize constructor, or an object that allows you to specify both the type of the column, and other attributes such as default values, foreign key constraints and custom setters and getters.
*
* For a list of possible data types, see http://docs.sequelizejs.com/en/latest/docs/models-definition/#data-types
* For a list of possible data types, see https://sequelize.org/master/en/latest/docs/models-definition/#data-types
*
* For more about getters and setters, see http://docs.sequelizejs.com/en/latest/docs/models-definition/#getters-setters
* For more about getters and setters, see https://sequelize.org/master/en/latest/docs/models-definition/#getters-setters
*
* For more about instance and class methods, see http://docs.sequelizejs.com/en/latest/docs/models-definition/#expansion-of-models
* For more about instance and class methods, see https://sequelize.org/master/en/latest/docs/models-definition/#expansion-of-models
*
* For more about validation, see http://docs.sequelizejs.com/en/latest/docs/models-definition/#validations
* For more about validation, see https://sequelize.org/master/en/latest/docs/models-definition/#validations
*
* @param attributes
* An object, where each attribute is a column of the table. Each column can be either a DataType, a
......
......@@ -324,7 +324,7 @@ export interface Options extends Logging {
typeValidation?: boolean;
/**
* Sets available operator aliases. See (http://docs.sequelizejs.com/manual/tutorial/querying.html#operators)
* Sets available operator aliases. See (https://sequelize.org/master/manual/tutorial/querying.html#operators)
* for more information. Set to false to disable operator aliases completely (recommended)
*
* @default all aliases
......@@ -1085,16 +1085,16 @@ export class Sequelize extends Hooks {
* getters.
*
* For a list of possible data types, see
* http://docs.sequelizejs.com/en/latest/docs/models-definition/#data-types
* https://sequelize.org/master/en/latest/docs/models-definition/#data-types
*
* For more about getters and setters, see
* http://docs.sequelizejs.com/en/latest/docs/models-definition/#getters-setters
* https://sequelize.org/master/en/latest/docs/models-definition/#getters-setters
*
* For more about instance and class methods, see
* http://docs.sequelizejs.com/en/latest/docs/models-definition/#expansion-of-models
* https://sequelize.org/master/en/latest/docs/models-definition/#expansion-of-models
*
* For more about validation, see
* http://docs.sequelizejs.com/en/latest/docs/models-definition/#validations
* https://sequelize.org/master/en/latest/docs/models-definition/#validations
*
* @param modelName The name of the model. The model will be stored in `sequelize.models` under this name
* @param attributes An object, where each attribute is a column of the table. Each column can be either a
......
......@@ -7,7 +7,7 @@ class MyModel extends Model {
let where: WhereOptions;
// From http://docs.sequelizejs.com/en/v4/docs/querying/
// From https://sequelize.org/master/en/v4/docs/querying/
// Operators
......@@ -140,7 +140,7 @@ MyModel.findOne({
MyModel.destroy({ where });
MyModel.update({ hi: 1 }, { where });
// From http://docs.sequelizejs.com/en/v4/docs/models-usage/
// From https://sequelize.org/master/en/v4/docs/models-usage/
// find multiple entries
MyModel.findAll().then(projects => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!