You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
872 B
38 lines
872 B
import * as TypeORM from "typeorm"; |
|
import Model from "./common"; |
|
|
|
@TypeORM.Entity() |
|
export default class UserToPractice extends Model { |
|
static cache = true; |
|
|
|
@TypeORM.PrimaryGeneratedColumn() |
|
id: number; |
|
|
|
@TypeORM.Index() |
|
@TypeORM.Column({ nullable: true, type: "integer" }) |
|
u_id: number; |
|
|
|
@TypeORM.Index() |
|
@TypeORM.Column({ nullable: true, type: "integer" }) |
|
c_id: number; |
|
|
|
@TypeORM.Index() |
|
@TypeORM.Column({ nullable: true, type: "integer" }) |
|
p_id: number; |
|
|
|
@TypeORM.Index() |
|
@TypeORM.Column({ nullable: true, type: "integer" }) |
|
s_id: number; |
|
|
|
@TypeORM.Index() |
|
@TypeORM.Column({ type: "integer" }) |
|
is_practice: number; |
|
|
|
@TypeORM.Index() |
|
@TypeORM.Column({ type: "integer" }) |
|
is_finished: number; |
|
|
|
@TypeORM.Index() |
|
@TypeORM.Column({ type: "integer" }) |
|
practice_num: number; |
|
}
|
|
|