테이블-replace.sql 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. REPLACE INTO dbr_media
  2. (id, media_no, media_date, user_id, branch_id, media_brand, media_name)
  3. VALUES
  4. (1, '200101-0000', '20000101', 5, 1, 'item', 'blank_image');
  5. REPLACE INTO dbr_media_bd (id, media_id, seq_no, image_type, bd_file_url) VALUES (1, 1, 1, 'big', '');
  6. REPLACE INTO dbr_media_bd (id, media_id, seq_no, image_type, bd_file_url) VALUES (2, 1, 2, 'middle', '');
  7. REPLACE INTO dbr_media_bd (id, media_id, seq_no, image_type, bd_file_url) VALUES (3, 1, 3, 'thumb', '');
  8. REPLACE INTO users
  9. (id, email, password, activate_code, reset_code, nick_name, first_name, sur_name, status)
  10. VALUES
  11. (1, SUBSTR(MD5(RAND()),1,20), 'unlinked', 'unlinked', 'unlinked', 'unlinked', 'unlinked', 'unlinked', '5');
  12. REPLACE INTO dbr_user_ext
  13. (id, mobile_no, phone_no, user_perm_id, menu_lang_sw,
  14. sgroup_id, branch_id, storage_id, agroup_id, country_code, is_expired)
  15. VALUES
  16. (1, 'unlinked', 'unlinked', 7, 0,
  17. 1, 1, 1, 1, 'ko_KR', '0');
  18. REPLACE INTO pro_member
  19. (id, email, password, activate_code, reset_code, nick_name, first_name, sur_name, status, buyer_id)
  20. VALUES
  21. (1, 'email-unlinked', 'unlinked', 'unlinked', 'unlinked', 'unlinked', 'unlinked', 'unlinked', '5', 1);
  22. REPLACE INTO pro_member
  23. (id, email, password, activate_code, reset_code, nick_name, first_name, sur_name, status, sso_sub_id, is_member_app)
  24. VALUES
  25. (2, 'ab64-app', 'ab64-app', 'unlinked', 'unlinked', 'unlinked', 'unlinked', 'unlinked', '5', 2, '1');
  26. REPLACE INTO pro_member
  27. (id, email, password, activate_code, reset_code, nick_name, first_name, sur_name, status, sso_sub_id, is_member_app)
  28. VALUES
  29. (3, 'api23-app', 'api23-app', 'unlinked', 'unlinked', 'unlinked', 'unlinked', 'unlinked', '5', 3, '1');
  30. REPLACE INTO pro_member_ext
  31. (id, mobile_no, phone_no, member_perm_id, menu_lang_sw,
  32. sgroup_id, branch_id, storage_id, agroup_id, country_code, is_expired)
  33. VALUES
  34. (1, 'unlinked', 'unlinked', 7, 0,
  35. 1, 1, 1, 1, 'ko_KR', '0');
  36. REPLACE INTO pro_member_ext
  37. (id, mobile_no, phone_no, member_perm_id, menu_lang_sw,
  38. sgroup_id, branch_id, storage_id, agroup_id, country_code, is_expired)
  39. VALUES
  40. (2, 'unlinked', 'unlinked', 7, 0,
  41. 1, 1, 1, 1, 'ko_KR', '0');
  42. REPLACE INTO pro_member_ext
  43. (id, mobile_no, phone_no, member_perm_id, menu_lang_sw,
  44. sgroup_id, branch_id, storage_id, agroup_id, country_code, is_expired)
  45. VALUES
  46. (3, 'unlinked', 'unlinked', 7, 0,
  47. 1, 1, 1, 1, 'ko_KR', '0');
  48. REPLACE INTO dbr_company
  49. (id, created_on, updated_on,
  50. company_date, company_no, company_name, company_class, full_name
  51. )
  52. VALUES
  53. (1, unix_timestamp(), unix_timestamp(),
  54. '00000000', '000000-00', 'unlinked', 'AA', 'unlinked');
  55. REPLACE INTO pro_member_device
  56. (id, created_on, activate_on,
  57. member_id, device_ip, device_hash, device_desc, last_login_on, status )
  58. VALUES
  59. (1, unix_timestamp(), unix_timestamp(),
  60. 1, 'unlinked', 'unlinked', 'unlinked', 0, '0');