Front: Add 'Lesson' Model
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
type Competency = 'rhythm'
|
||||
| 'two-hands'
|
||||
| 'combos'
|
||||
| 'arpeggio'
|
||||
| 'distance'
|
||||
| 'left-hand'
|
||||
| 'right-hand'
|
||||
| 'lead-head-change'
|
||||
| 'chord-complexity'
|
||||
| 'chord-timing'
|
||||
| 'pedal'
|
||||
| 'precision'
|
||||
|
||||
|
||||
export default Competency;
|
||||
@@ -0,0 +1,26 @@
|
||||
import Competency from "./Competency";
|
||||
import Model from "./Model";
|
||||
|
||||
/**
|
||||
* A Lesson is an exercice that the user can try to practice a competency
|
||||
*/
|
||||
interface Lesson extends Model {
|
||||
/**
|
||||
* The title of the lesson
|
||||
*/
|
||||
title: string,
|
||||
/**
|
||||
* Short description of the lesson
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* The minimum level required for the user to access this lesson
|
||||
*/
|
||||
requiredLevel: number;
|
||||
/**
|
||||
* The main competency learnt in this lesson
|
||||
*/
|
||||
mainCompetency: Competency;
|
||||
}
|
||||
|
||||
export default Lesson;
|
||||
@@ -0,0 +1,6 @@
|
||||
interface Model {
|
||||
id: number;
|
||||
slug: string;
|
||||
}
|
||||
|
||||
export default Model;
|
||||
Reference in New Issue
Block a user