1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
table! {
changelog (id) {
id -> Int8,
editgroup_id -> Int8,
timestamp -> Nullable<Timestamp>,
}
}
table! {
creator_edit (id) {
id -> Int8,
extra_json -> Nullable<Json>,
ident_id -> Uuid,
rev_id -> Nullable<Int8>,
redirect_id -> Nullable<Uuid>,
editgroup_id -> Int8,
}
}
table! {
creator_ident (id) {
id -> Uuid,
is_live -> Bool,
rev_id -> Nullable<Int8>,
redirect_id -> Nullable<Uuid>,
}
}
table! {
creator_rev (id) {
id -> Int8,
extra_json -> Nullable<Json>,
name -> Nullable<Text>,
orcid -> Nullable<Text>,
}
}
table! {
editgroup (id) {
id -> Int8,
extra_json -> Nullable<Json>,
editor_id -> Int8,
description -> Nullable<Text>,
}
}
table! {
editor (id) {
id -> Int8,
username -> Text,
is_admin -> Bool,
active_editgroup_id -> Nullable<Int8>,
}
}
joinable!(changelog -> editgroup (editgroup_id));
joinable!(creator_edit -> creator_rev (rev_id));
joinable!(creator_edit -> editgroup (editgroup_id));
joinable!(creator_ident -> creator_rev (rev_id));
allow_tables_to_appear_in_same_query!(
changelog,
creator_edit,
creator_ident,
creator_rev,
editgroup,
editor,
);
|