-
Couldn't load subscription status.
- Fork 286
Closed
Description
HI there i'm trying to use sequelize typescript in order to create a composite unique key
this is my code:
@Column({
field: 'is_default',
type: DataType.BOOLEAN,
unique: 'active_unique',
})
public isDefault: boolean;
// ForeignKeys
@ForeignKey(() => Profile)
@Column({
allowNull: false,
field: 'profile_id',
type: DataType.STRING(255),
unique: 'active_unique',
})
But I'm having problems in creation new rows with different Profile and online unique in isDefault...
Does any can help please?
Thanks in advance
Carlos Vieira
Metadata
Metadata
Assignees
Labels
No labels