Protected Readonly[SQL_ReadonlyargsThis getter is designed to be used as an attribute's default value. This is useful when the SQL version must be bypassed due to a limitation of the dialect that Sequelize cannot detect, such as a missing extension.
const User = sequelize.define('User', {
uuid: {
type: DataTypes.UUID,
defaultValue: sql.uuidV4.asJavaScript,
},
});
Staticbuild
Do not use me directly. Use sql.random