Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
feat: add YanceyMusicModel
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Dec 26, 2019
1 parent 256c22a commit 8d80ec3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/yancey-music/models/yancey-music.model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { Field, ID, ObjectType } from 'type-graphql'

@ObjectType()
export class YanceyMusicModel {
@Field(() => ID)
public readonly _id: string

@Field()
public readonly title: string

@Field()
public readonly soundCloudUrl: string

@Field()
public readonly posterUrl: string

@Field()
public readonly releaseDate: string

@Field()
public readonly createdAt: string

@Field()
public readonly updatedAt: string
}

0 comments on commit 8d80ec3

Please sign in to comment.