mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-05-10 12:11:35 +02:00
parent
efcdeb78c8
commit
fd782219ef
31 changed files with 314 additions and 158 deletions
15
src/models/cache.ts
Normal file
15
src/models/cache.ts
Normal file
|
@ -0,0 +1,15 @@
|
|||
import {Table, Column, PrimaryKey, Model} from 'sequelize-typescript';
|
||||
import sequelize from 'sequelize';
|
||||
|
||||
@Table
|
||||
export default class Cache extends Model<Cache> {
|
||||
@PrimaryKey
|
||||
@Column
|
||||
key!: string;
|
||||
|
||||
@Column(sequelize.TEXT)
|
||||
value!: string;
|
||||
|
||||
@Column
|
||||
expiresAt!: Date;
|
||||
}
|
|
@ -1,7 +1,9 @@
|
|||
import Settings from './settings';
|
||||
import Shortcut from './shortcut';
|
||||
import Cache from './cache.js';
|
||||
import Settings from './settings.js';
|
||||
import Shortcut from './shortcut.js';
|
||||
|
||||
export {
|
||||
Cache,
|
||||
Settings,
|
||||
Shortcut
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue