Files
sct-overseerr/server/entity/Session.ts
sct 5343f35e5b feat(api): initial implementation of the auth system (#30)
Adds the auth system but does not add all required features. They will be handled in other tickets
2020-08-28 09:34:15 +09:00

16 lines
331 B
TypeScript

import { ISession } from 'connect-typeorm';
import { Index, Column, PrimaryColumn, Entity } from 'typeorm';
@Entity()
export class Session implements ISession {
@Index()
@Column('bigint')
public expiredAt = Date.now();
@PrimaryColumn('varchar', { length: 255 })
public id = '';
@Column('text')
public json = '';
}