mirror of
https://github.com/ArthurDanjou/artdanj-api.git
synced 2026-01-14 20:19:26 +01:00
Remove progress
This commit is contained in:
@@ -19,9 +19,6 @@ export default class Project extends BaseModel {
|
||||
@column()
|
||||
public descriptionId: number
|
||||
|
||||
@column()
|
||||
public progress: number
|
||||
|
||||
@column()
|
||||
public url: string
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@ export default class ProjectStoreValidator {
|
||||
public schema = schema.create({
|
||||
name: schema.string(),
|
||||
description: schema.string(),
|
||||
progress: schema.number(),
|
||||
url: schema.string(),
|
||||
cover: schema.string(),
|
||||
tags: schema.array.optional().members(schema.string())
|
||||
|
||||
@@ -5,7 +5,6 @@ export default class ProjectUpdateValidator {
|
||||
public schema = schema.create({
|
||||
name: schema.string.optional(),
|
||||
description: schema.string.optional(),
|
||||
progress: schema.number.optional(),
|
||||
url: schema.string.optional(),
|
||||
cover: schema.string.optional(),
|
||||
tags: schema.array.optional().members(schema.string())
|
||||
|
||||
@@ -13,7 +13,6 @@ export default class Projects extends BaseSchema {
|
||||
.references('translations.id')
|
||||
.onDelete('CASCADE')
|
||||
table.string('url').notNullable()
|
||||
table.integer('progress').notNullable()
|
||||
table
|
||||
.integer('file_id')
|
||||
.unsigned()
|
||||
|
||||
Reference in New Issue
Block a user