mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 12:14:33 +01:00
28 lines
436 B
TypeScript
28 lines
436 B
TypeScript
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
|
|
}
|