Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Система комментариев #65

Open
notarseniy opened this issue Jan 15, 2015 · 1 comment
Open

Система комментариев #65

notarseniy opened this issue Jan 15, 2015 · 1 comment

Comments

@notarseniy
Copy link
Contributor

/thread

@notarseniy notarseniy self-assigned this Jan 15, 2015
@notarseniy notarseniy added this to the «Beta» milestone Jan 15, 2015
@notarseniy
Copy link
Contributor Author

Техническое описание

БД

{
  "id": 1,
  "tid": 1,
  "author": 1,
  "message": "",
  "status": 1, // 1 – everything is ok, 2 – reserved for "reported" status, 3 – removed (hidden),
  "attachments": "[1,2,3]" // ID's of attachments
}

После сериализации

{
  id: 1,
  tid: 1,
  author: {
    id: 1,
    username: 'Rena4ka'
  },
  message: "",
  status: {
    id: 1,
    name: 'new'
  }, // 1 – everything is ok, 2 – reserved for "reported" status, 3 – removed (hidden),
  attachments: [1, 2, 3] // ID's of attachments,
  createdAt: {
      milliseconds: 12345678,
      pretty: '18 hours ago' /* Powered by moment.js */
  },
  updatedAt: {
      milliseconds: 12345678,
      pretty: '18 hours ago' /* Powered by moment.js */
  }
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

1 participant