2021-07-23 19:52:28 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class CreateLabelPrinters < ActiveRecord::Migration[6.1]
|
|
|
|
def change
|
|
|
|
create_table :label_printers do |t|
|
|
|
|
t.string :name, null: false
|
2021-08-02 17:11:11 +08:00
|
|
|
t.string :description
|
2021-07-23 19:52:28 +08:00
|
|
|
t.integer :type_of, null: false
|
|
|
|
t.integer :language_type, null: false
|
|
|
|
t.string :host
|
|
|
|
t.integer :port
|
|
|
|
t.string :fluics_api_key
|
|
|
|
t.string :fluics_lid
|
2021-08-02 17:11:11 +08:00
|
|
|
t.string :current_print_job_ids, array: true, default: []
|
|
|
|
t.integer :status, default: 0
|
2021-07-23 19:52:28 +08:00
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|