members-database/entities/session.ts
2024-08-17 16:30:11 +02:00

14 lines
323 B
TypeScript

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;
}