mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 10:19:20 +03:00
added order column
This commit is contained in:
parent
46263fa341
commit
4ac06f2c24
@ -17,6 +17,9 @@ export default class Lesson extends BaseModel {
|
|||||||
@column()
|
@column()
|
||||||
public title: string;
|
public title: string;
|
||||||
|
|
||||||
|
@column()
|
||||||
|
public display_order: number;
|
||||||
|
|
||||||
@column()
|
@column()
|
||||||
public description: string;
|
public description: string;
|
||||||
|
|
||||||
|
|||||||
@ -8,6 +8,7 @@ export default class Lessons extends BaseSchema {
|
|||||||
table.string('id', 21).primary();
|
table.string('id', 21).primary();
|
||||||
table.string('course_id', 21).unsigned().references('courses.id').onDelete('CASCADE');
|
table.string('course_id', 21).unsigned().references('courses.id').onDelete('CASCADE');
|
||||||
table.string('title').notNullable();
|
table.string('title').notNullable();
|
||||||
|
table.integer('display_order').notNullable();
|
||||||
table.integer('color_id').unsigned().references('colors.id');
|
table.integer('color_id').unsigned().references('colors.id');
|
||||||
table.string('description');
|
table.string('description');
|
||||||
table.time('duration').notNullable();
|
table.time('duration').notNullable();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user