Do you wish to register an account?
An experiment using a Rust framework to build a Media Collection manager.
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.

32 lines
573B

  1. use diesel::Queryable;
  2. use crate::schema::*;
  3. #[derive(Debug, Queryable)]
  4. pub struct Media {
  5. pub id: u32,
  6. pub display_name: String,
  7. pub notes: String,
  8. }
  9. #[derive(Debug, Queryable)]
  10. pub struct MediaType {
  11. pub id: u32,
  12. pub type_name: String,
  13. pub description: String,
  14. }
  15. #[derive(Debug, Queryable)]
  16. pub struct MediaFormat {
  17. pub id: u32,
  18. pub is_physical: bool,
  19. pub format_name: String,
  20. pub description: String,
  21. }
  22. #[derive(Debug, Queryable)]
  23. pub struct MediaTypeFormatLink {
  24. pub media_type_id: i32,
  25. pub media_format_id: i32,
  26. }