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.
35 lines
775 B
35 lines
775 B
5 years ago
|
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({ type: "integer" })
|
||
|
is_practice: number;
|
||
|
|
||
|
@TypeORM.Index()
|
||
|
@TypeORM.Column({ type: "integer" })
|
||
|
is_finished: number;
|
||
|
|
||
|
@TypeORM.Index()
|
||
|
@TypeORM.Column({ type: "integer" })
|
||
|
practice_num: number;
|
||
|
}
|