15 lines
323 B
TypeScript
15 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;
|
||
|
}
|