We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9e3efa commit ffa289dCopy full SHA for ffa289d
src/migrations/20201123105303-create-refresh-token.js
@@ -0,0 +1,29 @@
1
+module.exports = {
2
+ up: async (queryInterface, Sequelize) => {
3
+ await queryInterface.createTable('RefreshTokens', {
4
+ id: {
5
+ allowNull: false,
6
+ primaryKey: true,
7
+ type: Sequelize.UUID,
8
+ defaultValue: Sequelize.UUIDV4,
9
+ },
10
+ UserId: {
11
12
13
+ token: {
14
+ type: Sequelize.TEXT('long'),
15
16
+ createdAt: {
17
18
+ type: Sequelize.DATE,
19
20
+ updatedAt: {
21
22
23
24
+ })
25
26
+ down: async (queryInterface, Sequelize) => {
27
+ await queryInterface.dropTable('RefreshTokens')
28
29
+}
0 commit comments