diff --git a/app/models/m_odr_file.rb b/app/models/m_odr_file.rb index fccdbe8..8621601 100644 --- a/app/models/m_odr_file.rb +++ b/app/models/m_odr_file.rb @@ -4,7 +4,7 @@ class MOdrFile < ApplicationRecord mount_uploader :file, OdrUploader - validates :file, :presence => true + validates :file, :presence => true, :if => :file_needed? before_create { generate_token() } @@ -14,6 +14,19 @@ class MOdrFile < ApplicationRecord self[:token] = SecureRandom.urlsafe_base64 end while MOdrFile.exists?(:token => self[:token]) end + + def file_needed? + + if self.m_odr_file_type&.need_file + + true + + else + false + + end + + end diff --git a/app/models/m_odr_rep.rb b/app/models/m_odr_rep.rb index c20b453..4151890 100644 --- a/app/models/m_odr_rep.rb +++ b/app/models/m_odr_rep.rb @@ -35,6 +35,7 @@ class MOdrRep < ApplicationRecord validates :m_odr_place_id, :presence => true validates :rgpd, :presence => true, :if => :rgpd_needed? + validates :custom_case, :presence => true, :if => :custom_case_needed? validates :reduc_code, :presence => true, :if => :reduc_code_needed? #length: { in: 6..6 }, @@ -46,7 +47,16 @@ class MOdrRep < ApplicationRecord belongs_to :m_odr_product_cat - + + def custom_case_needed? + if self.m_odr.custom_case_needed + true + else + false + end + + end + def reduc_needed? if self.m_odr.reduc_needed @@ -118,7 +128,7 @@ file_admin_ok remise particular_civilite particular_name particular_firstname pa end def ca_file_admin_ok - if self.m_odr_files.where(:admin_ok => true).count > 0 + if self.m_odr_files.where(:admin_ok => true).count == self.m_odr_files.count true else false @@ -317,6 +327,7 @@ file_admin_ok remise particular_civilite particular_name particular_firstname pa :cc_place_name => {:name => "Revendeur", :reorder => true}, :reduc_code => {:name => "Code réduction", :reorder => true}, + :custom_case => {:name => "Case personnalisée", :reorder => true, :as => :boolean}, :ba_number => {:name => "N° bon de réduction", :reorder => true}, :ba_used => {:name => "Bon utilisé ?", :reorder => true, :as => :boolean}, diff --git a/app/views/admin/m_odr_reps/_left_column.html.haml b/app/views/admin/m_odr_reps/_left_column.html.haml index 468ffa0..7f28d26 100644 --- a/app/views/admin/m_odr_reps/_left_column.html.haml +++ b/app/views/admin/m_odr_reps/_left_column.html.haml @@ -32,6 +32,17 @@ %td =@m_odr_rep.reduc_code + -if @m_odr_rep.m_odr.custom_case + %tr + %td + Case personnalisée cochée + ="(#{@m_odr_rep.m_odr.custom_case_label})" + + %td + -if @m_odr_rep.custom_case + Oui + -else + Non @@ -48,60 +59,65 @@ Fichier -@m_odr_rep.m_odr_files.order("id DESC").each do |file| - %table.table.table-striped.table-hover.table-bordered - %tr - %td Etat - %td - -if file.admin_ok == true - =state_helper "Validé" - -elsif file.admin_ok == false - =state_helper "Refusé" - -else - =link_to admin_m_odr_file_path(:id => file.id, :m_odr_file => {:admin_ok => true}), :remote => true, :method => :put do - =ic :check - Valider - - - =link_to i(:pencil), edit_admin_m_odr_file_path(file), :remote => true - - - %tr - - %td{:style => "width:200px;"} Fichier - %td - =File.basename file.file.path - - %tr - %td Lien - %td - =link_to ic(:download)+" Télécharger ce fichier", download_admin_m_odr_file_path(file, :disposition => "attachment") - - - %tr - %td Validation - %td - -if file.admin_ok == false - =file.reject_reason - =simple_format file.reject_reason_description if file.reject_reason_description? - - - -if file.admin_ok == false + -if file.file? and file.file.path.present? + %table.table.table-striped.table-hover.table-bordered %tr - %td Envois de mail - + %td Type %td - Envoyer un mail de notification : - - -if mail_type_cat = @m_odr_rep.m_odr.mail_type_cats.where(:slug => "refus-facture").first - -slugs = mail_type_cat.mail_types.map{|u| [u.slug, u.slug]} + =file.m_odr_file_type.name if file.m_odr_file_type + %tr + %td Etat + %td + -if file.admin_ok == true + =state_helper "Validé" + -elsif file.admin_ok == false + =state_helper "Refusé" -else - -slugs = [["facture-illisible", "Facture illisible"]] - - -slugs.each do |key| - %br - =link_to ic(:envelope)+" #{key[1]}", send_mail_admin_m_odr_file_path(file, :slug => key[0]), :remote => false, :class => "btn btn-primary", :style => "margin-bottom:4px;" - - + =link_to admin_m_odr_file_path(:id => file.id, :m_odr_file => {:admin_ok => true}), :remote => true, :method => :put do + =ic :check + Valider + + + =link_to i(:pencil), edit_admin_m_odr_file_path(file), :remote => true + + + %tr + + %td{:style => "width:200px;"} Fichier + %td + =File.basename file.file.path + + %tr + %td Lien + %td + =link_to ic(:download)+" Télécharger ce fichier", download_admin_m_odr_file_path(file, :disposition => "attachment") + + + %tr + %td Validation + %td + -if file.admin_ok == false + =file.reject_reason + =simple_format file.reject_reason_description if file.reject_reason_description? + + + -if file.admin_ok == false + %tr + %td Envois de mail + + %td + Envoyer un mail de notification : + + -if mail_type_cat = @m_odr_rep.m_odr.mail_type_cats.where(:slug => "refus-facture").first + -slugs = mail_type_cat.mail_types.map{|u| [u.slug, u.slug]} + -else + -slugs = [["facture-illisible", "Facture illisible"]] + + -slugs.each do |key| + %br + =link_to ic(:envelope)+" #{key[1]}", send_mail_admin_m_odr_file_path(file, :slug => key[0]), :remote => false, :class => "btn btn-primary", :style => "margin-bottom:4px;" + + RIB : -@m_odr_rep.m_odr_rep_ribs.order("id DESC").each do |m_odr_rep_rib| diff --git a/app/views/admin/m_odr_reps/show.html.haml b/app/views/admin/m_odr_reps/show.html.haml index 6930113..49f298a 100644 --- a/app/views/admin/m_odr_reps/show.html.haml +++ b/app/views/admin/m_odr_reps/show.html.haml @@ -44,22 +44,23 @@ .columns.span_8{:style => "padding-left:20px;"} - -file = @m_odr_rep.m_odr_files.order("id DESC").first - -if file - =link_to ic(:download)+" Télécharger le document", download_admin_m_odr_file_path(file, :disposition => "attachment") - - - -if File.extname(file.file.path) == ".pdf" || File.extname(file.file.path) == ".PDF" - - %iframe{:src => file.file.url, :style => "width:100%;height:800px;border:1px solid gray;"} - - -else -    - =link_to ic(:"rotate-left"), rotate_admin_m_odr_file_path(:id => file.id, :direction => "right"), :remote => true -    - =link_to ic(:"rotate-right"), rotate_admin_m_odr_file_path(file), :remote => true - #image_previ{:style => "width:100%;height:800px;border:1px solid gray;overflow:auto;"} - =render :partial => "admin/m_odr_files/image", :locals => {:file => file} + -file = @m_odr_rep.m_odr_files.order("id DESC").each do |file| + -if file.file and file.file.path.present? + + =link_to ic(:download)+" Télécharger le document", download_admin_m_odr_file_path(file, :disposition => "attachment") + + + -if file.file and file.file.path.present? and File.extname(file.file.path) == ".pdf" || File.extname(file.file.path) == ".PDF" + + %iframe{:src => file.file.url, :style => "width:100%;height:800px;border:1px solid gray;"} + + -else +    + =link_to ic(:"rotate-left"), rotate_admin_m_odr_file_path(:id => file.id, :direction => "right"), :remote => true +    + =link_to ic(:"rotate-right"), rotate_admin_m_odr_file_path(file), :remote => true + #image_previ{:style => "width:100%;height:800px;border:1px solid gray;overflow:auto;"} + =render :partial => "admin/m_odr_files/image", :locals => {:file => file} diff --git a/app/views/admin/m_odrs/_form.html.haml b/app/views/admin/m_odrs/_form.html.haml index 76066c1..6cd9bd7 100644 --- a/app/views/admin/m_odrs/_form.html.haml +++ b/app/views/admin/m_odrs/_form.html.haml @@ -78,6 +78,9 @@ = f.input :reduc_needed, :label => "Obligatoire ?" = f.input :confirm_case_needed, :label => "Case de confirmation obligatoire ?" + + = f.input :custom_case, :label => "Case personnalisée ?" + = f.input :custom_case_needed, :label => "Case personnalisée obligatoire ?" = f.input :product_process, :label => "Produit ?" @@ -93,7 +96,8 @@ = f.input :placeholder, :label => "Afficher les libellés ?" = f.input :name_label, :label => "Label nom :" = f.input :firstname_label, :label => "Label prénom :" - = f.input :confirm_case_label, :label => "Label case de confirmation :" + = f.input :confirm_case_label, :label => "Label case de confirmation :" + = f.input :custom_case_label, :label => "Label case personnalisée :" = f.input :product_cat_label, :label => "Label catégorie produit :" = f.input :product_label, :label => "Label produit :" = f.input :qte_label, :label => "Label quantité :" diff --git a/app/views/public/m_odrs/show.html.haml b/app/views/public/m_odrs/show.html.haml index 29d2a88..a7d0df2 100644 --- a/app/views/public/m_odrs/show.html.haml +++ b/app/views/public/m_odrs/show.html.haml @@ -193,6 +193,11 @@ -if @m_odr_rep.m_odr.confirm_case_needed =f.input :rgpd, :label => (@m_odr_rep.m_odr.confirm_case_label? ? @m_odr_rep.m_odr.confirm_case_label : "J'accepte les conditions générales") + -if @m_odr_rep.m_odr.custom_case + =f.input :custom_case, :label => (@m_odr_rep.m_odr.custom_case_label? ? @m_odr_rep.m_odr.custom_case_label : "") + + + -if @m_odr_rep.m_odr.buy_infos? .buy_infos{:style => "text-align:center"}=simple_format @m_odr_rep.m_odr.buy_infos %br diff --git a/db/migrate/20250612084840_add_custom_case_to_m_odrs.rb b/db/migrate/20250612084840_add_custom_case_to_m_odrs.rb new file mode 100644 index 0000000..c7d2a44 --- /dev/null +++ b/db/migrate/20250612084840_add_custom_case_to_m_odrs.rb @@ -0,0 +1,7 @@ +class AddCustomCaseToMOdrs < ActiveRecord::Migration[6.0] + def change + add_column :m_odrs, :custom_case_needed, :boolean, :default => false + add_column :m_odrs, :custom_case, :boolean, :default => false + add_column :m_odrs, :custom_case_label, :string + end +end diff --git a/db/migrate/20250612085009_add_custom_case_to_m_odr_reps.rb b/db/migrate/20250612085009_add_custom_case_to_m_odr_reps.rb new file mode 100644 index 0000000..6fc2ed0 --- /dev/null +++ b/db/migrate/20250612085009_add_custom_case_to_m_odr_reps.rb @@ -0,0 +1,5 @@ +class AddCustomCaseToMOdrReps < ActiveRecord::Migration[6.0] + def change + add_column :m_odr_reps, :custom_case, :boolean, :default => false + end +end diff --git a/db/schema.rb b/db/schema.rb index aa86ecd..a28819c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,9 +10,9 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2021_09_13_081136) do +ActiveRecord::Schema.define(version: 2025_06_12_085009) do - create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "accounting_zones", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.text "description" t.boolean "enabled", default: true @@ -20,7 +20,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "admin_admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "admin_id" t.bigint "admin_role_id" t.datetime "created_at", precision: 6, null: false @@ -29,7 +29,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["admin_role_id"], name: "index_admin_admin_roles_on_admin_role_id" end - create_table "admin_p_customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "admin_p_customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "admin_id" t.bigint "p_customer_id" t.datetime "created_at", precision: 6, null: false @@ -38,7 +38,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_customer_id"], name: "index_admin_p_customers_on_p_customer_id" end - create_table "admin_permission_admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_permission_admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "admin_permission_id" t.bigint "admin_role_id" t.datetime "created_at", precision: 6, null: false @@ -47,7 +47,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["admin_role_id"], name: "index_admin_permission_admin_roles_on_admin_role_id" end - create_table "admin_permissions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_permissions", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false @@ -57,7 +57,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.integer "position" end - create_table "admin_preferences", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_preferences", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "admin_id" t.string "key" t.text "value" @@ -66,13 +66,13 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["admin_id"], name: "index_admin_preferences_on_admin_id" end - create_table "admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admin_roles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "admins", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "admins", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "firstname" t.string "avatar" @@ -94,14 +94,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "albums", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "albums", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.boolean "super_admin", default: false t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "block_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "block_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "style" t.integer "nbr_columns" t.integer "row1" @@ -128,7 +128,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["image_file_id"], name: "index_block_contents_on_image_file_id" end - create_table "blocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "blocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "lang_site_id" t.string "block_name" t.string "blockable_type" @@ -140,7 +140,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["lang_site_id"], name: "index_blocks_on_lang_site_id" end - create_table "break_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "break_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.boolean "line", default: false t.integer "height" t.string "style" @@ -148,7 +148,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.boolean "enabled", default: false @@ -163,7 +163,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["parent_id"], name: "index_categories_on_parent_id" end - create_table "category_categoryables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "category_categoryables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "category_id" t.string "categoryable_type" t.integer "categoryable_id" @@ -172,7 +172,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["category_id"], name: "index_category_categoryables_on_category_id" end - create_table "category_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "category_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.text "description" @@ -185,7 +185,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["lang_site_id"], name: "index_category_langs_on_lang_site_id" end - create_table "cel_tables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "cel_tables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "position" t.integer "style" t.bigint "table_row_id" @@ -195,7 +195,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["table_row_id"], name: "index_cel_tables_on_table_row_id" end - create_table "comments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "comments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "pseudo", default: "" t.string "email", default: "" t.string "website", default: "" @@ -215,7 +215,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["parent_id"], name: "index_comments_on_parent_id" end - create_table "contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "civilite" t.string "firstname" t.string "name" @@ -238,7 +238,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "data_file_categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "data_file_categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.integer "parent_id" @@ -246,7 +246,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "data_file_passwords", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "data_file_passwords", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "data_file_id" t.string "token" t.text "description" @@ -256,7 +256,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["data_file_id"], name: "index_data_file_passwords_on_data_file_id" end - create_table "data_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "data_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "file" t.string "name" t.string "slug" @@ -281,7 +281,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["square_image_file_id"], name: "index_data_files_on_square_image_file_id" end - create_table "download_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "download_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "title" t.string "style" t.text "description" @@ -293,13 +293,13 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["data_file_id"], name: "index_download_contents_on_data_file_id" end - create_table "dynamic_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "dynamic_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "edit_watchers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "edit_watchers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "element_type" t.integer "element_id" t.string "key" @@ -309,13 +309,13 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["admin_id"], name: "index_edit_watchers_on_admin_id" end - create_table "export_hists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "export_hists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "piece" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "external_links", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "external_links", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "title" t.text "description" t.string "url" @@ -323,14 +323,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "file_folders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "file_folders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.boolean "super_admin", default: false t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "file_tunel_downloads", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "file_tunel_downloads", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "file_tunel_id" t.bigint "file_tunel_send_id" t.string "name" @@ -347,7 +347,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["file_tunel_send_id"], name: "index_file_tunel_downloads_on_file_tunel_send_id" end - create_table "file_tunel_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "file_tunel_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "file" t.string "token" t.boolean "enabled", default: true @@ -360,7 +360,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["file_tunel_id"], name: "index_file_tunel_files_on_file_tunel_id" end - create_table "file_tunel_sends", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "file_tunel_sends", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "file_tunel_id" t.string "token" t.string "email" @@ -374,7 +374,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["file_tunel_id"], name: "index_file_tunel_sends_on_file_tunel_id" end - create_table "file_tunels", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "file_tunels", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "name" t.text "description" t.string "slug" @@ -396,7 +396,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_customer_id"], name: "index_file_tunels_on_p_customer_id" end - create_table "gallery_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "gallery_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.text "description" t.integer "style" @@ -406,7 +406,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "gallery_images", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "gallery_images", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "title" t.text "description" t.string "tags" @@ -419,7 +419,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["image_file_id"], name: "index_gallery_images_on_image_file_id" end - create_table "hashtaggings", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "hashtaggings", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "hashtag_id" t.string "hashtaggable_type" t.bigint "hashtaggable_id" @@ -430,7 +430,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["hashtaggable_id"], name: "index_hashtaggings_on_hashtaggable_id" end - create_table "hashtags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "hashtags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.boolean "enabled", default: false t.integer "lang_site_id" @@ -439,7 +439,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "html_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "html_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.text "content" t.string "style" t.string "content_type" @@ -447,7 +447,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "i_task_projects", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "i_task_projects", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.bigint "admin_id" @@ -457,7 +457,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["admin_id"], name: "index_i_task_projects_on_admin_id" end - create_table "i_tasks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "i_tasks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "i_task_project_id" t.string "name" t.text "descritpion" @@ -478,7 +478,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["i_task_project_id"], name: "index_i_tasks_on_i_task_project_id" end - create_table "image_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "image_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "image_file_id" t.integer "width" t.integer "height" @@ -501,7 +501,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["image_file_id"], name: "index_image_contents_on_image_file_id" end - create_table "image_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "image_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "file" t.string "name" t.string "slug" @@ -517,7 +517,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "import_csv_champs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "import_csv_champs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "champ" t.string "header" t.string "value" @@ -527,7 +527,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["import_csv_id"], name: "index_import_csv_champs_on_import_csv_id" end - create_table "import_csv_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "import_csv_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "import_csv_id" t.string "element_type" t.integer "element_id" @@ -536,7 +536,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["import_csv_id"], name: "index_import_csv_elements_on_import_csv_id" end - create_table "import_csv_headers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "import_csv_headers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "import_csv_id" t.string "name" t.string "champ" @@ -546,7 +546,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["import_csv_id"], name: "index_import_csv_headers_on_import_csv_id" end - create_table "import_csvs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "import_csvs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "m_odr_id" t.string "file" t.text "notes" @@ -562,7 +562,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_import_csvs_on_m_odr_id" end - create_table "lang_articles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "lang_articles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.datetime "published_at" t.string "title" t.string "slug" @@ -590,7 +590,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["slider_image_file_id"], name: "index_lang_articles_on_slider_image_file_id" end - create_table "lang_pages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "lang_pages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "lang_site_id" t.bigint "page_id" t.text "title" @@ -606,7 +606,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["without_text_image_file_id"], name: "index_lang_pages_on_without_text_image_file_id" end - create_table "lang_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "lang_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.boolean "enabled", default: false @@ -614,7 +614,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "link_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "link_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "type" t.string "name" t.string "title" @@ -628,7 +628,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["cible_id"], name: "index_link_contents_on_cible_id" end - create_table "m_odr_brands", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_brands", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "name" t.string "ref" t.integer "image_file_id" @@ -641,7 +641,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_m_odr_brands_on_m_odr_id" end - create_table "m_odr_coupons", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odr_coupons", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.bigint "m_odr_id" t.datetime "created_at", precision: 6, null: false @@ -649,7 +649,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_m_odr_coupons_on_m_odr_id" end - create_table "m_odr_file_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_file_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "name" t.boolean "need_file" t.text "description" @@ -659,7 +659,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_m_odr_file_types_on_m_odr_id" end - create_table "m_odr_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "file" t.bigint "m_odr_rep_id" t.datetime "action_date" @@ -680,7 +680,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_rep_id"], name: "index_m_odr_files_on_m_odr_rep_id" end - create_table "m_odr_places", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_places", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "name" t.string "enseigne" t.string "city" @@ -696,7 +696,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_m_odr_places_on_m_odr_id" end - create_table "m_odr_product_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_product_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "m_odr_id" t.string "name" t.datetime "created_at", precision: 6, null: false @@ -704,7 +704,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_m_odr_product_cats_on_m_odr_id" end - create_table "m_odr_product_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_product_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "m_odr_product_id" t.integer "qte" t.decimal "amount", precision: 14, scale: 2 @@ -713,7 +713,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_product_id"], name: "index_m_odr_product_remises_on_m_odr_product_id" end - create_table "m_odr_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "name" t.bigint "m_odr_id" t.string "ref" @@ -725,7 +725,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_m_odr_products_on_m_odr_id" end - create_table "m_odr_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.text "notes" t.bigint "m_odr_id" t.datetime "download_at" @@ -748,7 +748,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_m_odr_remises_on_m_odr_id" end - create_table "m_odr_rep_ribs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_rep_ribs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "iban" t.string "bic" t.string "name" @@ -769,7 +769,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["admin_id"], name: "index_m_odr_rep_ribs_on_admin_id" end - create_table "m_odr_reps", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_reps", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "state" t.integer "admin_id" t.datetime "admin_valid" @@ -829,6 +829,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.decimal "reduc", precision: 14, scale: 2 t.string "ba_number" t.boolean "ba_used", default: false + t.boolean "custom_case", default: false t.index ["m_odr_id"], name: "index_m_odr_reps_on_m_odr_id" t.index ["m_odr_place_id"], name: "index_m_odr_reps_on_m_odr_place_id" t.index ["m_odr_product_cat_id"], name: "index_m_odr_reps_on_m_odr_product_cat_id" @@ -836,7 +837,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_tracker_id"], name: "index_m_odr_reps_on_m_odr_tracker_id" end - create_table "m_odr_trackers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_trackers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "name" t.string "token" t.bigint "m_odr_id" @@ -845,7 +846,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_m_odr_trackers_on_m_odr_id" end - create_table "m_odr_virements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "m_odr_virements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "m_odr_id" t.bigint "m_odr_rep_id" t.bigint "m_odr_rep_rib_id" @@ -883,7 +884,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_rep_rib_id"], name: "index_m_odr_virements_on_m_odr_rep_rib_id" end - create_table "m_odrs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "m_odrs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.date "start_at" @@ -939,7 +940,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.string "product_cat_label" t.string "product_label" t.string "qte_label" - t.string "place_label" + t.text "place_label" t.boolean "reduc_code_process", default: false t.boolean "reduc_code_needed", default: false t.integer "reduc_code_lenght" @@ -968,10 +969,13 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.integer "ba_remise_place_y" t.integer "ba_remise_place_x" t.integer "ins_limit" + t.boolean "custom_case_needed", default: false + t.boolean "custom_case", default: false + t.string "custom_case_label" t.index ["p_customer_id"], name: "index_m_odrs_on_p_customer_id" end - create_table "mail_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "lang_site_id" t.bigint "mail_type_id" t.string "subject" @@ -987,7 +991,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["mail_type_id"], name: "index_mail_contents_on_mail_type_id" end - create_table "mail_hists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "mail_hists", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.bigint "lang_site_id" t.string "from_email" t.string "to_email" @@ -1013,7 +1017,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["mail_type_id"], name: "index_mail_hists_on_mail_type_id" end - create_table "mail_profiles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_profiles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "civilite" t.string "firstname" t.string "name" @@ -1032,14 +1036,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "mail_templates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_templates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "title" t.text "template_html" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "mail_type_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC", force: :cascade do |t| + create_table "mail_type_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "name" t.bigint "m_odr_id" t.string "slug" @@ -1048,7 +1052,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["m_odr_id"], name: "index_mail_type_cats_on_m_odr_id" end - create_table "mail_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "mail_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "slug" t.string "default_title" t.text "default_message" @@ -1064,7 +1068,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["mail_type_reference_id"], name: "index_mail_types_on_mail_type_reference_id" end - create_table "map_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "map_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "address" t.string "name" t.integer "view" @@ -1074,7 +1078,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "market_discounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "market_discounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.decimal "min", precision: 10 t.decimal "max", precision: 10 t.decimal "percent", precision: 10 @@ -1083,14 +1087,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.integer "p_customer_cat_id", default: 1 end - create_table "menu_aliases", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_aliases", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "menu_item_id" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false t.index ["menu_item_id"], name: "index_menu_aliases_on_menu_item_id" end - create_table "menu_item_articles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_articles", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "menu_item_id" t.bigint "article_id" t.datetime "created_at", precision: 6, null: false @@ -1099,7 +1103,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["menu_item_id"], name: "index_menu_item_articles_on_menu_item_id" end - create_table "menu_item_categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_categories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "menu_item_id" t.bigint "category_id" t.datetime "created_at", precision: 6, null: false @@ -1108,7 +1112,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["menu_item_id"], name: "index_menu_item_categories_on_menu_item_id" end - create_table "menu_item_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "lang_site_id" t.string "name" t.string "slug" @@ -1124,7 +1128,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["menu_item_id"], name: "index_menu_item_langs_on_menu_item_id" end - create_table "menu_item_link_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_link_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "menu_item_id" t.bigint "image_file_id" t.string "title" @@ -1144,7 +1148,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["menu_item_id"], name: "index_menu_item_link_contents_on_menu_item_id" end - create_table "menu_item_slug_histories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_slug_histories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "permalink" t.string "locale" t.integer "menu_item_id" @@ -1154,7 +1158,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["menu_item_lang_id"], name: "index_menu_item_slug_histories_on_menu_item_lang_id" end - create_table "menu_item_tags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_item_tags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "menu_item_id" t.bigint "tag_id" t.datetime "created_at", precision: 6, null: false @@ -1163,7 +1167,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["tag_id"], name: "index_menu_item_tags_on_tag_id" end - create_table "menu_items", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_items", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.string "permalink" @@ -1205,13 +1209,13 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["parent_id"], name: "index_menu_items_on_parent_id" end - create_table "menu_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menu_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "url" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "menus", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "menus", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "max_levels" t.string "slug" @@ -1219,7 +1223,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "open_range_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "open_range_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "open_range_id" t.string "element_type" t.integer "element_id" @@ -1227,14 +1231,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "open_ranges", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "open_ranges", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.integer "position" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_bank_accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_bank_accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_bank_id" t.string "iban" t.string "bic" @@ -1253,21 +1257,21 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_fournisseur_id"], name: "index_p_bank_accounts_on_p_fournisseur_id" end - create_table "p_banks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_banks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "bic" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_brut_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_brut_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.decimal "price", precision: 14, scale: 2 t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_commercial_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_commercial_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "description" t.string "type" @@ -1275,7 +1279,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_commercials", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_commercials", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.boolean "enabled", default: true t.string "code" t.string "organisation" @@ -1304,7 +1308,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_compta_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_compta_elements", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "element_type" t.bigint "element_id" t.bigint "p_customer_id" @@ -1320,7 +1324,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_customer_id"], name: "index_p_compta_elements_on_p_customer_id" end - create_table "p_compta_exports", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_compta_exports", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.date "start_at" t.date "end_at" t.text "comment" @@ -1329,7 +1333,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_contact_contact_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_contact_contact_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_contact_id" t.bigint "p_contact_type_id" t.datetime "created_at", precision: 6, null: false @@ -1338,13 +1342,13 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_contact_type_id"], name: "index_p_contact_contact_types_on_p_contact_type_id" end - create_table "p_contact_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_contact_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_contacts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.text "comment" t.string "tel" @@ -1358,7 +1362,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["contactable_id"], name: "index_p_contacts_on_contactable_id" end - create_table "p_customer_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customer_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "code" t.integer "payment_days" @@ -1367,7 +1371,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_customer_ribs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customer_ribs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "nbr_use" t.string "iban" t.string "bic" @@ -1391,7 +1395,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_customer_id"], name: "index_p_customer_ribs_on_p_customer_id" end - create_table "p_customer_sheets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customer_sheets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "state" t.string "comments" t.bigint "p_customer_id" @@ -1432,7 +1436,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_customer_id"], name: "index_p_customer_sheets_on_p_customer_id" end - create_table "p_customer_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customer_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_customer_id" t.string "name" t.bigint "particular_id" @@ -1443,7 +1447,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["particular_id"], name: "index_p_customer_sites_on_particular_id" end - create_table "p_customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_customers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.decimal "encourt_max", precision: 14, scale: 2 t.bigint "p_customer_cat_id" t.bigint "particular_id" @@ -1498,7 +1502,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["particular_id"], name: "index_p_customers_on_particular_id" end - create_table "p_document_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_document_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "prefix" t.string "label" t.string "affix" @@ -1516,7 +1520,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["data_file_id"], name: "index_p_document_types_on_data_file_id" end - create_table "p_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "element_type" t.bigint "element_id" t.bigint "p_document_type_id" @@ -1581,7 +1585,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["particular_send_id"], name: "index_p_documents_on_particular_send_id" end - create_table "p_fournisseur_orders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_fournisseur_orders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "ref" t.decimal "amount", precision: 14, scale: 2 t.datetime "enter_date" @@ -1599,7 +1603,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_fournisseur_id"], name: "index_p_fournisseur_orders_on_p_fournisseur_id" end - create_table "p_fournisseurs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_fournisseurs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "code" t.string "address1" @@ -1614,7 +1618,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_payment_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_payment_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_payment_id" t.bigint "p_document_id" t.decimal "amount", precision: 14, scale: 2 @@ -1626,7 +1630,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_payment_id"], name: "index_p_payment_documents_on_p_payment_id" end - create_table "p_payment_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_payment_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "code" t.boolean "enabled", default: false @@ -1638,7 +1642,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_bank_account_id"], name: "index_p_payment_types_on_p_bank_account_id" end - create_table "p_payments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_payments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.datetime "paid_at" t.datetime "theo_date" t.bigint "p_payment_type_id" @@ -1682,14 +1686,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_ship_tour_truck_sheet_line_id"], name: "index_p_payments_on_p_ship_tour_truck_sheet_line_id" end - create_table "p_price_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_price_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.boolean "enabled", default: true t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_brut_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_brut_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_brut_product_id" t.bigint "p_product_id" t.decimal "qte", precision: 14, scale: 2 @@ -1699,7 +1703,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_product_id"], name: "index_p_product_brut_products_on_p_product_id" end - create_table "p_product_brut_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_brut_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_brut_product_id" t.bigint "p_fournisseur_order_id" t.bigint "p_tank_id" @@ -1723,7 +1727,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_tank_id"], name: "index_p_product_brut_stocks_on_p_tank_id" end - create_table "p_product_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "code" t.string "purchase_account" @@ -1733,7 +1737,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_feature_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_feature_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.text "description" t.boolean "enabled" @@ -1741,7 +1745,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_features", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_features", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "p_product_feature_cat_id" t.string "ac_name" t.string "cc_name" @@ -1751,7 +1755,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_p_customer_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_p_customer_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_product_id" t.bigint "p_customer_cat_id" t.datetime "created_at", precision: 6, null: false @@ -1760,7 +1764,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_product_id"], name: "index_p_product_p_customer_cats_on_p_product_id" end - create_table "p_product_p_normes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_p_normes", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_product_id" t.bigint "p_product_spec_id" t.datetime "created_at", precision: 6, null: false @@ -1769,7 +1773,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_product_spec_id"], name: "index_p_product_p_normes_on_p_product_spec_id" end - create_table "p_product_p_product_sub_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_p_product_sub_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_product_id" t.bigint "p_product_sub_cat_id" t.datetime "created_at", precision: 6, null: false @@ -1778,7 +1782,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_product_sub_cat_id"], name: "index_p_product_p_product_sub_cats_on_p_product_sub_cat_id" end - create_table "p_product_prices", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_prices", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.boolean "enabled", default: true t.bigint "p_product_ref_id" t.bigint "p_price_cat_id" @@ -1793,7 +1797,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_product_ref_id"], name: "index_p_product_prices_on_p_product_ref_id" end - create_table "p_product_ref_price_histories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_ref_price_histories", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_product_ref_id" t.decimal "price", precision: 14, scale: 2 t.bigint "admin_id" @@ -1803,7 +1807,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_product_ref_id"], name: "index_p_product_ref_price_histories_on_p_product_ref_id" end - create_table "p_product_refs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_refs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "ref" t.integer "p_product_id" t.decimal "ct_price_ht", precision: 14, scale: 2 @@ -1823,7 +1827,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_product_specs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_specs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_product_id" t.string "code" t.text "description" @@ -1833,7 +1837,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_product_id"], name: "index_p_product_specs_on_p_product_id" end - create_table "p_product_sub_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_product_sub_cats", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "parent_id" t.string "code" t.string "name" @@ -1843,7 +1847,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "p_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_products", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.decimal "ct_price_ht", precision: 14, scale: 2 t.decimal "ct_purchase_price_ht", precision: 14, scale: 2 @@ -1873,7 +1877,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["s_brand_id"], name: "index_p_products_on_s_brand_id" end - create_table "p_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_remises", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.date "date" t.boolean "validated", default: false t.bigint "p_payment_type_id" @@ -1884,7 +1888,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_payment_type_id"], name: "index_p_remises_on_p_payment_type_id" end - create_table "p_sheet_line_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_sheet_line_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_sheet_line_id" t.bigint "p_brut_product_id" t.bigint "p_product_brut_stock_id" @@ -1903,7 +1907,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_sheet_line_id"], name: "index_p_sheet_line_stocks_on_p_sheet_line_id" end - create_table "p_sheet_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_sheet_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_customer_sheet_id" t.bigint "p_product_id" t.bigint "p_tank_id" @@ -1947,7 +1951,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_tank_id"], name: "index_p_sheet_lines_on_p_tank_id" end - create_table "p_ship_bill_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_ship_bill_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_ship_bill_id" t.string "name" t.text "description" @@ -1961,7 +1965,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_ship_bill_id"], name: "index_p_ship_bill_lines_on_p_ship_bill_id" end - create_table "p_ship_bills", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_ship_bills", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.date "count_date" t.date "bill_at" t.string "ref" @@ -1973,7 +1977,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_fournisseur_id"], name: "index_p_ship_bills_on_p_fournisseur_id" end - create_table "p_tank_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_tank_stocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.datetime "ok_at" t.boolean "enabled", default: false t.bigint "p_brut_product_id" @@ -1989,7 +1993,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_tank_id"], name: "index_p_tank_stocks_on_p_tank_id" end - create_table "p_tanks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_tanks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.decimal "volume", precision: 14, scale: 2 t.bigint "p_brut_product_id" @@ -1998,7 +2002,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_brut_product_id"], name: "index_p_tanks_on_p_brut_product_id" end - create_table "p_truck_spaces", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "p_truck_spaces", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.decimal "volume", precision: 14, scale: 2 t.bigint "p_truck_id" @@ -2009,7 +2013,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_truck_id"], name: "index_p_truck_spaces_on_p_truck_id" end - create_table "pages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "pages", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.text "title" t.text "description" t.text "keywords" @@ -2020,7 +2024,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "particulars", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "particulars", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.boolean "pro", default: false t.string "organisation" t.string "name" @@ -2053,7 +2057,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["owner_id"], name: "index_particulars_on_owner_id" end - create_table "portlets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "portlets", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "block_id" t.bigint "content_id" t.string "content_type" @@ -2064,7 +2068,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["content_id"], name: "index_portlets_on_content_id" end - create_table "price_document_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "price_document_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "prefix" t.string "label" t.string "affix" @@ -2082,7 +2086,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "price_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "price_documents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.boolean "archived" t.bigint "p_customer_id" t.integer "p_commercial_id" @@ -2151,7 +2155,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_customer_id"], name: "index_price_documents_on_p_customer_id" end - create_table "price_line_blocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "price_line_blocks", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "p_customer_id" t.integer "p_commercial_id" t.integer "ac_p_customer_cat_id" @@ -2263,7 +2267,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_customer_id"], name: "index_price_line_blocks_on_p_customer_id" end - create_table "price_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "price_lines", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.boolean "archived" t.integer "price_line_block_id" t.integer "position" @@ -2359,7 +2363,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.string "cc_price_calc" end - create_table "quote_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "quote_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.text "quote" t.string "author" t.string "color" @@ -2371,7 +2375,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["image_file_id"], name: "index_quote_contents_on_image_file_id" end - create_table "s_brands", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_brands", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.boolean "enabled", default: true t.string "code" t.string "name" @@ -2381,7 +2385,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "s_compta_accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_compta_accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "code" t.string "name" t.string "i_account" @@ -2394,14 +2398,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "s_module_configurations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_module_configurations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.text "description" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "s_modules", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_modules", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "serial_nbr" t.string "cache_long_serial_number" t.bigint "s_modules_state_id" @@ -2419,14 +2423,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["s_site_id"], name: "index_s_modules_on_s_site_id" end - create_table "s_modules_states", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_modules_states", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "s_organisations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_organisations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "address1" t.string "address2" @@ -2446,14 +2450,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "s_site_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_site_types", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.text "description" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "s_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "s_sites", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.text "description" t.boolean "externe" @@ -2463,7 +2467,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["s_site_type_id"], name: "index_s_sites_on_s_site_type_id" end - create_table "share_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "share_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "url" t.string "facebook_url" t.boolean "facebook", default: false @@ -2480,14 +2484,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "specific_preferences", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "specific_preferences", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "key" t.string "value" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "table_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "table_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "style" t.integer "nbr_rows" t.integer "nbr_cols" @@ -2495,7 +2499,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "table_rows", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "table_rows", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "position" t.integer "style" t.bigint "table_content_id" @@ -2504,7 +2508,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["table_content_id"], name: "index_table_rows_on_table_content_id" end - create_table "tag_taggables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tag_taggables", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "taggable_type" t.bigint "taggable_id" t.bigint "tag_id" @@ -2514,7 +2518,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["taggable_id"], name: "index_tag_taggables_on_taggable_id" end - create_table "tags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tags", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.string "slug" t.integer "parent_id" @@ -2526,14 +2530,14 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["taggable_id"], name: "index_tags_on_taggable_id" end - create_table "text_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "text_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "style" t.text "content" t.datetime "created_at", precision: 6, null: false t.datetime "updated_at", precision: 6, null: false end - create_table "timer_watchers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "timer_watchers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "element_type" t.integer "element_id" t.string "key" @@ -2549,7 +2553,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["p_customer_id"], name: "index_timer_watchers_on_p_customer_id" end - create_table "tiny_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tiny_urls", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "url" t.string "slug" t.text "description" @@ -2560,7 +2564,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "title_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "title_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.text "content" t.integer "level" t.string "style" @@ -2569,7 +2573,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "translations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "translations", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "locale" t.string "key" t.text "value" @@ -2579,7 +2583,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "tva_rates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tva_rates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.text "description" t.bigint "accounting_zone_id" @@ -2592,7 +2596,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["accounting_zone_id"], name: "index_tva_rates_on_accounting_zone_id" end - create_table "tvable_tva_rates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "tvable_tva_rates", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.integer "tvable_id" t.string "tvable_type" t.integer "tva_rate_id" @@ -2600,7 +2604,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.datetime "updated_at", precision: 6, null: false end - create_table "video_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "video_contents", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.bigint "video_file_id" t.string "title" t.boolean "download", default: false @@ -2614,7 +2618,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["video_file_id"], name: "index_video_contents_on_video_file_id" end - create_table "video_file_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "video_file_langs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "title" t.text "description" t.string "slug" @@ -2626,7 +2630,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["video_file_id"], name: "index_video_file_langs_on_video_file_id" end - create_table "video_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "video_files", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "title" t.text "description" t.string "token" @@ -2651,7 +2655,7 @@ ActiveRecord::Schema.define(version: 2021_09_13_081136) do t.index ["video_folder_id"], name: "index_video_files_on_video_folder_id" end - create_table "video_folders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4", force: :cascade do |t| + create_table "video_folders", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci", force: :cascade do |t| t.string "name" t.boolean "super_admin", default: false t.text "description"