chore: complete learning module

This commit is contained in:
Matin
2025-02-11 14:23:05 +03:30
parent 8d8f471585
commit bbdc5996b5
13 changed files with 2 additions and 2 deletions
@@ -0,0 +1,17 @@
import { Column, Entity, ManyToOne } from "typeorm";
import { Learning } from "./learning.entity";
import { BaseEntity } from "../../../common/entities/base.entity";
import { User } from "../../users/entities/user.entity";
@Entity()
export class LearningProgress extends BaseEntity {
@ManyToOne(() => User, (user) => user.learningProgress)
user: User;
@ManyToOne(() => Learning, (learning) => learning.learningProgress)
learning: Learning;
@Column({ type: "timestamp", default: () => "CURRENT_TIMESTAMP" })
watchedAt: Date;
}