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

Commit

Permalink
feat: define PlayerModel
Browse files Browse the repository at this point in the history
  • Loading branch information
YanceyOfficial committed Dec 27, 2019
1 parent fc7c39f commit 83edf6b
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/player/models/player.model.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import { Field, ID, ObjectType } from 'type-graphql'

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

@Field()
public readonly title: string

@Field()
public readonly artist: string

@Field()
public readonly lrc: string

@Field()
public readonly coverUrl: string

@Field()
public readonly musicFileUrl: string

@Field()
public readonly createdAt: string

@Field()
public readonly updatedAt: string
}

0 comments on commit 83edf6b

Please sign in to comment.