Begin work on proper database schema.

This commit is contained in:
Paul Makles
2020-02-08 12:36:37 +00:00
parent 5262095bed
commit f48bbd76b0
4 changed files with 43 additions and 7 deletions

View File

@@ -41,9 +41,12 @@ pub fn channel(user: User, target: Channel) -> Option<JsonValue> {
return None
}
let Channel ( id, channel_type, doc ) = target;
Some(
json!({
"aa": "b"
"id": id.to_string(),
"type": channel_type as u8
}
))
}