members-database/entities/session.ts

15 lines
323 B
TypeScript
Raw Normal View History

2024-08-17 14:38:08 +00:00
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;
}