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/lti.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: "lti",
10
fields: {
11
iss: {
12
type: "string",
13
desc: "uniquely determines the LTI provider",
14
},
15
name: {
16
type: "string",
17
desc: "displayed name (internally)",
18
},
19
config: {
20
type: "map",
21
desc: "extra information related to LTI",
22
},
23
},
24
rules: {
25
desc: "LTI Providers",
26
anonymous: false,
27
primary_key: "iss",
28
pg_indexes: [],
29
user_query: {
30
get: {
31
admin: true,
32
fields: {
33
iss: null,
34
name: null,
35
config: null,
36
},
37
},
38
set: {
39
admin: true,
40
fields: {
41
iss: null,
42
name: null,
43
config: null,
44
},
45
},
46
},
47
},
48
});
49
50