Commit 9514d3ac authored by Diego Sampaio's avatar Diego Sampaio Committed by GitHub
Browse files

Fix table markups

parent 8587549e
......@@ -25,27 +25,27 @@
### Fields
| Fields | Type | Description |
| :-------------- | :----------------- | :------------------------ |
| _id | Random.id() | Room Id |
| t | String | Room Type |
| ts | Date | Room Creation Timestamp |
| name | String | Room Name (t:d -> empty) |
| lm | Date | Last Message Timestamp |
| msgs | Integer | Messages Counter |
| cl | Boolean | If users can leave room |
| usernames | Array[String] | Room Users |
| usernames.0 | String | User Username |
| u | Object | Owner User |
| u._id | Random.id() | User Id |
| u.username | String | User Username |
Fields | Type | Description
:-------------- | :----------------- | :------------------------
_id | Random.id() | Room Id
t | String | Room Type
ts | Date | Room Creation Timestamp
name | String | Room Name (t:d -> empty)
lm | Date | Last Message Timestamp
msgs | Integer | Messages Counter
cl | Boolean | If users can leave room
usernames | Array[String] | Room Users
usernames.0 | String | User Username
u | Object | Owner User
u._id | Random.id() | User Id
u.username | String | User Username
### Indexes
| Fields | Options |
| :-------------- | :----------------- |
| name | unique, sparce |
| u._id | |
Fields | Options
:-------------- | :-----------------
name | unique, sparce
u._id |
## Subscriptions
......@@ -74,35 +74,34 @@
### Fields
| Fields | Type | Description |
| :-------------- | :----------------- | :----------------------------------------------------------------- |
| _id | Random.id() | Subscriptions Id |
| t | String | Subscription Type (copy from Room) |
| ts | Date | Subscription Creation Timestamp |
| ls | Date | Last Seen Timestamp |
| name | String | Subscription Name (t:d -> target username) |
| rid | Random.id() | Room Id |
| f | Boolean | Favorited |
| open | Boolean | Is Room Opened |
| alert | Boolean | Room has unread messages for this user |
| unread | Integer | Counter of unread messages with mentions or from direct messages |
| u | Object | User |
| u._id | Random.id() | User Id |
| u.username | String | User Username |
| v | Object | Visitor |
| v._id | Random.id() | Visitor Id |
| v.username | String | Visitor Username |
Fields | Type | Description
:-------------- | :----------------- | :-----------------------------------------------------------------
_id | Random.id() | Subscriptions Id
t | String | Subscription Type (copy from Room)
ts | Date | Subscription Creation Timestamp
ls | Date | Last Seen Timestamp
name | String | Subscription Name (t:d -> target username)
rid | Random.id() | Room Id
f | Boolean | Favorited
open | Boolean | Is Room Opened
alert | Boolean | Room has unread messages for this user
unread | Integer | Counter of unread messages with mentions or from direct messages
u | Object | User
u._id | Random.id() | User Id
u.username | String | User Username
v | Object | Visitor
v._id | Random.id() | Visitor Id
v.username | String | Visitor Username
### Indexes
| Fields | Options |
| :-------------- | :----------------- |
| rid, u._id | unique |
| u._id, name, t | unique |
| open | |
| alert | |
| unread | |
Fields | Options
:-------------- | :-----------------
rid, u._id | unique
u._id, name, t | unique
open |
alert |
unread |
## Messages
......@@ -133,10 +132,10 @@
### Indexes
| Fields | Options |
| :-------------- | :----------------- |
| rid, ts | |
| expireAt | expireAfterSeconds |
Fields | Options
:-------------- | :-----------------
rid, ts |
expireAt | expireAfterSeconds
## Visitors
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment