mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 14:14:06 +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:
34
migrations/20240727162141-create-playlists.ts
Normal file
34
migrations/20240727162141-create-playlists.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
import { type Migration } from "sequelize-cli";
|
||||
export default {
|
||||
up: async function (queryInterface, Sequelize) {
|
||||
await queryInterface.createTable("playlists", {
|
||||
id: {
|
||||
allowNull: false,
|
||||
autoIncrement: true,
|
||||
primaryKey: true,
|
||||
type: Sequelize.INTEGER,
|
||||
},
|
||||
playlistID: {
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
playlistName: {
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
userID: {
|
||||
type: Sequelize.STRING,
|
||||
},
|
||||
createdAt: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE,
|
||||
},
|
||||
updatedAt: {
|
||||
allowNull: false,
|
||||
type: Sequelize.DATE,
|
||||
},
|
||||
});
|
||||
},
|
||||
down: async function (queryInterface, _Sequelize) {
|
||||
await queryInterface.dropTable("playlists");
|
||||
},
|
||||
} as Migration;
|
||||
Reference in New Issue
Block a user