DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

ref: aac71f7a39f36f8f79742a83f31b4d51fd857dfe deck-builder/api/src/schema.rs -rw-r--r-- 907 bytes
aac71f7aJonni Liljamo feat(api): migration create_gamedata 1 year, 8 months 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
// @generated automatically by Diesel CLI.

diesel::table! {
    actions (id) {
        id -> Uuid,
        created_at -> Timestamp,
        updated_at -> Timestamp,
        invoker -> Uuid,
        data -> Json,
        timestamp -> Timestamp,
    }
}

diesel::table! {
    gamedata (id) {
        id -> Uuid,
        created_at -> Timestamp,
        updated_at -> Timestamp,
        turn -> Int2,
        host_hand -> Nullable<Json>,
        host_deck -> Nullable<Json>,
        guest_hand -> Nullable<Json>,
        guest_deck -> Nullable<Json>,
    }
}

diesel::table! {
    users (id) {
        id -> Uuid,
        created_at -> Timestamp,
        updated_at -> Timestamp,
        username -> Varchar,
        email -> Varchar,
        password -> Varchar,
    }
}

diesel::joinable!(actions -> users (invoker));

diesel::allow_tables_to_appear_in_same_query!(
    actions,
    gamedata,
    users,
);