Files
cursebreaker-parser-rust/cursebreaker-parser/src/schema.rs
2026-01-12 06:06:44 +00:00

197 lines
4.0 KiB
Rust

// @generated automatically by Diesel CLI.
diesel::table! {
crafting_recipe_items (recipe_id, item_id) {
recipe_id -> Integer,
item_id -> Integer,
amount -> Integer,
}
}
diesel::table! {
crafting_recipes (id) {
id -> Nullable<Integer>,
product_item_id -> Integer,
skill -> Text,
level -> Integer,
workbench_id -> Integer,
xp -> Integer,
unlocked_by_default -> Integer,
checks -> Nullable<Text>,
}
}
diesel::table! {
fast_travel_locations (id) {
id -> Nullable<Integer>,
name -> Text,
map_name -> Text,
data -> Text,
}
}
diesel::table! {
harvestables (id) {
id -> Nullable<Integer>,
name -> Text,
data -> Text,
}
}
diesel::table! {
item_stats (item_id, stat_type) {
item_id -> Integer,
stat_type -> Text,
value -> Float,
}
}
diesel::table! {
items (id) {
id -> Nullable<Integer>,
name -> Text,
data -> Text,
item_type -> Text,
level -> Integer,
price -> Integer,
max_stack -> Integer,
storage_size -> Integer,
skill -> Text,
tool -> Text,
description -> Text,
two_handed -> Integer,
undroppable -> Integer,
undroppable_on_death -> Integer,
unequip_destroy -> Integer,
generate_icon -> Integer,
hide_milestone -> Integer,
cannot_craft_exceptional -> Integer,
storage_all_items -> Integer,
ability_id -> Integer,
special_ability -> Integer,
learn_ability_id -> Integer,
book_id -> Integer,
swap_item -> Integer,
icon_large -> Nullable<Binary>,
icon_medium -> Nullable<Binary>,
icon_small -> Nullable<Binary>,
}
}
diesel::table! {
loot_tables (table_id) {
table_id -> Nullable<Text>,
npc_id -> Nullable<Text>,
data -> Text,
}
}
diesel::table! {
maps (scene_id) {
scene_id -> Nullable<Text>,
name -> Text,
data -> Text,
}
}
diesel::table! {
minimap_tiles (id) {
id -> Nullable<Integer>,
x -> Integer,
y -> Integer,
zoom -> Integer,
width -> Integer,
height -> Integer,
original_file_size -> Nullable<Integer>,
image -> Binary,
image_size -> Integer,
processed_at -> Timestamp,
source_path -> Text,
}
}
diesel::table! {
npcs (id) {
id -> Nullable<Integer>,
name -> Text,
data -> Text,
}
}
diesel::table! {
player_houses (id) {
id -> Nullable<Integer>,
name -> Text,
map_id -> Integer,
data -> Text,
}
}
diesel::table! {
quests (id) {
id -> Nullable<Integer>,
name -> Text,
data -> Text,
}
}
diesel::table! {
resource_icons (item_id) {
item_id -> Integer,
name -> Text,
icon_64 -> Binary,
}
}
diesel::table! {
shops (id) {
id -> Nullable<Integer>,
name -> Text,
unique_items -> Integer,
item_count -> Integer,
data -> Text,
}
}
diesel::table! {
traits (id) {
id -> Nullable<Integer>,
name -> Text,
description -> Nullable<Text>,
trainer_id -> Nullable<Integer>,
data -> Text,
}
}
diesel::table! {
world_resources (item_id, pos_x, pos_y) {
item_id -> Integer,
pos_x -> Float,
pos_y -> Float,
}
}
diesel::joinable!(crafting_recipe_items -> crafting_recipes (recipe_id));
diesel::joinable!(crafting_recipe_items -> items (item_id));
diesel::joinable!(crafting_recipes -> items (product_item_id));
diesel::joinable!(item_stats -> items (item_id));
diesel::allow_tables_to_appear_in_same_query!(
crafting_recipe_items,
crafting_recipes,
fast_travel_locations,
harvestables,
item_stats,
items,
loot_tables,
maps,
minimap_tiles,
npcs,
player_houses,
quests,
resource_icons,
shops,
traits,
world_resources,
);