17 lines
261 B
TypeScript
17 lines
261 B
TypeScript
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
|
|
|
@Entity("plans")
|
|
export class Plan {
|
|
@PrimaryGeneratedColumn()
|
|
id?: number;
|
|
|
|
@Column("text")
|
|
title?: string;
|
|
|
|
@Column("text")
|
|
days: string;
|
|
|
|
@Column("text")
|
|
exercises: string;
|
|
}
|