@@ -65,7 +65,7 @@ should appear as a column in the database, require the `@Column` annotation.
6565
6666### ` @Table `
6767The ` @Table ` annotation can be used without passing any parameters. To specify some more define options, use
68- an object literal (all [ define options] ( http://docs.sequelizejs.com/en/v3/api/sequelize/#definemodelname-attributes-options-model )
68+ an object literal (all [ define options] ( http://docs.sequelizejs.com/manual/tutorial/models-definition.html#configuration )
6969from sequelize are valid):
7070``` typescript
7171@Table ({
@@ -79,7 +79,7 @@ class Person extends Model<Person> {}
7979Decorator | Description
8080--------------------------------------|---------------------
8181 ` @Table ` | sets ` options.tableName=<CLASS_NAME> ` and ` options.modelName=<CLASS_NAME> ` automatically
82- ` @Table(options: DefineOptions) ` | sets [ define options] ( http://docs.sequelizejs.com/en/v3/api/sequelize/#definemodelname-attributes-options-model ) (also sets ` options.tableName=<CLASS_NAME> ` and ` options.modelName=<CLASS_NAME> ` if not already defined by define options)
82+ ` @Table(options: DefineOptions) ` | sets [ define options] ( http://docs.sequelizejs.com/manual/tutorial/models-definition.html#configuration ) (also sets ` options.tableName=<CLASS_NAME> ` and ` options.modelName=<CLASS_NAME> ` if not already defined by define options)
8383
8484#### Primary key
8585A primary key (` id ` ) will be inherited from base class ` Model ` . This primary key is by default an ` INTEGER ` and has
@@ -124,7 +124,7 @@ import {DataType} from 'sequelize-typescript';
124124 name : string ;
125125```
126126Or for a more detailed column description, use an object literal
127- (all [ attribute options] ( http://docs.sequelizejs.com/en/v3/api/sequelize/#definemodelname-attributes-options-model )
127+ (all [ attribute options] ( http://docs.sequelizejs.com/manual/tutorial/models-definition.html#configuration )
128128from sequelize are valid):
129129``` typescript
130130 @Column ({
@@ -138,9 +138,9 @@ from sequelize are valid):
138138
139139Decorator | Description
140140--------------------------------------|---------------------
141- ` @Column ` | tries to infer [ dataType] ( http://docs.sequelizejs.com/en/v3/docs/ models-definition/ #data-types ) from js type
142- ` @Column(dataType: DateType) ` | sets [ dataType] ( http://docs.sequelizejs.com/en/v3/docs/ models-definition/ #data-types ) explicitly
143- ` @Column(options: AttributeOptions) ` | sets [ attribute options] ( http://docs.sequelizejs.com/en/v3/api/sequelize/#definemodelname-attributes-options-model )
141+ ` @Column ` | tries to infer [ dataType] ( http://docs.sequelizejs.com/manual/tutorial/ models-definition.html #data-types ) from js type
142+ ` @Column(dataType: DateType) ` | sets [ dataType] ( http://docs.sequelizejs.com/manual/tutorial/ models-definition.html #data-types ) explicitly
143+ ` @Column(options: AttributeOptions) ` | sets [ attribute options] ( http://docs.sequelizejs.com/manual/tutorial/models-definition.html#configuration )
144144
145145#### * Shortcuts*
146146If you're in love with decorators: * sequelize-typescript* provides some more of them. The following decorators can be
@@ -185,7 +185,7 @@ class Person extends Model<Person> {
185185
186186## Usage
187187Except for minor variations * sequelize-typescript* will work like pure sequelize.
188- (See sequelize [ docs] ( http://docs.sequelizejs.com/en/v3/docs/ models-usage/ ) )
188+ (See sequelize [ docs] ( http://docs.sequelizejs.com/manual/tutorial/ models-usage.html ) )
189189### Configuration
190190To make the defined models available, you have to configure a ` Sequelize ` instance from ` sequelize-typescript ` (!).
191191``` typescript
@@ -233,7 +233,7 @@ person.save();
233233
234234### Find and update
235235Finding and updating entries do also work like using native sequelize. So see sequelize
236- [ docs] ( http://docs.sequelizejs.com/en/v3/docs/ models-usage/ ) for more details.
236+ [ docs] ( http://docs.sequelizejs.com/manual/tutorial/ models-usage.html ) for more details.
237237``` typescript
238238Person
239239 .findOne <Person >()
@@ -437,7 +437,7 @@ validation instead, you can do so by simply adding the validate options *as* dec
437437So that ` validate.isEmail=true ` becomes ` @IsEmail ` , ` validate.equals='value' ` becomes ` @Equals('value') `
438438and so on. Please notice, that a validator, that expects a boolean, is translated to an annotation without a parameter.
439439
440- See sequelize [ docs] ( http://docs.sequelizejs.com/en/v3/docs/ models-definition/ #validations )
440+ See sequelize [ docs] ( http://docs.sequelizejs.com/manual/tutorial/ models-definition.html #validations )
441441for all validators.
442442
443443### Exceptions
@@ -507,7 +507,7 @@ export class Shoe extends Model<Shoe> {
507507Scopes can be defined with annotations as well. The scope options are mostly the same like in native
508508sequelize except of the way how model classes are referenced. So instead of referencing them directly a getter
509509function ` () => Model ` is used instead.
510- (See sequelize [ docs] ( http://docs.sequelizejs.com/en/v3/docs/ scopes/ ) for more details)
510+ (See sequelize [ docs] ( http://docs.sequelizejs.com/manual/tutorial/ scopes.html ) for more details)
511511
512512### ` @DefaultScope ` and ` @Scopes `
513513``` typescript
0 commit comments