import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'

@Entity()
export class AccessTokenCache {

    @PrimaryGeneratedColumn()
    id: number

    @Column()
    json: string

    @Column()
    expireAt: Date

    constructor(json: string, expireAt: Date) {
        this.json = json
        this.expireAt = expireAt
    }
}
