mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2025-12-06 10:44:06 +00:00
- 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
25 lines
426 B
TypeScript
25 lines
426 B
TypeScript
"use strict";
|
|
import {
|
|
AllowNull,
|
|
Column,
|
|
DataType,
|
|
Model,
|
|
Table,
|
|
} from "sequelize-typescript";
|
|
@Table
|
|
class playlists extends Model<Partial<playlists>> {
|
|
@AllowNull(false)
|
|
@Column(DataType.STRING)
|
|
declare playlistID: string;
|
|
|
|
@AllowNull(false)
|
|
@Column(DataType.STRING)
|
|
declare playlistName: string;
|
|
|
|
@AllowNull(false)
|
|
@Column(DataType.STRING)
|
|
declare userID: string;
|
|
}
|
|
|
|
export default playlists;
|