###############################################################################1#2# CoCalc: Collaborative Calculation in the Cloud3#4# Copyright (C) 2016, Sagemath Inc.5#6# This program is free software: you can redistribute it and/or modify7# it under the terms of the GNU General Public License as published by8# the Free Software Foundation, either version 3 of the License, or9# (at your option) any later version.10#11# This program is distributed in the hope that it will be useful,12# but WITHOUT ANY WARRANTY; without even the implied warranty of13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14# GNU General Public License for more details.15#16# You should have received a copy of the GNU General Public License17# along with this program. If not, see <http://www.gnu.org/licenses/>.18#19###############################################################################2021# these times in minutes are used for active/recently edited projects and accounts in postgres-server-queries.coffee's get_stats22exports.RECENT_TIMES =23active : 524last_hour : 6025last_day : 60*2426last_week : 60*24*727last_month : 60*24*302829# this translates the semantic meanings to the keys used in the DB, also prevents typos!30exports.RECENT_TIMES_KEY =31active : "5min"32last_hour : "1h"33last_day : "1d"34last_week : "7d"35last_month : "30d"363738db_schema = require('./db-schema')39schema = exports.SCHEMA = db_schema.SCHEMA40exports.client_db = db_schema.client_db41exports.site_settings_conf = db_schema.site_settings_conf4243# Load the syncstring extensions to the schema44require('./syncstring_schema')454647# Will import some other modules and make them available here, since the code48# used to be in this file, and this is assumed in code elsewhere. Will change later.4950exports.COMPUTE_STATES = require('./compute-states').COMPUTE_STATES5152upgrade_spec = require('./upgrade-spec')53exports.PROJECT_UPGRADES = upgrade_spec.upgrades5455exports.DEFAULT_QUOTAS = upgrade_spec.DEFAULT_QUOTAS565758