Skip to content

This repo will try to talk with a PostgreSQL database to check and show requirements and materials to craft an item.

Notifications You must be signed in to change notification settings

ytturi/crafting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crafting

This repo will try to talk with a PostgreSQL database to check and show requirements and materials to craft an item. Based on a simple interface and backend.

The interface may allow the user to:

  • Show the current amount of a Product.
  • Show the requirements to craft a Product using a Recipe.
  • Show a % of materials obtained of the required to craft a Product using a Recipe.
  • Show the % of materials obtained of the recursively required to craft a Product using a Recipe.

Database Schema

  • Product may be crafted using a Recipe.
  • All Recipes may need 1-4 Product types and an specific amount.

PRODUCT

Field Type
id int
name text
craft :fk:recipe_id
stock int

RECIPE

Field Type
id int
result :fk:product_id
req.1 :fk:product_id
num.1 int
req.2 :fk:product_id
num.2 int
req.3 :fk:product_id
num.3 int
req.4 :fk:product_id
num.4 int

About

This repo will try to talk with a PostgreSQL database to check and show requirements and materials to craft an item.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages