fix alias upsert
This commit is contained in:
parent
418bfdfbe2
commit
0fcc7e3e02
1 changed files with 4 additions and 4 deletions
|
|
@ -18,12 +18,12 @@ class Alias extends Model {
|
|||
Alias.init(
|
||||
{
|
||||
id: { type: DataTypes.INTEGER, primaryKey: true, autoIncrement: true },
|
||||
alias: { type: DataTypes.STRING, allowNull: true },
|
||||
address: { type: DataTypes.STRING, allowNull: true },
|
||||
alias: { type: DataTypes.STRING, allowNull: false, unique: true },
|
||||
address: { type: DataTypes.STRING, allowNull: false },
|
||||
comment: { type: DataTypes.STRING, allowNull: true },
|
||||
tracking_key: { type: DataTypes.STRING, allowNull: true },
|
||||
block: { type: DataTypes.STRING, allowNull: true },
|
||||
transaction: { type: DataTypes.STRING, allowNull: true },
|
||||
block: { type: DataTypes.STRING, allowNull: false },
|
||||
transaction: { type: DataTypes.STRING, allowNull: false },
|
||||
enabled: { type: DataTypes.BOOLEAN, allowNull: true }
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue