mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Add Stats models
This commit is contained in:
13
app/Models/BuildsRun.ts
Normal file
13
app/Models/BuildsRun.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DateTime } from 'luxon'
|
||||
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class BuildsRun extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public id: number
|
||||
|
||||
@column()
|
||||
public builds: number
|
||||
|
||||
@column.date({ autoCreate: true })
|
||||
public date: DateTime
|
||||
}
|
||||
13
app/Models/CommandsRun.ts
Normal file
13
app/Models/CommandsRun.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DateTime } from 'luxon'
|
||||
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class CommandsRun extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public id: number
|
||||
|
||||
@column()
|
||||
public commands: number
|
||||
|
||||
@column.date({ autoCreate: true })
|
||||
public date: DateTime
|
||||
}
|
||||
13
app/Models/DevelopmentHour.ts
Normal file
13
app/Models/DevelopmentHour.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { DateTime } from 'luxon'
|
||||
import { BaseModel, column } from '@ioc:Adonis/Lucid/Orm'
|
||||
|
||||
export default class DevelopmentHour extends BaseModel {
|
||||
@column({ isPrimary: true })
|
||||
public id: number
|
||||
|
||||
@column()
|
||||
public seconds: number
|
||||
|
||||
@column.date({ autoCreate: true })
|
||||
public date: DateTime
|
||||
}
|
||||
Reference in New Issue
Block a user