You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
3.7 KiB

  1. MySQL database "literature", table "deleted"
  2. ============================================
  3. -> This table holds records that have been deleted from the main table "refs". Deleted
  4. data will be stored in the "deleted" table until they are removed manually. This is
  5. to provide the admin with a simple recovery method in case a user deleted data by
  6. accident...
  7. -> Order and type specifications of columns must match *exactly* those of table "refs"!
  8. The only difference compared to table "refs" is that there are three additional columns
  9. ('deleted_date', 'deleted_time' and 'deleted_by') at the very end of the column list:
  10. column types
  11. ------------
  12. author TEXT
  13. address TEXT
  14. corporate_author VARCHAR(255)
  15. first_author VARCHAR(100)
  16. author_count TINYINT UNSIGNED
  17. title TEXT
  18. orig_title TEXT
  19. publication VARCHAR(255)
  20. abbrev_journal VARCHAR(100)
  21. year SMALLINT
  22. date VARCHAR(50)
  23. volume VARCHAR(50)
  24. volume_numeric SMALLINT UNSIGNED
  25. issue VARCHAR(50)
  26. pages VARCHAR(50)
  27. first_page MEDIUMINT UNSIGNED
  28. keywords TEXT
  29. abstract TEXT
  30. edition TINYINT UNSIGNED
  31. editor TEXT
  32. publisher VARCHAR(255)
  33. place VARCHAR(100)
  34. medium VARCHAR(50)
  35. series_editor TEXT
  36. series_title TEXT
  37. abbrev_series_title VARCHAR(100)
  38. series_volume VARCHAR(50)
  39. series_volume_numeric SMALLINT UNSIGNED
  40. series_issue VARCHAR(50)
  41. issn VARCHAR(100)
  42. isbn VARCHAR(100)
  43. language VARCHAR(100)
  44. summary_language VARCHAR(100)
  45. area VARCHAR(255)
  46. type VARCHAR(100)
  47. publication_status ENUM("published","in print","submitted","unpublished")
  48. thesis ENUM("Bachelor's thesis","Master's thesis","Ph.D. thesis","Diploma thesis","Doctoral thesis","Habilitation thesis")
  49. expedition VARCHAR(255)
  50. doi VARCHAR(100)
  51. conference VARCHAR(255)
  52. url VARCHAR(255)
  53. call_number TEXT
  54. location TEXT
  55. contribution_id VARCHAR(100)
  56. online_publication ENUM("no","yes") NOT NULL
  57. online_citation VARCHAR(255)
  58. file VARCHAR(255)
  59. notes TEXT
  60. serial MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
  61. orig_record MEDIUMINT
  62. approved ENUM("no","yes") NOT NULL
  63. created_date DATE
  64. created_time TIME
  65. created_by VARCHAR(100)
  66. modified_date DATE
  67. modified_time TIME
  68. modified_by VARCHAR(100)
  69. deleted_date DATE
  70. deleted_time TIME
  71. deleted_by VARCHAR(100)
  72. table creation code
  73. -------------------
  74. CREATE TABLE deleted (author TEXT, address TEXT, corporate_author VARCHAR(255), first_author VARCHAR(100), author_count TINYINT UNSIGNED, title TEXT, orig_title TEXT, publication VARCHAR(255), abbrev_journal VARCHAR(100), year SMALLINT, date VARCHAR(50), volume VARCHAR(50), volume_numeric SMALLINT UNSIGNED, issue VARCHAR(50), pages VARCHAR(50), first_page MEDIUMINT UNSIGNED, keywords TEXT, abstract TEXT, edition TINYINT UNSIGNED, editor TEXT, publisher VARCHAR(255), place VARCHAR(100), medium VARCHAR(50), series_editor TEXT, series_title TEXT, abbrev_series_title VARCHAR(100), series_volume VARCHAR(50), series_volume_numeric SMALLINT UNSIGNED, series_issue VARCHAR(50), issn VARCHAR(100), isbn VARCHAR(100), language VARCHAR(100), summary_language VARCHAR(100), area VARCHAR(255), type VARCHAR(100), publication_status ENUM("published","in print","submitted","unpublished"), thesis ENUM("Bachelor's thesis","Master's thesis","Ph.D. thesis","Diploma thesis","Doctoral thesis","Habilitation thesis"), expedition VARCHAR(255), doi VARCHAR(100), conference VARCHAR(255), url VARCHAR(255), call_number TEXT, location TEXT, contribution_id VARCHAR(100), online_publication ENUM("no","yes") NOT NULL, online_citation VARCHAR(255), file VARCHAR(255), notes TEXT, serial MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, orig_record MEDIUMINT, approved ENUM("no","yes") NOT NULL, created_date DATE, created_time TIME, created_by VARCHAR(100), modified_date DATE, modified_time TIME, modified_by VARCHAR(100), deleted_date DATE, deleted_time TIME, deleted_by VARCHAR(100));