mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-25 01:00:28 +01:00
working
This commit is contained in:
13
app/Models/DockerBuild.ts
Normal file
13
app/Models/DockerBuild.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DateTime } from 'luxon'
|
||||
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class DockerBuild extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public id: number
|
||||
|
||||
@column()
|
||||
public build: bigint
|
||||
|
||||
@column.dateTime({ autoCreate: true })
|
||||
public createdAt: DateTime
|
||||
}
|
||||
13
app/Models/DockerCommand.ts
Normal file
13
app/Models/DockerCommand.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DateTime } from 'luxon'
|
||||
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class DockerCommand extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public id: number
|
||||
|
||||
@column()
|
||||
public command: string
|
||||
|
||||
@column.dateTime({ autoCreate: true })
|
||||
public createdAt: DateTime
|
||||
}
|
||||
16
app/Models/Location.ts
Normal file
16
app/Models/Location.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { DateTime } from 'luxon'
|
||||
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class Location extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public id: number
|
||||
|
||||
@column.date({ autoCreate: true })
|
||||
public since: DateTime
|
||||
|
||||
@column()
|
||||
public location: string
|
||||
|
||||
@column()
|
||||
public left: string
|
||||
}
|
||||
34
app/Models/Song.ts
Normal file
34
app/Models/Song.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import { DateTime } from 'luxon'
|
||||
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class Song extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public id: number
|
||||
|
||||
@column()
|
||||
public author: string
|
||||
|
||||
@column()
|
||||
public album: string
|
||||
|
||||
@column()
|
||||
public title: string
|
||||
|
||||
@column()
|
||||
public type: string
|
||||
|
||||
@column()
|
||||
public device: string
|
||||
|
||||
@column()
|
||||
public duration: number
|
||||
|
||||
@column.date()
|
||||
public releaseDate: DateTime
|
||||
|
||||
@column.dateTime({ autoCreate: true })
|
||||
public createdAt: DateTime
|
||||
|
||||
@column.dateTime({ autoCreate: true, autoUpdate: true })
|
||||
public updatedAt: DateTime
|
||||
}
|
||||
Reference in New Issue
Block a user