Skip to content

Instantly share code, notes, and snippets.

@imflamboyant
Created May 4, 2022 08:46
Show Gist options
  • Select an option

  • Save imflamboyant/0a3e87560d2d162001f22e740420f5f7 to your computer and use it in GitHub Desktop.

Select an option

Save imflamboyant/0a3e87560d2d162001f22e740420f5f7 to your computer and use it in GitHub Desktop.
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
@Entity()
export class Song {
@PrimaryGeneratedColumn()
id: number;
@Column()
name: string;
@Column()
artist: string;
@Column()
duration: number;
@Column()
genre: string;
@Column()
album: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment