Front: Add 'Lesson' Model

This commit is contained in:
Arthi-chaud
2022-08-13 09:56:29 +02:00
parent b531ff4c36
commit 42ae446f85
3 changed files with 47 additions and 0 deletions
+15
View File
@@ -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;
+26
View File
@@ -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;
+6
View File
@@ -0,0 +1,6 @@
interface Model {
id: number;
slug: string;
}
export default Model;