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
// @generated automatically by Diesel CLI.
diesel::table! {
/// Representation of the `game` table.
///
/// (Automatically generated by Diesel.)
game (id) {
/// The `id` column of the `game` table.
///
/// Its SQL type is `Text`.
///
/// (Automatically generated by Diesel.)
id -> Text,
/// The `password` column of the `game` table.
///
/// Its SQL type is `Nullable<Text>`.
///
/// (Automatically generated by Diesel.)
password -> Nullable<Text>,
/// The `description` column of the `game` table.
///
/// Its SQL type is `Nullable<Text>`.
///
/// (Automatically generated by Diesel.)
description -> Nullable<Text>,
/// The `round_duration` column of the `game` table.
///
/// Its SQL type is `Nullable<Text>`.
///
/// (Automatically generated by Diesel.)
round_duration -> Nullable<Text>,
/// The `server_version` column of the `game` table.
///
/// Its SQL type is `Text`.
///
/// (Automatically generated by Diesel.)
server_version -> Text,
/// The `created_by` column of the `game` table.
///
/// Its SQL type is `Integer`.
///
/// (Automatically generated by Diesel.)
created_by -> Integer,
/// The `created_at` column of the `game` table.
///
/// Its SQL type is `Text`.
///
/// (Automatically generated by Diesel.)
created_at -> Text,
/// The `updated_at` column of the `game` table.
///
/// Its SQL type is `Text`.
///
/// (Automatically generated by Diesel.)
updated_at -> Text,
/// The `world_blob` column of the `game` table.
///
/// Its SQL type is `Binary`.
///
/// (Automatically generated by Diesel.)
world_blob -> Binary,
}
}
diesel::table! {
/// Representation of the `user` table.
///
/// (Automatically generated by Diesel.)
user (id) {
/// The `id` column of the `user` table.
///
/// Its SQL type is `Integer`.
///
/// (Automatically generated by Diesel.)
id -> Integer,
/// The `player_id` column of the `user` table.
///
/// Its SQL type is `Text`.
///
/// (Automatically generated by Diesel.)
player_id -> Text,
/// The `password` column of the `user` table.
///
/// Its SQL type is `Text`.
///
/// (Automatically generated by Diesel.)
password -> Text,
/// The `created_at` column of the `user` table.
///
/// Its SQL type is `Text`.
///
/// (Automatically generated by Diesel.)
created_at -> Text,
/// The `updated_at` column of the `user` table.
///
/// Its SQL type is `Text`.
///
/// (Automatically generated by Diesel.)
updated_at -> Text,
}
}
diesel::joinable!(game -> user (created_by));
diesel::allow_tables_to_appear_in_same_query!(game, user,);