import { Column, Entity, JoinColumn, ManyToOne, PrimaryColumn } from "typeorm"; import { member } from "./member"; @Entity() export class session { @PrimaryColumn({ type: "varchar", length: 36 }) accessToken: string; @Column({ type: "datetime" }) expiration: Date; @ManyToOne(() => member) member: member; }