The Comment model
댓글 모델의 구성요소와 구조입니다.
/*Comment model structure*/
{
/*Comment model id (unsigned int, auto incrementing primary key)*/
"id": 244,
/*댓글 작성자 User model id (unsigned int, auto incrementing primary key)*/
"user_id": 230427,
/*댓글이 귀속된 모델의 종류 (varchar 255, string identifier)*/
"commentable_type": "snap_post",
/*댓글이 귀속된 모델의 id (unsigned int, auto incrementing primary key)*/
"commentable_id": 17502,
/*댓글 내용 (varchar 255)*/
"content": "차차다 차차",
/*댓글 모델 생성 시간 (datetime)*/
"created_at": "2016-12-29 15:13:30",
/*댓글 모델 수정 시간 (datetime)*/
"updated_at": "2016-12-29 15:13:30",
/*Callout된 사용자들 (array of User models)*/
"callouts": [],
/*댓글 작성자 User model (eagerloaded User model)*/
"user": {
"id": 230427,
"user_group_id": 0,
"email": "latehphh@nate.com",
"username": "호박이",
"nickname": "CAMSCON Inspirer",
"intro": null,
"gender": 1,
"birthday": null,
"instagram": null,
"website": null,
"slug": null,
"preferences": null,
"created_at": "2016-12-29 15:11:41",
"updated_at": "2016-12-29 15:11:41",
"followed": false,
"follower_count": 0,
"following_count": 0,
"profile_picture": [],
"is_inspirer": false
}
}