UNPKG

@sync-in/server

Version:

The secure, open-source platform for file storage, sharing, collaboration, and sync

27 lines (26 loc) 899 B
/* * 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 _columns = require("../../database/columns"); const cache = (0, _mysqlcore.mysqlTable)('cache', { key: (0, _mysqlcore.varchar)('key', { length: 768 }).primaryKey(), value: (0, _columns.jsonColumn)()('value'), expiration: (0, _mysqlcore.int)('expiration').default(-1).notNull() }, (table)=>[ (0, _mysqlcore.index)('expiration_idx').on(table.expiration) ]); //# sourceMappingURL=mysql-cache.schema.js.map