order queue processing
This commit is contained in:
@@ -7,10 +7,11 @@ class CreateMenuItems < ActiveRecord::Migration[5.0]
|
||||
t.string :type, :null => false, :default => "SimpleMenuItem"
|
||||
t.references :menu_category, foreign_key: true
|
||||
t.references :menu_item, foreign_key: true
|
||||
t.integer :min_qty, :null => false, :default => 1
|
||||
t.integer :min_selectable_item, :null => false, :default => 1
|
||||
t.integer :max_selectable_item, :null => false, :default => 1
|
||||
t.json :options #save value
|
||||
t.json :attributes #value IDS
|
||||
t.json :item_attributes #value IDS
|
||||
t.string :created_by
|
||||
|
||||
t.timestamps
|
||||
|
||||
@@ -10,7 +10,6 @@ class CreateOrderItems < ActiveRecord::Migration[5.0]
|
||||
t.string :remark
|
||||
t.string :options
|
||||
t.json :set_menu_items #this parameter is require to route the items correctly
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
class CreateOrderQueueProcessLogs < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :order_queue_process_logs do |t|
|
||||
t.references :order, foreign_key: true
|
||||
t.string :job_status, :default => "new", :null => "false"
|
||||
t.string :print_status, :default => "new"
|
||||
t.json :header #{table name, order_type, order_date}
|
||||
t.json :items #{name, comment, qty}
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
15
db/migrate/20170414071634_create_membership_settings.rb
Normal file
15
db/migrate/20170414071634_create_membership_settings.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateMembershipSettings < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :membership_settings do |t|
|
||||
t.string :membership_type, :null => false, :default => "internal"
|
||||
t.boolean :is_active, :null => false, :default => true
|
||||
t.string :gateway_communication_type, :null => false, :default => "api"
|
||||
t.string :gateway_url
|
||||
t.string :auth_token
|
||||
t.string :merchant_account_id
|
||||
t.string :created_by
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
13
db/migrate/20170414090001_create_assigned_order_items.rb
Normal file
13
db/migrate/20170414090001_create_assigned_order_items.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateAssignedOrderItems < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :assigned_order_items do |t|
|
||||
t.string :item_code, :null => false, :index => true
|
||||
t.references :order_queue_station, foreign_key: true
|
||||
t.references :order, foreign_key: true
|
||||
t.boolean :print_status
|
||||
t.boolean :delivery_status
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user