1
0

Version Creation (#47)

* Creation Stuff

* Make it work

* Response structs + Mod ID validation

* Run code formatter

* Push local changes

* Finish up version creation - fix comments, impl file creation

* fix: Add sqlx prepare data

Co-authored-by: Aeledfyr <aeledfyr@gmail.com>
This commit is contained in:
Geometrically
2020-08-12 11:05:49 -07:00
committed by GitHub
parent 7e2f1c9a8b
commit e2bf474332
8 changed files with 589 additions and 234 deletions

View File

@@ -1,5 +1,5 @@
use super::ids::Base62Id;
use super::teams::Team;
use super::teams::TeamId;
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
@@ -20,10 +20,8 @@ pub struct VersionId(pub u64);
pub struct Mod {
/// The ID of the mod, encoded as a base62 string.
pub id: ModId,
// TODO: send partial team structure to reduce requests, but avoid sending
// unnecessary info
/// The team of people that has ownership of this mod.
pub team: Team,
pub team: TeamId,
/// The title or name of the mod.
pub title: String,
/// A short description of the mod.