O
O
ouexazgj2017-12-21 18:42:48
MySQL
ouexazgj, 2017-12-21 18:42:48

How to store constructed documents?

We write a designer of legal documents. How do we organize the storage of documents? Documents can contain:
Variables . These are the pieces selected in the text of the document (there may be several of them in the text), if you change the variable in one place, the value of the variable naturally changes everywhere. Variables are created for convenience, so that the user does not have to copy a lot.
Articles . Every document has articles, sub-articles, etc.

1.1 ffvfv
1.2 fvfv

The mechanism of work is as I think to do:
The user works in a js web editor similar to Word. Then when it saves the doc, the HTML code is sent to the server and stored in the database like this:
Документ №<var9183>

Данный документ <var9183> не имеет никакого смысла, т. к.

<article9515>
1.1 Это демо документ
</article>
<article9516>
1.2 А это просто еще одна бесполезная статья
</article9516>

Вот и все. Еще раз повторяю, что этот документ под номером <var9183> - демо-вариант.

Am I storing correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2017-12-21
@edinorog

Free?)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question