10001__user.sql 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. INSERT INTO
  2. user (
  3. `id`,
  4. `username`,
  5. `role`,
  6. `email`,
  7. `nickname`,
  8. `open_id`,
  9. `password_hash`
  10. )
  11. VALUES
  12. (
  13. 101,
  14. 'demohero',
  15. 'HOST',
  16. 'demo@usememos.com',
  17. 'Demo Hero',
  18. hex(randomblob(16)),
  19. -- raw password: secret
  20. '$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
  21. );
  22. INSERT INTO
  23. user (
  24. `id`,
  25. `username`,
  26. `role`,
  27. `email`,
  28. `nickname`,
  29. `open_id`,
  30. `password_hash`
  31. )
  32. VALUES
  33. (
  34. 102,
  35. 'jack',
  36. 'USER',
  37. 'jack@usememos.com',
  38. 'Jack',
  39. hex(randomblob(16)),
  40. -- raw password: secret
  41. '$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
  42. );
  43. INSERT INTO
  44. user (
  45. `id`,
  46. `row_status`,
  47. `username`,
  48. `role`,
  49. `email`,
  50. `nickname`,
  51. `open_id`,
  52. `password_hash`
  53. )
  54. VALUES
  55. (
  56. 103,
  57. 'ARCHIVED',
  58. 'bob',
  59. 'USER',
  60. 'bob@usememos.com',
  61. 'Bob',
  62. hex(randomblob(16)),
  63. -- raw password: secret
  64. '$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
  65. );