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:
2025-03-11 15:24:45 -07:00
parent bcc39d5f38
commit a74ffc453e
68 changed files with 2795 additions and 1569 deletions

View File

@@ -0,0 +1,34 @@
"use strict";
import { type Migration } from "sequelize-cli";
export default {
up: async function (queryInterface, Sequelize) {
await queryInterface.createTable("links", {
id: {
allowNull: false,
autoIncrement: true,
primaryKey: true,
type: Sequelize.INTEGER,
},
userID: {
type: Sequelize.STRING,
},
from: {
type: Sequelize.STRING,
},
to: {
type: Sequelize.STRING,
},
createdAt: {
allowNull: false,
type: Sequelize.DATE,
},
updatedAt: {
allowNull: false,
type: Sequelize.DATE,
},
});
},
down: async function (queryInterface, _Sequelize) {
await queryInterface.dropTable("links");
},
} as Migration;