Skip to content

Commit

Permalink
DB: userCollectoin에 활성화일시 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
urimJ committed Dec 9, 2023
1 parent 0646b51 commit 36371a9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions db.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ Collection.init(
},
albumJacket: DataTypes.STRING,
photoCardQuant: DataTypes.INTEGER,
activeDateTime: DataTypes.DATE,
// DatactiveeTime: DataTypes.DATE,
activationCode: DataTypes.STRING
}
,
Expand All @@ -129,7 +129,7 @@ Collection.init(
timestamps: false
}
);
// await sequelize.sync();
await sequelize.sync();

//도안
class Polaroid extends Model {
Expand Down Expand Up @@ -207,7 +207,7 @@ Post.init(
timestamps: false
}
);
// await sequelize.sync();
await sequelize.sync();

// 릴레이션
// 회원 : 도안 = 일대다
Expand Down Expand Up @@ -332,7 +332,8 @@ UserCollection.init(
autoIncrement: true,
primaryKey: true,
allowNull: true
}
},
activeDateTime: DataTypes.DATE
},
{
sequelize,
Expand All @@ -349,7 +350,7 @@ Collection.belongsToMany(User, {
through: 'UserCollection',
foreignKey: 'albumName',
});
// await sequelize.sync();
await sequelize.sync();

// 회원: 포토카드 = 다대다
class UserPhotoCard extends Model {
Expand Down

0 comments on commit 36371a9

Please sign in to comment.