aboutsummaryrefslogtreecommitdiff
path: root/src/models/file-cache.ts
blob: dbac6d37bd8752029df67e142a3904a343d0f23e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {Table, Column, PrimaryKey, Model} from 'sequelize-typescript';

@Table
export default class FileCache extends Model {
  @PrimaryKey
  @Column
  hash!: string;

  @Column
  bytes!: number;

  @Column
  accessedAt!: Date;
}