MCPcopy Create free account
hub / github.com/sequelize/sequelize-typescript / User3

Class User3

test/specs/instance.spec.ts:1231–1245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1229
1230 it('works with `allowNull: false` on createdAt and updatedAt columns', () => {
1231 @Table({
1232 timestamps: true,
1233 })
1234 class User3 extends Model {
1235 @Column
1236 username: string;
1237
1238 @AllowNull(false)
1239 @Column
1240 createdAt: Date;
1241
1242 @AllowNull(false)
1243 @Column
1244 updatedAt: Date;
1245 }
1246
1247 sequelize.addModels([User3]);
1248

Callers

nothing calls this directly

Calls 2

TableFunction · 0.90
AllowNullFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…