You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
-
1Be careful, as the custom template setup is heading into EAV (Entity-Attribute-Value) territory, which is usually considered an anti-pattern. You're at least going about it the right way, by having a separate table for the field types. Please consider your data needs again - you may find that your data may be more constrained than you think. You can keep the EAV model, if necessary, but make it the last option; this is one of the situations where it may make sense. Unfortunately, I've never looked into MongoDB, so I can't give any recommendations there.Clockwork-Muse– Clockwork-Muse2012-08-20 17:31:04 +00:00Commented Aug 20, 2012 at 17:31
-
How often would you expect entries to be edited?JeffO– JeffO2012-08-20 19:22:08 +00:00Commented Aug 20, 2012 at 19:22
-
If all the user is going to do is enter information in slots, why not use a real formatted document instead of using a database? Just a thought. Also, the fact that a diary columns vary does not call for a complex model. A user_diary has 1 or more diary_columns is not complex.NoChance– NoChance2012-08-21 06:14:05 +00:00Commented Aug 21, 2012 at 6:14
-
@JeffO I think editing of individual entries would be rare and perhaps even discouraged. Annotations on entries might be a future feature.codecowboy– codecowboy2012-08-21 08:02:49 +00:00Commented Aug 21, 2012 at 8:02
Add a comment
|
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
-
create code fences with backticks ` or tildes ~
```
like so
``` -
add language identifier to highlight code
```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible)
<https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you