Skip to content

Commit

Permalink
feat: updated core_types to move ownership to PhotoGroup
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbchron committed Feb 19, 2024
1 parent e90423f commit 9c43238
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions crates/core_types/src/photo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,11 @@ pub struct PhotoRecordId(pub ulid::Ulid);
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Photo {
/// The record ID.
pub id: PhotoRecordId,
/// The user who created the photo.
pub photographer: UserRecordId,
/// The user who owns the photo.
pub owner: UserRecordId,
pub id: PhotoRecordId,
/// The photo group that contains this photo.
pub group: PhotoGroupRecordId,
/// The photo's artifacts.
pub artifacts: PhotoArtifacts,
pub artifacts: PhotoArtifacts,
}

/// The artifacts for a photo. Not a table.
Expand Down Expand Up @@ -73,13 +71,15 @@ pub struct PhotoGroupRecordId(pub ulid::Ulid);
#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct PhotoGroup {
/// The record ID.
pub id: PhotoGroupRecordId,
pub id: PhotoGroupRecordId,
/// The user who uploaded the photo group.
pub photographer: UserRecordId,
/// The user who owns the photo group.
pub owner: UserRecordId,
pub owner: UserRecordId,
/// The photos in the group.
pub photos: Vec<PhotoRecordId>,
pub photos: Vec<PhotoRecordId>,
/// Whether the group is publicly visible.
pub public: bool,
pub public: bool,
}

/// The metadata for uploading a photo group. Not a table.
Expand Down

0 comments on commit 9c43238

Please sign in to comment.