@sync-in/server
Version:
The secure, open-source platform for file storage, sharing, collaboration, and sync
26 lines (25 loc) • 849 B
JavaScript
/*
* Copyright (C) 2012-2025 Johan Legrand <johan.legrand@sync-in.com>
* This file is part of Sync-in | The open source file sync and share solution
* See the LICENSE file for licensing details
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "cache", {
enumerable: true,
get: function() {
return cache;
}
});
const _mysqlcore = require("drizzle-orm/mysql-core");
const cache = (0, _mysqlcore.mysqlTable)('cache', {
key: (0, _mysqlcore.varchar)('key', {
length: 768
}).primaryKey(),
value: (0, _mysqlcore.json)('value').$type(),
expiration: (0, _mysqlcore.int)('expiration').default(-1).notNull()
}, (table)=>[
(0, _mysqlcore.index)('expiration_idx').on(table.expiration)
]);
//# sourceMappingURL=mysql-cache.schema.js.map