menu item checked

This commit is contained in:
phyusin
2018-12-26 10:37:17 +06:30
parent 3523acc2eb
commit b557e17558
5 changed files with 39 additions and 37 deletions

View File

@@ -3,6 +3,8 @@ class CreateSaleItems < ActiveRecord::Migration[5.1]
create_table :sale_items, :id => false do |t|
t.string :sale_item_id, :limit => 16, :primary_key => true#custom primary key - to ensure consistence for cloud syncing
t.string :sale_id, foreign_key: true, :limit => 16, :index => true
t.string :menu_category_code, :null => false, :limit => 100
t.string :menu_category_name, :limit => 100, :index => true
t.string :product_code, :null => false
t.string :item_instance_code
t.string :product_name, :null => false