~matthiasbeyer/butido

ref: 1a6511b138c86dd1304555d9b1ddccf716aa7ce1 butido/src/schema.rs -rw-r--r-- 2.3 KiB
1a6511b1Matthias Beyer Merge branch 'source-download-timeout' into next 1 year, 24 days ago
                                                                                
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
table! {
    artifacts (id) {
        id -> Int4,
        path -> Varchar,
        job_id -> Int4,
    }
}

table! {
    endpoints (id) {
        id -> Int4,
        name -> Varchar,
    }
}

table! {
    envvars (id) {
        id -> Int4,
        name -> Varchar,
        value -> Varchar,
    }
}

table! {
    githashes (id) {
        id -> Int4,
        hash -> Varchar,
    }
}

table! {
    images (id) {
        id -> Int4,
        name -> Varchar,
    }
}

table! {
    job_envs (id) {
        id -> Int4,
        job_id -> Int4,
        env_id -> Int4,
    }
}

table! {
    jobs (id) {
        id -> Int4,
        submit_id -> Int4,
        endpoint_id -> Int4,
        package_id -> Int4,
        image_id -> Int4,
        container_hash -> Varchar,
        script_text -> Text,
        log_text -> Text,
        uuid -> Uuid,
    }
}

table! {
    packages (id) {
        id -> Int4,
        name -> Varchar,
        version -> Varchar,
    }
}

table! {
    release_stores (id) {
        id -> Int4,
        store_name -> Varchar,
    }
}

table! {
    releases (id) {
        id -> Int4,
        artifact_id -> Int4,
        release_date -> Timestamptz,
        release_store_id -> Int4,
    }
}

table! {
    submit_envs (id) {
        id -> Int4,
        submit_id -> Int4,
        env_id -> Int4,
    }
}

table! {
    submits (id) {
        id -> Int4,
        uuid -> Uuid,
        submit_time -> Timestamptz,
        requested_image_id -> Int4,
        requested_package_id -> Int4,
        repo_hash_id -> Int4,
    }
}

joinable!(artifacts -> jobs (job_id));
joinable!(job_envs -> envvars (env_id));
joinable!(job_envs -> jobs (job_id));
joinable!(jobs -> endpoints (endpoint_id));
joinable!(jobs -> images (image_id));
joinable!(jobs -> packages (package_id));
joinable!(jobs -> submits (submit_id));
joinable!(releases -> artifacts (artifact_id));
joinable!(releases -> release_stores (release_store_id));
joinable!(submit_envs -> envvars (env_id));
joinable!(submit_envs -> submits (submit_id));
joinable!(submits -> githashes (repo_hash_id));
joinable!(submits -> images (requested_image_id));
joinable!(submits -> packages (requested_package_id));

allow_tables_to_appear_in_same_query!(
    artifacts,
    endpoints,
    envvars,
    githashes,
    images,
    job_envs,
    jobs,
    packages,
    release_stores,
    releases,
    submit_envs,
    submits,
);