Listory/src/sources/spotify/spotify-connection.entity.ts

15 lines
245 B
TypeScript

import { Column } from "typeorm";
export class SpotifyConnection {
@Column()
id: string;
@Column()
accessToken: string;
@Column()
refreshToken: string;
@Column({ type: "timestamp", nullable: true })
lastRefreshTime?: Date;
}