import { Column , CreateDateColumn , Entity , PrimaryGeneratedColumn , UpdateDateColumn , } from 'typeorm' ; @ Entity ( 'playlists' ) export class Playlist { @ PrimaryGeneratedColumn ( { type : 'uuid' } ) public id : string ; @ CreateDateColumn ( { type : 'timestamp' } ) public createdAt : Date ; @ UpdateDateColumn ( { type : 'timestamp' } ) public updatedAt : Date ; @ Column ( { type : 'text' } ) public title : string ; public static of ( params ) { const playlist = new Playlist ( ) ; Object . assign ( playlist , params ) ; return playlist ; } } export class PlaylistRepositoryFake { public create ( ) { } public async save ( ) { } public async remove ( ) { } public async findOne ( ) { } }