Path: blob/master/src/packages/util/db-schema/instances.ts
1447 views
/*1* This file is part of CoCalc: Copyright © 2020 Sagemath, Inc.2* License: MS-RSL – see LICENSE.md for details3*/45/*6I think these two tables are is deprecated.7*/89import { Table } from "./types";1011Table({12name: "instances",13rules: {14primary_key: "name",15},16fields: {17name: {18type: "string",19},20gce: {21type: "map",22},23gce_sha1: {24type: "string",25},26requested_preemptible: {27type: "boolean",28},29requested_status: {30type: "string",31desc: "One of 'RUNNING', 'TERMINATED'",32},33action: {34type: "map",35desc:36"{action:'start', started:timestamp, finished:timestamp, params:?, error:?, rule:?}",37date: ["started", "finished"],38},39},40});4142Table({43name: "instance_actions_log",44rules: {45primary_key: "id",46},47fields: {48id: {49type: "uuid",50},51name: {52type: "string",53desc: "hostname of vm",54pg_type: "VARCHAR(63)",55},56action: {57type: "map",58desc: "same as finished action object for instances above",59date: ["started", "finished"],60},61},62});636465