item_big_view.sql 652 B

123456789101112131415161718
  1. create or replace view item_big_view as
  2. select
  3. dbr_item.*, bd_file_url, igroup_code, igroup_name
  4. from
  5. dbr_item
  6. inner join dbr_igroup on dbr_igroup.id = dbr_igroup.id
  7. left join
  8. ( select
  9. media_id,
  10. bd_file_url
  11. from
  12. dbr_media_bd
  13. where image_type = 'big'
  14. ) as com
  15. on com.media_id = dbr_item.media_id
  16. ALTER TABLE `dbr_company` CHANGE `certi_img` `certi_img` VARCHAR(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '사업자등록증 사진';
  17. ALTER TABLE `dbr_company` CHANGE `company_json` `company_json` TEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '커스터마이징 내용';