mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Connect Athena to Spotify
This commit is contained in:
27
app/Models/Song.ts
Normal file
27
app/Models/Song.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class Song extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public date: number
|
||||
|
||||
@column()
|
||||
public device_name: string
|
||||
|
||||
@column()
|
||||
public device_type: string
|
||||
|
||||
@column()
|
||||
public item_name: string
|
||||
|
||||
@column()
|
||||
public item_type: string
|
||||
|
||||
@column()
|
||||
public author: string
|
||||
|
||||
@column()
|
||||
public image: string
|
||||
|
||||
@column()
|
||||
public duration: number
|
||||
}
|
||||
Reference in New Issue
Block a user