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/account-creation-actions.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: "account_creation_actions",
10
fields: {
11
id: {
12
type: "uuid",
13
desc: "id",
14
},
15
action: {
16
type: "map",
17
desc:
18
"Describes the action to carry out when an account is created with the given email_address.",
19
},
20
email_address: {
21
type: "string",
22
desc: "Email address of user.",
23
},
24
expire: {
25
type: "timestamp",
26
desc: "When this action should be expired.",
27
},
28
},
29
rules: {
30
desc:
31
"Actions to carry out when accounts are created, triggered by the email address of the user.",
32
primary_key: "id",
33
pg_indexes: ["email_address"],
34
},
35
});
36
37