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/public-path-stars.ts
Views: 687
1
import { Table } from "./types";
2
3
export interface PublicPathStar {
4
public_path_id: string;
5
account_id: string;
6
time: Date;
7
}
8
9
Table({
10
name: "public_path_stars",
11
fields: {
12
public_path_id: {
13
type: "string",
14
pg_type: "CHAR(40)",
15
},
16
account_id: {
17
type: "uuid",
18
},
19
time: {
20
type: "timestamp",
21
desc: "when this star was created",
22
},
23
},
24
rules: {
25
primary_key: ["public_path_id", "account_id"],
26
pg_indexes: ["public_path_id", "account_id"],
27
},
28
});
29
30