We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Optional
1 parent fda11c8 commit 8e9df92Copy full SHA for 8e9df92
README.md
@@ -113,15 +113,15 @@ class Person extends Model {}
113
114
115
```typescript
116
+import { Optional } from 'sequelize';
117
import { Table, Model } from 'sequelize-typescript';
118
119
interface PersonAttributes {
120
id: number;
121
name: string;
122
}
123
-interface PersonCreationAttributes {
124
- name: string;
+interface PersonCreationAttributes extends Optional<PersonAttributes, 'id'> {
125
126
127
@Table
0 commit comments