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