CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/util/db-schema/hub-servers.ts
Views: 687
1
/*
2
* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.
3
* License: MS-RSL – see LICENSE.md for details
4
*/
5
6
import { Table } from "./types";
7
8
Table({
9
name: "hub_servers",
10
rules: {
11
primary_key: "host",
12
durability: "soft", // loss of some log data not serious, since ephemeral and expires quickly anyways
13
},
14
fields: {
15
host: {
16
type: "string",
17
pg_type: "VARCHAR(63)",
18
},
19
port: {
20
type: "integer",
21
},
22
clients: {
23
type: "integer",
24
},
25
expire: {
26
type: "timestamp",
27
},
28
},
29
});
30
31