petruki / rails-coffee-app

Simple CRUD Rails app
0 stars 0 forks source link

About

This is a simple CRUD application using Ruby on Rails.
The business model is based on a Cafe Shop that has a goal to manage products, pricing and daily menus.

Running

Requirements:

rails db:migrate
rails db:seed
rails s

Model

category
  name: string

pricing_unit
  course_id: integer
  volume: float
  unit: string
  price: float

pricing_portion
  course_id: integer
  volume_per_unit: float
  unit: string
  quantity: integer
  price: float

course
  name: string
  category_id: integer

daily_menu
  created: date

daily_menu_item
  daily_menu_id: integer
  course_id: integer
  price: float