mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
MASSIVE commit
- moved to typescript - axios rate limitmodule is busted, removed for now, do something else for that - sequelize-typescript - dotenv, not dotenv-flow - removed playlist details route types for API ton of minor fixes and improvements
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/** @type {import("sequelize-cli").Migration} */
|
||||
import { type Migration } from "sequelize-cli";
|
||||
export default {
|
||||
up: async function (queryInterface, Sequelize) {
|
||||
await queryInterface.createTable("playlists", {
|
||||
@@ -7,28 +7,28 @@ export default {
|
||||
allowNull: false,
|
||||
autoIncrement: true,
|
||||
primaryKey: true,
|
||||
type: Sequelize.INTEGER
|
||||
type: Sequelize.INTEGER,
|
||||
},
|
||||
playlistID: {
|
||||
type: Sequelize.STRING
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
playlistName: {
|
||||
type: Sequelize.STRING
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
userID: {
|
||||
type: Sequelize.STRING
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
createdAt: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE
|
||||
type: Sequelize.DATE,
|
||||
},
|
||||
updatedAt: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE
|
||||
}
|
||||
type: Sequelize.DATE,
|
||||
},
|
||||
});
|
||||
},
|
||||
down: async function (queryInterface, Sequelize) {
|
||||
down: async function (queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable("playlists");
|
||||
}
|
||||
};
|
||||
},
|
||||
} as Migration;
|
||||
@@ -1,5 +1,5 @@
|
||||
"use strict";
|
||||
/** @type {import("sequelize-cli").Migration} */
|
||||
import { type Migration } from "sequelize-cli";
|
||||
export default {
|
||||
up: async function (queryInterface, Sequelize) {
|
||||
await queryInterface.createTable("links", {
|
||||
@@ -7,28 +7,28 @@ export default {
|
||||
allowNull: false,
|
||||
autoIncrement: true,
|
||||
primaryKey: true,
|
||||
type: Sequelize.INTEGER
|
||||
type: Sequelize.INTEGER,
|
||||
},
|
||||
userID: {
|
||||
type: Sequelize.STRING
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
from: {
|
||||
type: Sequelize.STRING
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
to: {
|
||||
type: Sequelize.STRING
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
createdAt: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE
|
||||
type: Sequelize.DATE,
|
||||
},
|
||||
updatedAt: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE
|
||||
}
|
||||
type: Sequelize.DATE,
|
||||
},
|
||||
});
|
||||
},
|
||||
down: async function (queryInterface, Sequelize) {
|
||||
down: async function (queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable("links");
|
||||
}
|
||||
};
|
||||
},
|
||||
} as Migration;
|
||||
Reference in New Issue
Block a user