Compare commits

..

No commits in common. "d50e6ae8d066e02c667b504e4fc911cae130489d" and "fc7a5e0b1ed42338b311f819deab3a88d079be0e" have entirely different histories.

64 changed files with 47 additions and 7063 deletions

2
.gitignore vendored
View file

@ -1,2 +0,0 @@
logs/
node_modules/

224
LICENSE
View file

@ -1,232 +1,100 @@
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 1, February 1989
Copyright © 2007 Free Software Foundation, Inc. <https://fsf.org/> Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works. The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow. The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. Definitions. 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you".
“This License” refers to version 3 of the GNU General Public License. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following:
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations. a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work. b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option).
A “covered work” means either the unmodified Program or a work based on the Program. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following:
1. Source Code. a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or,
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or,
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.)
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance.
The Corresponding Source for a work in source code form is that same work. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions.
2. Basic Permissions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation.
3. Protecting Users' Legal Rights From Anti-Circumvention Law. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. NO WARRANTY
4. Conveying Verbatim Copies. 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs Appendix: How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
label-print label-print Copyright (C) 19yy waggeling.net
Copyright (C) 2025 waggeling.net
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Also add information on how to contact you by electronic and paper mail. Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
label-print Copyright (C) 2025 waggeling.net Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names:
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/philosophy/why-not-lgpl.html>. Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice
That's all there is to it!

View file

@ -1,45 +0,0 @@
const LabelApi = {
async GET(Endpoint)
{
const Response = await fetch(`/api/${Endpoint}`, {
method: "GET"
});
return Response.json();
},
async POST(Endpoint, BodyData = {})
{
const Response = await fetch(`/api/${Endpoint}`, {
method: "POST",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(BodyData)
});
return Response.json();
},
async PUT(Endpoint, BodyData = {})
{
const Response = await fetch(`/api/${Endpoint}`, {
method: "PUT",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(BodyData)
});
return Response.json();
},
async DELETE(Endpoint, BodyData = {})
{
const Response = await fetch(`/api/${Endpoint}`, {
method: "DELETE",
headers: {
"Content-Type": "application/json"
},
body: JSON.stringify(BodyData)
});
}
}

View file

@ -1,76 +0,0 @@
var App = Vue.createApp({
data() {
return {
mediaList: [],
mediaIndex: null
}
},
methods: {
EditMedium(mediaIndex, showModal = true)
{
this.mediaIndex = mediaIndex;
if (showModal) {
$('#addMediaModal').modal('show');
}
},
CreateMedium()
{
this.mediaList.push({
id: null,
name: 'new medium',
columns: 1,
spacing: 0,
width: 32
})
this.mediaIndex = this.mediaList.length - 1;
$('#addMediaModal').modal('show');
},
async SaveMedium(mediaIndex)
{
if (this.mediaList[mediaIndex].id == null) {
await LabelApi.POST('medium', {
name: this.mediaList[mediaIndex].name,
columns: this.mediaList[mediaIndex].columns,
spacing: this.mediaList[mediaIndex].spacing,
width: this.mediaList[mediaIndex].width
});
} else {
await LabelApi.PUT('medium', {
mediumId: this.mediaList[mediaIndex].id,
name: this.mediaList[mediaIndex].name,
columns: this.mediaList[mediaIndex].columns,
spacing: this.mediaList[mediaIndex].spacing,
width: this.mediaList[mediaIndex].width
});
}
$('#addMediaModal').modal('hide');
await GetMediaList();
},
async DeleteMedium(mediaIndex, finaly = false)
{
if (finaly) {
$('#deleteMediaModal').modal('hide');
await LabelApi.DELETE('medium', {
mediumId: this.mediaList[mediaIndex].id
});
this.mediaIndex = null;
await GetMediaList();
} else {
this.mediaIndex = mediaIndex;
$('#deleteMediaModal').modal('show');
}
}
}
}).mount('main');
async function GetMediaList()
{
let mediaList = await LabelApi.GET(`media`);
App.mediaList = mediaList;
}
GetMediaList();

View file

@ -1,102 +0,0 @@
var App = Vue.createApp({
data() {
return {
printerList: [],
printerEditor: {
id: null,
name: "",
density: 203,
socket_addr: "",
socket_port: 6101,
type: "zdl"
}
}
},
methods: {
EditPrinter(PrinterID, ShowModal = true)
{
let Printer = this.printerList.find((_Printer) => {
return _Printer.id == PrinterID;
});
this.printerEditor.id = Printer.id;
this.printerEditor.name = Printer.name;
this.printerEditor.density = Printer.density;
this.printerEditor.socket_addr = Printer.socket_addr;
this.printerEditor.socket_port = Printer.socket_port;
if (ShowModal) {
$('#printerSettingsModal').modal('show');
}
},
CreatePrinter()
{
this.printerEditor.id = null;
this.printerEditor.name = "";
this.printerEditor.density = 203;
this.printerEditor.type = "zdl";
this.printerEditor.socket_addr = "";
this.printerEditor.socket_port = 6101;
$('#printerSettingsModal').modal('show');
},
SavePrinter()
{
if (this.printerEditor.id == null)
{
$.ajax({
type: 'POST',
url: `/api/printer`,
data: JSON.stringify(this.printerEditor),
contentType: "application/json"
}).done(function () {
$('#printerSettingsModal').modal('hide');
GetPrinterList();
});
}
else
{
$.ajax({
type: 'PUT',
url: `/api/printer`,
data: JSON.stringify(this.printerEditor),
contentType: "application/json"
}).done(function () {
$('#printerSettingsModal').modal('hide');
GetPrinterList();
});
}
},
DeletePrinter(PrinterID, Confirm = false)
{
this.EditPrinter(PrinterID, false);
if (Confirm) {
$('#printerDeleteModal').modal('hide');
$.ajax({
type: 'DELETE',
url: `/api/printer/${PrinterID}`
}).done(function () {
GetPrinterList();
});
} else {
$('#printerDeleteModal').modal('show');
}
}
}
}).mount('main');
function GetPrinterList() {
$.ajax({
url: `/api/printers`,
type: 'GET',
success: function (Printer) {
App.printerList = Printer;
}
});
}
GetPrinterList();

View file

@ -1,138 +0,0 @@
var queueApp = Vue.createApp({
data() {
return {
queueData,
templates,
printers,
// SelectedPrinter: null,
LabelData: {
Auftragsnummer: null,
Bezeichnung: null
},
LabelQueue: [],
Settings: {
AutoPrint: false
},
CurrentTemplate: templates[0].id
}
},
methods: {
ContinueFieldInput()
{
console.log("ContinueFieldInput");
let Fields = Object.entries(this.LabelData).map((Field) => {
return {
Key: Field[0],
Value: Field[1]
};
});
Fields = Fields.filter((Field) => {
return Field.Value == null || Field.Value == "";
});
if (Fields.length > 0) {
$(`input[placeholder='${Fields[0].Key}']`).focus();
} else {
this.SaveLabelData()
}
},
SaveLabelData()
{
this.LabelQueue.push({
Fields: {
...this.LabelData
}
});
Object.keys(this.LabelData).forEach((FieldName) => {
this.LabelData[FieldName] = null;
});
$(`input[placeholder='${Object.keys(this.LabelData)[0]}']`).focus();
this.SavePersistent();
},
DeleteLabel(LabelIndex) {
console.log(LabelIndex);
this.LabelQueue.splice(LabelIndex, 1);
this.SavePersistent();
},
SavePersistent()
{
localStorage.setItem('LabelQueue', JSON.stringify(this.LabelQueue));
localStorage.setItem('Settings', JSON.stringify(this.Settings));
},
LoadPersistent()
{
if (localStorage.getItem('LabelQueue') != null) {
this.LabelQueue = JSON.parse(localStorage.getItem('LabelQueue'));
}
if (localStorage.getItem('Settings') != null) {
this.Settings = {
...this.Settings,
...JSON.parse(localStorage.getItem('Settings'))
}
}
},
// Settings
ToggleAutoPrint() {
this.Settings.AutoPrint = !this.Settings.AutoPrint;
this.SavePersistent();
}
}
}).mount('main');
queueApp.LoadPersistent();
async function GetTemplateList() {
let templates = await LabelApi.GET('templates');
queueApp.templates = templates;
}
async function GetPrinterList() {
let printers = await LabelApi.GET('printers');
queueApp.printers = printers;
}
async function GetQueueSettings() {
let queueData = await LabelApi.GET('queue/' + queueApp.queueData.id);
queueApp.queueData = queueData;
}
function GetSelectedPrinter() {
if (localStorage.getItem('SelectedPrinter') == null) {
SetSelectedPrinter([])
}
queueApp.SelectedPrinter = JSON.parse(
localStorage.getItem('SelectedPrinter')
);
}
function SetSelectedPrinter(SelectedPrinter) {
localStorage.setItem('SelectedPrinter', JSON.stringify(SelectedPrinter));
}
function GetLabelQueue() {
if (localStorage.getItem('LabelQueue') == null) {
SetLabelQueue([])
}
queueApp.LabelQueue = JSON.parse(
localStorage.getItem('LabelQueue')
);
}
function SetLabelQueue(LabelQueue) {
localStorage.setItem('LabelQueue', JSON.stringify(LabelQueue));
}
GetPrinterList();
GetLabelQueue();

View file

@ -1,100 +0,0 @@
var App = Vue.createApp({
data() {
return {
queueList: [],
printerList: [],
queueEditor: {
id: null,
name: "",
printerId: null
}
}
},
methods: {
EditQueue(QueueID, ShowModal = true)
{
let QueueData = this.queueList.find((_Queue) => {
return _Queue.id == QueueID;
});
this.queueEditor.id = QueueData.id;
this.queueEditor.name = QueueData.name;
this.queueEditor.printerId = QueueData.printerId;
if (ShowModal) {
$('#QueueSettingsModal').modal('show');
}
},
CreateQueue()
{
this.queueEditor.id = null;
this.queueEditor.name = "";
this.queueEditor.printerId = null;
$('#QueueSettingsModal').modal('show');
},
async SaveQueue()
{
if (this.queueEditor.id == null)
{
await LabelApi.POST('queue', {
name: this.queueEditor.name,
printerId: this.queueEditor.printerId,
});
GetQueueList();
}
else
{
await LabelApi.PUT('queue', {
id: this.queueEditor.id,
name: this.queueEditor.name,
printerId: this.queueEditor.printerId,
});
GetQueueList();
}
$('#QueueSettingsModal').modal('hide');
},
async DeleteQueue(QueueID, Confirm = false)
{
this.EditQueue(QueueID, false);
if (Confirm) {
$('#QueueDeleteModal').modal('hide');
await LabelApi.DELETE('queue', {
id: QueueID
});
GetQueueList();
} else {
$('#QueueDeleteModal').modal('show');
}
},
GetPrinterById(PrinterID) {
if (PrinterID != null) {
return this.printerList.find((Printer) => {
return Printer.id == PrinterID;
}).name;
} else {
return "Kein Drucker";
}
}
}
}).mount('main');
async function GetQueueList() {
let QueueList = await LabelApi.GET('queues');
App.queueList = QueueList;
}
async function GetPrinterList() {
let PrinterList = await LabelApi.GET('printers');
App.printerList = PrinterList;
}
GetPrinterList();
GetQueueList();

View file

@ -1,222 +0,0 @@
var App = Vue.createApp({
data() {
return {
// LabelEditor: {
// ...LabelData
// },
template,
variableIndex: null,
elementIndex: null
}
},
methods: {
async SaveTemplate() {
await LabelApi.PUT('template', {
templateId: this.template.id,
name: this.template.name,
width: this.template.width,
height: this.template.height
});
let toast = bootstrap.Toast.getOrCreateInstance(toastTemplateSaved)
toast.show()
await GetLabelData();
},
async AddVariable() {
this.template.variables.push({
id: null,
name: 'new variable',
label: 'unknown variable',
regex: '^.*$',
example: '',
default: ''
});
this.variableIndex = this.template.variables.length - 1;
$('#VariableSettingsModal').modal('show');
},
async EditVariable(Index) {
this.variableIndex = Index;
$('#VariableSettingsModal').modal('show');
},
async SaveVariable(Index) {
if (this.template.variables[Index].id == null) {
await LabelApi.POST('variable', {
templateId: this.template.id,
name: this.template.variables[Index].name,
label: this.template.variables[Index].label,
regex: this.template.variables[Index].regex,
example: this.template.variables[Index].example,
default: this.template.variables[Index].default
});
} else {
await LabelApi.PUT('variable', {
variableId: this.template.variables[Index].id,
name: this.template.variables[Index].name,
label: this.template.variables[Index].label,
regex: this.template.variables[Index].regex,
example: this.template.variables[Index].example,
default: this.template.variables[Index].default
});
}
$('#VariableSettingsModal').modal('hide');
await GetLabelData();
},
async DeleteVariable(Index, finaly = false) {
if (finaly) {
$('#DeleteVariableModal').modal('hide');
await LabelApi.DELETE('variable', {
variableId: this.template.variables[Index].id
});
this.variableIndex = null;
await GetLabelData();
} else {
this.variableIndex = Index;
$('#DeleteVariableModal').modal('show');
}
},
async AddElement(ElementType) {
let elementConfig = {};
if (ElementType == 'text') {
elementConfig = {
...elementConfig,
fontType: '0',
fontHeight: 10,
content: '<%- VarName %> or Plain Text'
}
}
if (ElementType == 'box') {
elementConfig = {
...elementConfig,
width: 20,
height: 10,
borderWidth: 1,
borderColor: 'B',
borderRadius: 0
}
}
if (ElementType == 'ellipse') {
elementConfig = {
...elementConfig,
width: 20,
height: 10,
borderWidth: 1,
borderColor: 'B'
}
}
if (ElementType == 'code39') {
elementConfig = {
...elementConfig,
codeHeight: 30,
codeWidth: 2,
widthRatio: 3.0,
content: '<%- VarName %> or Plain Text'
}
}
if (ElementType == 'code128') {
elementConfig = {
...elementConfig,
codeHeight: 30,
codeWidth: 2,
widthRatio: 3.0,
content: '<%- VarName %> or Plain Text'
}
}
this.template.elements.push({
name: 'new ' + ElementType,
type: ElementType,
config: {
originX: 0,
originY: 0,
originAlign: 0,
...elementConfig
}
});
this.elementIndex = this.template.elements.length - 1;
$('#ElementSettingsModal').modal('show');
},
async EditElement(Index) {
this.elementIndex = Index;
$('#ElementSettingsModal').modal('show');
},
async SaveElement(Index) {
if (this.template.elements[Index].id == null) {
await LabelApi.POST('element', {
templateId: this.template.id,
name: this.template.elements[Index].name,
type: this.template.elements[Index].type,
config: this.template.elements[Index].config,
comment: this.template.elements[Index].comment
});
} else {
await LabelApi.PUT('element', {
elementId: this.template.elements[Index].id,
name: this.template.elements[Index].name,
type: this.template.elements[Index].type,
config: this.template.elements[Index].config,
comment: this.template.elements[Index].comment
});
}
$('#ElementSettingsModal').modal('hide');
await GetLabelData();
},
async DeleteElement(Index, finaly = false) {
if (finaly) {
$('#DeleteElementModal').modal('hide');
await LabelApi.DELETE('element', {
elementId: this.template.elements[Index].id
});
this.elementIndex = null;
await GetLabelData();
} else {
this.elementIndex = Index;
$('#DeleteElementModal').modal('show');
}
},
GetElementTypeName(ElementType) {
switch (ElementType) {
case 'text':
return 'Text';
break;
case 'box':
return 'Graphical Box';
break;
case 'ellipse':
return 'Graphical Ellipse';
break;
case 'code39':
return 'Code 39';
break;
case 'code128':
return 'Code 128';
break;
default:
return 'Unknown';
break;
}
}
}
}).mount('main');
async function GetLabelData() {
App.variableIndex = null;
App.elementIndex = null;
let template = await LabelApi.GET(`template/${App.template.id}`);
App.template = template;
}
const toastTemplateSaved = document.getElementById('toast-template-saved')

View file

@ -1,48 +0,0 @@
var App = Vue.createApp({
data() {
return {
templateList: [],
templateIndex: null
}
},
methods: {
EditTemplate(templateIndex)
{
document.location.href = `/template/${this.templateList[templateIndex].id}`;
},
async CreateTemplate()
{
await LabelApi.POST('medium', {
name: "new template",
width: 10,
height: 10
});
await GetTemplateList();
},
async DeleteTemplate(templateIndex, finaly = false)
{
if (finaly) {
$('#DeleteTemplateModal').modal('hide');
await LabelApi.DELETE('template', {
templateId: this.templateList[templateIndex].id
});
this.templateIndex = null;
await GetTemplateList();
} else {
this.templateIndex = templateIndex;
$('#DeleteTemplateModal').modal('show');
}
}
}
}).mount('main');
async function GetTemplateList() {
let templateList = await LabelApi.GET(`templates`);
App.templateList = templateList;
console.log(templateList);
}
GetTemplateList();

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 75 39" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M24.688,21.364c-1.064,3.285 -3.866,9.611 -9.69,9.611c-6.412,-0.285 -8.018,-7.536 -8.018,-11.317c0,-4.197 1.064,-11.878 8.15,-12.09c5.374,-0.165 8.203,5.883 9.393,9.407l8.282,20.814l7.443,0l-11.871,-28.581c-2.783,-6.009 -6.894,-9.208 -12.216,-9.208c-4.765,-0 -8.652,1.745 -11.653,5.242c-3.008,3.496 -4.508,8.196 -4.508,14.112c0,5.354 1.415,9.889 4.23,13.617c2.823,3.728 6.458,5.592 10.907,5.592c5.182,-0 9.644,-2.479 13.154,-8.15l-3.596,-9.036l-0.007,-0.013Z" style="fill:#00b4e5;fill-rule:nonzero;"/><path d="M33.44,17.53l5.764,-16.77l-7.906,0l-2.188,6.326l4.33,10.444Z" style="fill:#00b4e5;fill-rule:nonzero;"/><path d="M52.966,30.512c-2.664,-2.631 -4.832,-7.291 -4.832,-12.764c0,-4.045 0.833,-6.009 2.505,-8.097c1.673,-2.089 3.854,-3.134 6.557,-3.134c2.704,0 5.004,1.085 6.63,3.253c1.626,2.168 2.439,4.091 2.439,7.971c0,5.592 -2.505,10.021 -5.129,12.764l7.489,0c1.877,-2.174 4.885,-6.729 4.885,-13.61c-0,-5.228 -1.553,-9.346 -4.667,-12.361c-3.113,-3.014 -6.993,-4.521 -11.633,-4.521c-4.641,0 -8.501,1.501 -11.621,4.508c-3.12,3.001 -4.68,7.152 -4.68,12.454c0,6.854 3.061,11.369 4.984,13.53l7.093,0l-0.02,0.007Z" style="fill:#33b5b3;fill-rule:nonzero;"/><path d="M59.51,31.755l-0,5.995l12.923,-0l2.511,-5.995l-15.434,-0Z" style="fill:#33b5b3;fill-rule:nonzero;"/><path d="M39.429,31.755l2.399,5.995l13.055,-0l-0,-5.995l-15.454,-0Z" style="fill:#33b5b3;fill-rule:nonzero;"/></svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 221 KiB

View file

@ -1,49 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="75"
height="75"
viewBox="0 0 75 75"
version="1.1"
xml:space="preserve"
style="clip-rule:evenodd;fill-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2"
id="svg12"
sodipodi:docname="Favicon.svg"
inkscape:version="1.2.1 (9c6d41e410, 2022-07-14)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs16" /><sodipodi:namedview
id="namedview14"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="21.373333"
inkscape:cx="37.476606"
inkscape:cy="19.510293"
inkscape:window-width="3840"
inkscape:window-height="2066"
inkscape:window-x="-11"
inkscape:window-y="-11"
inkscape:window-maximized="1"
inkscape:current-layer="svg12" /><path
d="m 24.688,39.364 c -1.064,3.285 -3.866,9.611 -9.69,9.611 C 8.586,48.69 6.98,41.439 6.98,37.658 c 0,-4.197 1.064,-11.878 8.15,-12.09 5.374,-0.165 8.203,5.883 9.393,9.407 l 8.282,20.814 h 7.443 L 28.377,27.208 C 25.594,21.199 21.483,18 16.161,18 11.396,18 7.509,19.745 4.508,23.242 1.5,26.738 0,31.438 0,37.354 c 0,5.354 1.415,9.889 4.23,13.617 2.823,3.728 6.458,5.592 10.907,5.592 5.182,0 9.644,-2.479 13.154,-8.15 l -3.596,-9.036 z"
style="fill:#00b4e5;fill-rule:nonzero"
id="path2" /><path
d="M 33.44,35.53 39.204,18.76 H 31.298 L 29.11,25.086 Z"
style="fill:#00b4e5;fill-rule:nonzero"
id="path4" /><path
d="m 52.966,48.512 c -2.664,-2.631 -4.832,-7.291 -4.832,-12.764 0,-4.045 0.833,-6.009 2.505,-8.097 1.673,-2.089 3.854,-3.134 6.557,-3.134 2.704,0 5.004,1.085 6.63,3.253 1.626,2.168 2.439,4.091 2.439,7.971 0,5.592 -2.505,10.021 -5.129,12.764 h 7.489 c 1.877,-2.174 4.885,-6.729 4.885,-13.61 0,-5.228 -1.553,-9.346 -4.667,-12.361 C 65.73,19.52 61.85,18.013 57.21,18.013 c -4.641,0 -8.501,1.501 -11.621,4.508 -3.12,3.001 -4.68,7.152 -4.68,12.454 0,6.854 3.061,11.369 4.984,13.53 h 7.093 z"
style="fill:#33b5b3;fill-rule:nonzero"
id="path6" /><path
d="m 59.51,49.755 v 5.995 h 12.923 l 2.511,-5.995 z"
style="fill:#33b5b3;fill-rule:nonzero"
id="path8" /><path
d="m 39.429,49.755 2.399,5.995 h 13.055 v -5.995 z"
style="fill:#33b5b3;fill-rule:nonzero"
id="path10" /></svg>

Before

Width:  |  Height:  |  Size: 2.5 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,89 +0,0 @@
import {
Label,
Grid,
Text,
Line,
Box,
Circle,
Barcode,
FontFamily,
PrintDensity,
Spacing,
SizeType
} from "jszpl";
import {
Printer as PrinterTable
} from "../sequelize/printer.model.mjs";
import {
Template as TemplateTable
} from "../sequelize/template.model.mjs";
import {
Medium as MediaTable
} from "../sequelize/media.model.mjs";
import {
Queue as QueueTable
} from "../sequelize/queue.model.mjs";
import {
Job as JobTable
} from "../sequelize/job.model.mjs";
export async function GenerateZPL(queueId, limit = undefined)
{
let queue = await QueueTable.findByPk(queueId);
let printer = await queue.getPrinter();
let medium = await printer.getMedium();
let jobs = await queue.getJobs({
limit
});
var Result = '';
while (jobs.length > 0) {
// get jobs for row
let nextJobs = jobs.splice(0, medium.columns);
// generate new Label
const label = new Label();
label.printDensity = new PrintDensity(printer.density);
label.width = 100;
label.height = 50;
label.padding = new Spacing(10);
// generate Grid
const grid = new Grid();
label.content.push(grid);
grid.border = 1;
grid.columnSpacing = 2;
grid.rowSpacing = 0;
for (let cIndex = 0; cIndex < medium.columns; cIndex++) {
grid.columns.push(new Size(1, SizeType.Relative));
}
grid.rows.push(new Size(1, SizeType.Relative));
nextJobs.forEach((job, columnNumber) => {
let template = job.getTemplate();
const text = new Text();
label.content.push(text);
text.fontFamily = new FontFamily("0");
text.text = 'Hello World!';
});
Result += label.generateZPL();
}
return Result;
}

View file

@ -1,688 +0,0 @@
{"level":20,"time":1701291277232,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT 1+1 AS result"}
{"level":30,"time":1701291277259,"pid":33104,"hostname":"Desktop-Kai","msg":"Connection has been established successfully."}
{"level":20,"time":1701291277261,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291277289,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `templates`;"}
{"level":20,"time":1701291277341,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291277393,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291277444,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701291277546,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `height` `height` INTEGER NOT NULL;"}
{"level":20,"time":1701291277574,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `templates` FROM `aol_label-print`"}
{"level":20,"time":1701291277601,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_elements' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291277628,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_elements`;"}
{"level":20,"time":1701291277628,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_elements' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291277734,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291277782,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `type` `type` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291277810,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `config` `config` JSON NOT NULL;"}
{"level":20,"time":1701291277839,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `comment` `comment` TEXT NOT NULL;"}
{"level":20,"time":1701291277867,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_elements' AND constraint_name = 'template_elements_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291277894,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` DROP FOREIGN KEY `template_elements_ibfk_1`;"}
{"level":20,"time":1701291277923,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291277964,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_elements` FROM `aol_label-print`"}
{"level":20,"time":1701291277992,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_variables' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291278019,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_variables`;"}
{"level":20,"time":1701291278019,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_variables' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291278123,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` ADD `description` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291278153,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291278181,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `regex` `regex` TEXT NOT NULL;"}
{"level":20,"time":1701291278210,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `example` `example` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291278238,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `default` `default` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291278266,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE (REFERENCED_TABLE_NAME = 'template_variables' AND REFERENCED_TABLE_SCHEMA = 'aol_label-print' AND REFERENCED_COLUMN_NAME = 'comment') OR (TABLE_NAME = 'template_variables' AND TABLE_SCHEMA = 'aol_label-print' AND COLUMN_NAME = 'comment' AND REFERENCED_TABLE_NAME IS NOT NULL)"}
{"level":20,"time":1701291278300,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` DROP `comment`;"}
{"level":20,"time":1701291278330,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_variables' AND constraint_name = 'template_variables_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291278357,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` DROP FOREIGN KEY `template_variables_ibfk_1`;"}
{"level":20,"time":1701291278386,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291278426,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_variables` FROM `aol_label-print`"}
{"level":20,"time":1701291278453,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291278479,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media`;"}
{"level":20,"time":1701291278479,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291278574,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291278602,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `columns` `columns` INTEGER NOT NULL;"}
{"level":20,"time":1701291278629,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `spacing` `spacing` INTEGER NOT NULL;"}
{"level":20,"time":1701291278658,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701291278685,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media` FROM `aol_label-print`"}
{"level":20,"time":1701291278712,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media_templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291278738,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media_templates`;"}
{"level":20,"time":1701291278738,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media_templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291278841,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media_templates` FROM `aol_label-print`"}
{"level":20,"time":1701291278892,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'printers' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291278918,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `printers`;"}
{"level":20,"time":1701291278918,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'printers' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291279014,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291279041,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `type` `type` ENUM('zpl') NOT NULL;"}
{"level":20,"time":1701291279084,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `density` `density` INTEGER NOT NULL;"}
{"level":20,"time":1701291279111,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_addr` `socket_addr` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291279139,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_port` `socket_port` INTEGER NOT NULL;"}
{"level":20,"time":1701291279166,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='printers' AND constraint_name = 'printers_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291279193,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` DROP FOREIGN KEY `printers_ibfk_1`;"}
{"level":20,"time":1701291279221,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` ADD FOREIGN KEY (`mediumId`) REFERENCES `media` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291279511,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `printers` FROM `aol_label-print`"}
{"level":20,"time":1701291279604,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'queues' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291279630,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `queues`;"}
{"level":20,"time":1701291279630,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'queues' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291279726,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291279754,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `auto_print` `auto_print` TINYINT(1) NOT NULL DEFAULT false;"}
{"level":20,"time":1701291279783,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='queues' AND constraint_name = 'queues_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291279810,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` DROP FOREIGN KEY `queues_ibfk_1`;"}
{"level":20,"time":1701291279838,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` ADD FOREIGN KEY (`printerId`) REFERENCES `printers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291280127,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `queues` FROM `aol_label-print`"}
{"level":20,"time":1701291280222,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291280251,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `permissions`;"}
{"level":20,"time":1701291280251,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291280347,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291280375,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='permissions' AND constraint_name = 'permissions_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291280402,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` DROP FOREIGN KEY `permissions_ibfk_1`;"}
{"level":20,"time":1701291280432,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` ADD FOREIGN KEY (`parentPermission`) REFERENCES `permissions` (`permission`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291280723,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `permissions` FROM `aol_label-print`"}
{"level":20,"time":1701291280816,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'apps' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291280842,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `apps`;"}
{"level":20,"time":1701291280842,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'apps' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291280940,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291280969,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `token` `token` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291280996,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `apps` FROM `aol_label-print`"}
{"level":20,"time":1701291281022,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'app_permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291281048,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `app_permissions`;"}
{"level":20,"time":1701291281049,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'app_permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291281142,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `app_permissions` FROM `aol_label-print`"}
{"level":20,"time":1701291281169,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'jobs' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291281195,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `jobs`;"}
{"level":20,"time":1701291281195,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'jobs' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291281299,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_35' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291281325,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_35`;"}
{"level":20,"time":1701291281353,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`queueId`) REFERENCES `queues` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701291281391,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_36' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291281418,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_36`;"}
{"level":20,"time":1701291281447,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291281488,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `jobs` FROM `aol_label-print`"}
{"level":20,"time":1701291281515,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'job_values' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291281541,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `job_values`;"}
{"level":20,"time":1701291281541,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'job_values' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291281639,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `key` `key` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291281666,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `value` `value` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291281693,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='job_values' AND constraint_name = 'job_values_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291281719,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` DROP FOREIGN KEY `job_values_ibfk_1`;"}
{"level":20,"time":1701291281746,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` ADD FOREIGN KEY (`jobId`) REFERENCES `jobs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701291281785,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `job_values` FROM `aol_label-print`"}
{"level":20,"time":1701291281815,"pid":33104,"hostname":"Desktop-Kai","msg":"Executing (default): INSERT INTO `permissions` (`permission`,`name`) VALUES ('settings','edit all Settings'),('settings.printer','edit Printers'),('settings.media','edit Medias'),('settings.queues','edit Queues'),('settings.labels','edit Lables') ON DUPLICATE KEY UPDATE `name`=VALUES(`name`);"}
{"level":30,"time":1701291281842,"pid":33104,"hostname":"Desktop-Kai","msg":"All models were synchronized successfully."}
{"level":20,"time":1701291632473,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT 1+1 AS result"}
{"level":30,"time":1701291632501,"pid":21112,"hostname":"Desktop-Kai","msg":"Connection has been established successfully."}
{"level":20,"time":1701291632503,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291632532,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `templates`;"}
{"level":20,"time":1701291632586,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291632639,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291632690,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701291632790,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `height` `height` INTEGER NOT NULL;"}
{"level":20,"time":1701291632819,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `templates` FROM `aol_label-print`"}
{"level":20,"time":1701291632848,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_elements' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291632875,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_elements`;"}
{"level":20,"time":1701291632875,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_elements' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291632978,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291633006,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `type` `type` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291633034,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `config` `config` JSON NOT NULL;"}
{"level":20,"time":1701291633063,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `comment` `comment` TEXT NOT NULL;"}
{"level":20,"time":1701291633091,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_elements' AND constraint_name = 'template_elements_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291633119,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` DROP FOREIGN KEY `template_elements_ibfk_1`;"}
{"level":20,"time":1701291633148,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291633187,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_elements` FROM `aol_label-print`"}
{"level":20,"time":1701291633214,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_variables' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291633241,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_variables`;"}
{"level":20,"time":1701291633241,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_variables' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291633334,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` ADD `label` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291633365,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291633393,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `regex` `regex` TEXT NOT NULL;"}
{"level":20,"time":1701291633421,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `example` `example` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291633449,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `default` `default` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291633477,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE (REFERENCED_TABLE_NAME = 'template_variables' AND REFERENCED_TABLE_SCHEMA = 'aol_label-print' AND REFERENCED_COLUMN_NAME = 'description') OR (TABLE_NAME = 'template_variables' AND TABLE_SCHEMA = 'aol_label-print' AND COLUMN_NAME = 'description' AND REFERENCED_TABLE_NAME IS NOT NULL)"}
{"level":20,"time":1701291633509,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` DROP `description`;"}
{"level":20,"time":1701291633537,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_variables' AND constraint_name = 'template_variables_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291633565,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` DROP FOREIGN KEY `template_variables_ibfk_1`;"}
{"level":20,"time":1701291633593,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291633635,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_variables` FROM `aol_label-print`"}
{"level":20,"time":1701291633663,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291633690,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media`;"}
{"level":20,"time":1701291633690,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291633796,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291633825,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `columns` `columns` INTEGER NOT NULL;"}
{"level":20,"time":1701291633853,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `spacing` `spacing` INTEGER NOT NULL;"}
{"level":20,"time":1701291633881,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701291633909,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media` FROM `aol_label-print`"}
{"level":20,"time":1701291633936,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media_templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291633963,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media_templates`;"}
{"level":20,"time":1701291633963,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media_templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291634060,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media_templates` FROM `aol_label-print`"}
{"level":20,"time":1701291634111,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'printers' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291634137,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `printers`;"}
{"level":20,"time":1701291634138,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'printers' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291634232,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291634260,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `type` `type` ENUM('zpl') NOT NULL;"}
{"level":20,"time":1701291634288,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `density` `density` INTEGER NOT NULL;"}
{"level":20,"time":1701291634317,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_addr` `socket_addr` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291634345,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_port` `socket_port` INTEGER NOT NULL;"}
{"level":20,"time":1701291634372,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='printers' AND constraint_name = 'printers_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291634399,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` DROP FOREIGN KEY `printers_ibfk_1`;"}
{"level":20,"time":1701291634429,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` ADD FOREIGN KEY (`mediumId`) REFERENCES `media` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291634470,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `printers` FROM `aol_label-print`"}
{"level":20,"time":1701291634498,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'queues' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291634524,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `queues`;"}
{"level":20,"time":1701291634524,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'queues' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291634618,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291634647,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `auto_print` `auto_print` TINYINT(1) NOT NULL DEFAULT false;"}
{"level":20,"time":1701291634688,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='queues' AND constraint_name = 'queues_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291634716,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` DROP FOREIGN KEY `queues_ibfk_1`;"}
{"level":20,"time":1701291634745,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` ADD FOREIGN KEY (`printerId`) REFERENCES `printers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291634785,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `queues` FROM `aol_label-print`"}
{"level":20,"time":1701291634812,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291634840,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `permissions`;"}
{"level":20,"time":1701291634840,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291634946,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291634975,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='permissions' AND constraint_name = 'permissions_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291635002,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` DROP FOREIGN KEY `permissions_ibfk_1`;"}
{"level":20,"time":1701291635031,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` ADD FOREIGN KEY (`parentPermission`) REFERENCES `permissions` (`permission`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291635074,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `permissions` FROM `aol_label-print`"}
{"level":20,"time":1701291635101,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'apps' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291635128,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `apps`;"}
{"level":20,"time":1701291635128,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'apps' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291635225,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291635254,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `token` `token` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291635282,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `apps` FROM `aol_label-print`"}
{"level":20,"time":1701291635309,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'app_permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291635336,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `app_permissions`;"}
{"level":20,"time":1701291635336,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'app_permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291635440,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `app_permissions` FROM `aol_label-print`"}
{"level":20,"time":1701291635467,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'jobs' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291635494,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `jobs`;"}
{"level":20,"time":1701291635494,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'jobs' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291635596,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_37' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291635625,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_37`;"}
{"level":20,"time":1701291635654,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`queueId`) REFERENCES `queues` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701291635697,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_38' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291635724,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_38`;"}
{"level":20,"time":1701291635753,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291635794,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `jobs` FROM `aol_label-print`"}
{"level":20,"time":1701291635821,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'job_values' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291635848,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `job_values`;"}
{"level":20,"time":1701291635848,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'job_values' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291635954,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `key` `key` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291635983,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `value` `value` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291636011,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='job_values' AND constraint_name = 'job_values_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291636037,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` DROP FOREIGN KEY `job_values_ibfk_1`;"}
{"level":20,"time":1701291636066,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` ADD FOREIGN KEY (`jobId`) REFERENCES `jobs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701291636107,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `job_values` FROM `aol_label-print`"}
{"level":20,"time":1701291636138,"pid":21112,"hostname":"Desktop-Kai","msg":"Executing (default): INSERT INTO `permissions` (`permission`,`name`) VALUES ('settings','edit all Settings'),('settings.printer','edit Printers'),('settings.media','edit Medias'),('settings.queues','edit Queues'),('settings.labels','edit Lables') ON DUPLICATE KEY UPDATE `name`=VALUES(`name`);"}
{"level":30,"time":1701291636165,"pid":21112,"hostname":"Desktop-Kai","msg":"All models were synchronized successfully."}
{"level":20,"time":1701291706579,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT 1+1 AS result"}
{"level":30,"time":1701291706608,"pid":14148,"hostname":"Desktop-Kai","msg":"Connection has been established successfully."}
{"level":20,"time":1701291706610,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291706638,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `templates`;"}
{"level":20,"time":1701291706691,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291706744,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291706797,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701291706895,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `height` `height` INTEGER NOT NULL;"}
{"level":20,"time":1701291706924,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `templates` FROM `aol_label-print`"}
{"level":20,"time":1701291706953,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_elements' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291706980,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_elements`;"}
{"level":20,"time":1701291706980,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_elements' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291707084,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291707133,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `type` `type` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291707161,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `config` `config` JSON NOT NULL;"}
{"level":20,"time":1701291707189,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `comment` `comment` TEXT NOT NULL;"}
{"level":20,"time":1701291707218,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_elements' AND constraint_name = 'template_elements_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291707246,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` DROP FOREIGN KEY `template_elements_ibfk_1`;"}
{"level":20,"time":1701291707275,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291707313,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_elements` FROM `aol_label-print`"}
{"level":20,"time":1701291707340,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_variables' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291707367,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_variables`;"}
{"level":20,"time":1701291707367,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_variables' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291707474,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291707503,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `regex` `regex` TEXT NOT NULL;"}
{"level":20,"time":1701291707531,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `example` `example` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291707559,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `default` `default` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291707587,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_variables' AND constraint_name = 'template_variables_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291707614,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` DROP FOREIGN KEY `template_variables_ibfk_1`;"}
{"level":20,"time":1701291707643,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291707681,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `label` `label` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291707709,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_variables` FROM `aol_label-print`"}
{"level":20,"time":1701291707737,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291707764,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media`;"}
{"level":20,"time":1701291707764,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291707864,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291707892,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `columns` `columns` INTEGER NOT NULL;"}
{"level":20,"time":1701291707920,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `spacing` `spacing` INTEGER NOT NULL;"}
{"level":20,"time":1701291707948,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701291707976,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media` FROM `aol_label-print`"}
{"level":20,"time":1701291708002,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media_templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291708029,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media_templates`;"}
{"level":20,"time":1701291708029,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media_templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291708129,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media_templates` FROM `aol_label-print`"}
{"level":20,"time":1701291708156,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'printers' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291708183,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `printers`;"}
{"level":20,"time":1701291708183,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'printers' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291708282,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291708310,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `type` `type` ENUM('zpl') NOT NULL;"}
{"level":20,"time":1701291708337,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `density` `density` INTEGER NOT NULL;"}
{"level":20,"time":1701291708365,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_addr` `socket_addr` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291708394,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_port` `socket_port` INTEGER NOT NULL;"}
{"level":20,"time":1701291708423,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='printers' AND constraint_name = 'printers_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291708450,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` DROP FOREIGN KEY `printers_ibfk_1`;"}
{"level":20,"time":1701291708480,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` ADD FOREIGN KEY (`mediumId`) REFERENCES `media` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291708772,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `printers` FROM `aol_label-print`"}
{"level":20,"time":1701291708874,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'queues' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291708901,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `queues`;"}
{"level":20,"time":1701291708901,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'queues' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291708997,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291709027,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `auto_print` `auto_print` TINYINT(1) NOT NULL DEFAULT false;"}
{"level":20,"time":1701291709055,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='queues' AND constraint_name = 'queues_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291709082,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` DROP FOREIGN KEY `queues_ibfk_1`;"}
{"level":20,"time":1701291709111,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` ADD FOREIGN KEY (`printerId`) REFERENCES `printers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291709154,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `queues` FROM `aol_label-print`"}
{"level":20,"time":1701291709181,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291709208,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `permissions`;"}
{"level":20,"time":1701291709208,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291709306,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291709333,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='permissions' AND constraint_name = 'permissions_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291709360,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` DROP FOREIGN KEY `permissions_ibfk_1`;"}
{"level":20,"time":1701291709388,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` ADD FOREIGN KEY (`parentPermission`) REFERENCES `permissions` (`permission`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291709676,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `permissions` FROM `aol_label-print`"}
{"level":20,"time":1701291709772,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'apps' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291709799,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `apps`;"}
{"level":20,"time":1701291709799,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'apps' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291709897,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291709927,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `token` `token` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291709955,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `apps` FROM `aol_label-print`"}
{"level":20,"time":1701291709983,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'app_permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291710009,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `app_permissions`;"}
{"level":20,"time":1701291710010,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'app_permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291710119,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `app_permissions` FROM `aol_label-print`"}
{"level":20,"time":1701291710146,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'jobs' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291710173,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `jobs`;"}
{"level":20,"time":1701291710174,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'jobs' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291710271,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_39' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291710298,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_39`;"}
{"level":20,"time":1701291710327,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`queueId`) REFERENCES `queues` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701291710367,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_40' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291710394,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_40`;"}
{"level":20,"time":1701291710423,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291710464,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `jobs` FROM `aol_label-print`"}
{"level":20,"time":1701291710491,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'job_values' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291710518,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `job_values`;"}
{"level":20,"time":1701291710518,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'job_values' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291710613,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `key` `key` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291710641,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `value` `value` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291710670,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='job_values' AND constraint_name = 'job_values_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291710696,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` DROP FOREIGN KEY `job_values_ibfk_1`;"}
{"level":20,"time":1701291710726,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` ADD FOREIGN KEY (`jobId`) REFERENCES `jobs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701291710741,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291710776,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701291710802,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `job_values` FROM `aol_label-print`"}
{"level":20,"time":1701291710856,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): INSERT INTO `permissions` (`permission`,`name`) VALUES ('settings','edit all Settings'),('settings.printer','edit Printers'),('settings.media','edit Medias'),('settings.queues','edit Queues'),('settings.labels','edit Lables') ON DUPLICATE KEY UPDATE `name`=VALUES(`name`);"}
{"level":30,"time":1701291710883,"pid":14148,"hostname":"Desktop-Kai","msg":"All models were synchronized successfully."}
{"level":20,"time":1701291733366,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `label`, `regex`, `example`, `default`, `templateId` FROM `template_variables` AS `variable` WHERE `variable`.`id` = '6ba408d8-46ab-4228-bf24-e810b474a4bf';"}
{"level":20,"time":1701291733398,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): UPDATE `template_variables` SET `name`=?,`label`=?,`example`=?,`default`=? WHERE `id` = ?"}
{"level":20,"time":1701291733476,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701291735820,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291735848,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701291747036,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291747122,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId`;"}
{"level":20,"time":1701291749006,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291749033,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `type`, `density`, `socket_addr`, `socket_port`, `mediumId` FROM `printers` AS `printer`;"}
{"level":20,"time":1701291749061,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template`;"}
{"level":20,"time":1701291749088,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue` WHERE `queue`.`id` = '8b6a3513-d1e6-42e5-94fc-ef895a94ef51';"}
{"level":20,"time":1701291749154,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `type`, `density`, `socket_addr`, `socket_port`, `mediumId` FROM `printers` AS `printer`;"}
{"level":20,"time":1701291752338,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291752413,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId`;"}
{"level":20,"time":1701291753509,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291753546,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701291798138,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291798165,"pid":14148,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701291972914,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT 1+1 AS result"}
{"level":30,"time":1701291972942,"pid":26724,"hostname":"Desktop-Kai","msg":"Connection has been established successfully."}
{"level":20,"time":1701291972947,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291972976,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `templates`;"}
{"level":20,"time":1701291973029,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291973082,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291973134,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701291973230,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `height` `height` INTEGER NOT NULL;"}
{"level":20,"time":1701291973258,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `templates` FROM `aol_label-print`"}
{"level":20,"time":1701291973286,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_elements' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291973313,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_elements`;"}
{"level":20,"time":1701291973313,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_elements' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291973419,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291973469,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `type` `type` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291973498,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `config` `config` JSON NOT NULL;"}
{"level":20,"time":1701291973526,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `comment` `comment` TEXT NOT NULL;"}
{"level":20,"time":1701291973555,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_elements' AND constraint_name = 'template_elements_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291973584,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` DROP FOREIGN KEY `template_elements_ibfk_1`;"}
{"level":20,"time":1701291973613,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291973658,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_elements` FROM `aol_label-print`"}
{"level":20,"time":1701291973685,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_variables' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291973712,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_variables`;"}
{"level":20,"time":1701291973712,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_variables' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291973807,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291973837,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `regex` `regex` TEXT NOT NULL;"}
{"level":20,"time":1701291973865,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `example` `example` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291973893,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `default` `default` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291973922,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_variables' AND constraint_name = 'template_variables_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291973949,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` DROP FOREIGN KEY `template_variables_ibfk_1`;"}
{"level":20,"time":1701291973977,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291974017,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `label` `label` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291974046,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_variables` FROM `aol_label-print`"}
{"level":20,"time":1701291974073,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291974100,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media`;"}
{"level":20,"time":1701291974100,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291974195,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291974223,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `columns` `columns` INTEGER NOT NULL;"}
{"level":20,"time":1701291974252,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `spacing` `spacing` INTEGER NOT NULL;"}
{"level":20,"time":1701291974280,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701291974309,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media` FROM `aol_label-print`"}
{"level":20,"time":1701291974336,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media_templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291974362,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media_templates`;"}
{"level":20,"time":1701291974362,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media_templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291974413,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291974448,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media_templates` FROM `aol_label-print`"}
{"level":20,"time":1701291974478,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701291974498,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'printers' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291974552,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `printers`;"}
{"level":20,"time":1701291974552,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'printers' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291974658,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291974687,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `type` `type` ENUM('zpl') NOT NULL;"}
{"level":20,"time":1701291974716,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `density` `density` INTEGER NOT NULL;"}
{"level":20,"time":1701291974743,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_addr` `socket_addr` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291974770,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_port` `socket_port` INTEGER NOT NULL;"}
{"level":20,"time":1701291974799,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='printers' AND constraint_name = 'printers_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291974826,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` DROP FOREIGN KEY `printers_ibfk_1`;"}
{"level":20,"time":1701291974855,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` ADD FOREIGN KEY (`mediumId`) REFERENCES `media` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291974899,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `printers` FROM `aol_label-print`"}
{"level":20,"time":1701291974926,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'queues' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291974953,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `queues`;"}
{"level":20,"time":1701291974953,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'queues' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291975059,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291975088,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `auto_print` `auto_print` TINYINT(1) NOT NULL DEFAULT false;"}
{"level":20,"time":1701291975117,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='queues' AND constraint_name = 'queues_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291975144,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` DROP FOREIGN KEY `queues_ibfk_1`;"}
{"level":20,"time":1701291975172,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` ADD FOREIGN KEY (`printerId`) REFERENCES `printers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291975213,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `queues` FROM `aol_label-print`"}
{"level":20,"time":1701291975241,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291975267,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `permissions`;"}
{"level":20,"time":1701291975267,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291975369,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291975418,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='permissions' AND constraint_name = 'permissions_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291975444,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` DROP FOREIGN KEY `permissions_ibfk_1`;"}
{"level":20,"time":1701291975473,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` ADD FOREIGN KEY (`parentPermission`) REFERENCES `permissions` (`permission`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291975513,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `permissions` FROM `aol_label-print`"}
{"level":20,"time":1701291975540,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'apps' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291975567,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `apps`;"}
{"level":20,"time":1701291975567,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'apps' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291975666,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291975694,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `token` `token` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291975722,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `apps` FROM `aol_label-print`"}
{"level":20,"time":1701291975749,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'app_permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291975776,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `app_permissions`;"}
{"level":20,"time":1701291975776,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'app_permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291975868,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `app_permissions` FROM `aol_label-print`"}
{"level":20,"time":1701291975895,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'jobs' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291975922,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `jobs`;"}
{"level":20,"time":1701291975923,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'jobs' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291976023,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_41' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291976049,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_41`;"}
{"level":20,"time":1701291976078,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`queueId`) REFERENCES `queues` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701291976120,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_42' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291976147,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_42`;"}
{"level":20,"time":1701291976176,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701291976217,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `jobs` FROM `aol_label-print`"}
{"level":20,"time":1701291976245,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'job_values' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701291976272,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `job_values`;"}
{"level":20,"time":1701291976272,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'job_values' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701291976378,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `key` `key` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291976406,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `value` `value` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701291976436,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='job_values' AND constraint_name = 'job_values_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701291976463,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` DROP FOREIGN KEY `job_values_ibfk_1`;"}
{"level":20,"time":1701291976491,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` ADD FOREIGN KEY (`jobId`) REFERENCES `jobs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701291976534,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `job_values` FROM `aol_label-print`"}
{"level":20,"time":1701291976562,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): INSERT INTO `permissions` (`permission`,`name`) VALUES ('settings','edit all Settings'),('settings.printer','edit Printers'),('settings.media','edit Medias'),('settings.queues','edit Queues'),('settings.labels','edit Lables') ON DUPLICATE KEY UPDATE `name`=VALUES(`name`);"}
{"level":30,"time":1701291976589,"pid":26724,"hostname":"Desktop-Kai","msg":"All models were synchronized successfully."}
{"level":20,"time":1701291978122,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701291978150,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701291996889,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701291996919,"pid":26724,"hostname":"Desktop-Kai","msg":"Executing (default): UPDATE `templates` SET `name`=?,`width`=?,`height`=? WHERE `id` = ?"}
{"level":20,"time":1701292034803,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT 1+1 AS result"}
{"level":30,"time":1701292034831,"pid":15188,"hostname":"Desktop-Kai","msg":"Connection has been established successfully."}
{"level":20,"time":1701292034834,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292034862,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `templates`;"}
{"level":20,"time":1701292034914,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292034966,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292035026,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701292035119,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `height` `height` INTEGER NOT NULL;"}
{"level":20,"time":1701292035147,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `templates` FROM `aol_label-print`"}
{"level":20,"time":1701292035176,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_elements' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292035203,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_elements`;"}
{"level":20,"time":1701292035203,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_elements' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292035306,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292035355,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `type` `type` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292035386,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `config` `config` JSON NOT NULL;"}
{"level":20,"time":1701292035414,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `comment` `comment` TEXT NOT NULL;"}
{"level":20,"time":1701292035444,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_elements' AND constraint_name = 'template_elements_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292035472,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` DROP FOREIGN KEY `template_elements_ibfk_1`;"}
{"level":20,"time":1701292035502,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292035541,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_elements` FROM `aol_label-print`"}
{"level":20,"time":1701292035569,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_variables' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292035596,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_variables`;"}
{"level":20,"time":1701292035596,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_variables' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292035694,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292035722,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `regex` `regex` TEXT NOT NULL;"}
{"level":20,"time":1701292035751,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `example` `example` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292035779,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `default` `default` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292035808,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_variables' AND constraint_name = 'template_variables_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292035835,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` DROP FOREIGN KEY `template_variables_ibfk_1`;"}
{"level":20,"time":1701292035864,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292035903,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `label` `label` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292035931,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_variables` FROM `aol_label-print`"}
{"level":20,"time":1701292035958,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292035984,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media`;"}
{"level":20,"time":1701292035984,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292036080,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292036109,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `columns` `columns` INTEGER NOT NULL;"}
{"level":20,"time":1701292036136,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `spacing` `spacing` INTEGER NOT NULL;"}
{"level":20,"time":1701292036164,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701292036195,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701292036196,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media` FROM `aol_label-print`"}
{"level":20,"time":1701292036227,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292036256,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media_templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292036311,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media_templates`;"}
{"level":20,"time":1701292036311,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media_templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292036421,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media_templates` FROM `aol_label-print`"}
{"level":20,"time":1701292036471,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'printers' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292036498,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `printers`;"}
{"level":20,"time":1701292036498,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'printers' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292036591,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292036618,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `type` `type` ENUM('zpl') NOT NULL;"}
{"level":20,"time":1701292036646,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `density` `density` INTEGER NOT NULL;"}
{"level":20,"time":1701292036675,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_addr` `socket_addr` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292036702,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_port` `socket_port` INTEGER NOT NULL;"}
{"level":20,"time":1701292036730,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='printers' AND constraint_name = 'printers_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292036756,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` DROP FOREIGN KEY `printers_ibfk_1`;"}
{"level":20,"time":1701292036786,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` ADD FOREIGN KEY (`mediumId`) REFERENCES `media` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292036827,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `printers` FROM `aol_label-print`"}
{"level":20,"time":1701292036853,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'queues' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292036879,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `queues`;"}
{"level":20,"time":1701292036880,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'queues' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292036980,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292037008,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `auto_print` `auto_print` TINYINT(1) NOT NULL DEFAULT false;"}
{"level":20,"time":1701292037037,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='queues' AND constraint_name = 'queues_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292037064,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` DROP FOREIGN KEY `queues_ibfk_1`;"}
{"level":20,"time":1701292037092,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` ADD FOREIGN KEY (`printerId`) REFERENCES `printers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292037383,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `queues` FROM `aol_label-print`"}
{"level":20,"time":1701292037482,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292037508,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `permissions`;"}
{"level":20,"time":1701292037509,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292037601,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292037630,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='permissions' AND constraint_name = 'permissions_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292037657,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` DROP FOREIGN KEY `permissions_ibfk_1`;"}
{"level":20,"time":1701292037685,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` ADD FOREIGN KEY (`parentPermission`) REFERENCES `permissions` (`permission`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292037727,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `permissions` FROM `aol_label-print`"}
{"level":20,"time":1701292037754,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'apps' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292037781,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `apps`;"}
{"level":20,"time":1701292037781,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'apps' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292037879,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292037907,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `token` `token` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292037935,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `apps` FROM `aol_label-print`"}
{"level":20,"time":1701292037961,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'app_permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292037988,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `app_permissions`;"}
{"level":20,"time":1701292037988,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'app_permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292038082,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `app_permissions` FROM `aol_label-print`"}
{"level":20,"time":1701292038108,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'jobs' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292038135,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `jobs`;"}
{"level":20,"time":1701292038135,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'jobs' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292038238,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_43' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292038264,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_43`;"}
{"level":20,"time":1701292038293,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`queueId`) REFERENCES `queues` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701292038332,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_44' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292038359,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_44`;"}
{"level":20,"time":1701292038389,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292038427,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `jobs` FROM `aol_label-print`"}
{"level":20,"time":1701292038453,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'job_values' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292038480,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `job_values`;"}
{"level":20,"time":1701292038480,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'job_values' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292038582,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `key` `key` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292038610,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `value` `value` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292038637,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='job_values' AND constraint_name = 'job_values_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292038664,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` DROP FOREIGN KEY `job_values_ibfk_1`;"}
{"level":20,"time":1701292038692,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` ADD FOREIGN KEY (`jobId`) REFERENCES `jobs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701292038732,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `job_values` FROM `aol_label-print`"}
{"level":20,"time":1701292038761,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): INSERT INTO `permissions` (`permission`,`name`) VALUES ('settings','edit all Settings'),('settings.printer','edit Printers'),('settings.media','edit Medias'),('settings.queues','edit Queues'),('settings.labels','edit Lables') ON DUPLICATE KEY UPDATE `name`=VALUES(`name`);"}
{"level":30,"time":1701292038788,"pid":15188,"hostname":"Desktop-Kai","msg":"All models were synchronized successfully."}
{"level":20,"time":1701292040465,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292040495,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): UPDATE `templates` SET `name`=? WHERE `id` = ?"}
{"level":20,"time":1701292040554,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292041851,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701292041878,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292043007,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701292043035,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292044514,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701292044542,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292047365,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292047393,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): UPDATE `templates` SET `name`=? WHERE `id` = ?"}
{"level":20,"time":1701292047424,"pid":15188,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292514229,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT 1+1 AS result"}
{"level":30,"time":1701292514257,"pid":5308,"hostname":"Desktop-Kai","msg":"Connection has been established successfully."}
{"level":20,"time":1701292514259,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292514288,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `templates`;"}
{"level":20,"time":1701292514341,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292514399,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292514451,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701292514545,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `templates` CHANGE `height` `height` INTEGER NOT NULL;"}
{"level":20,"time":1701292514574,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `templates` FROM `aol_label-print`"}
{"level":20,"time":1701292514602,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_elements' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292514629,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_elements`;"}
{"level":20,"time":1701292514630,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_elements' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292514734,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292514782,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `type` `type` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292514812,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `config` `config` JSON NOT NULL;"}
{"level":20,"time":1701292514841,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` CHANGE `comment` `comment` TEXT NOT NULL;"}
{"level":20,"time":1701292514870,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_elements' AND constraint_name = 'template_elements_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292514898,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` DROP FOREIGN KEY `template_elements_ibfk_1`;"}
{"level":20,"time":1701292514928,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_elements` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292514969,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_elements` FROM `aol_label-print`"}
{"level":20,"time":1701292514997,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'template_variables' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292515023,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `template_variables`;"}
{"level":20,"time":1701292515024,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'template_variables' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292515122,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292515151,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `regex` `regex` TEXT NOT NULL;"}
{"level":20,"time":1701292515179,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `example` `example` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292515207,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `default` `default` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292515235,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='template_variables' AND constraint_name = 'template_variables_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292515262,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` DROP FOREIGN KEY `template_variables_ibfk_1`;"}
{"level":20,"time":1701292515290,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292515330,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `template_variables` CHANGE `label` `label` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292515358,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `template_variables` FROM `aol_label-print`"}
{"level":20,"time":1701292515385,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292515411,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media`;"}
{"level":20,"time":1701292515412,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292515510,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292515539,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `columns` `columns` INTEGER NOT NULL;"}
{"level":20,"time":1701292515567,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `spacing` `spacing` INTEGER NOT NULL;"}
{"level":20,"time":1701292515596,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `media` CHANGE `width` `width` INTEGER NOT NULL;"}
{"level":20,"time":1701292515624,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media` FROM `aol_label-print`"}
{"level":20,"time":1701292515651,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'media_templates' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292515678,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `media_templates`;"}
{"level":20,"time":1701292515678,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'media_templates' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292515775,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `media_templates` FROM `aol_label-print`"}
{"level":20,"time":1701292515825,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'printers' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292515851,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `printers`;"}
{"level":20,"time":1701292515851,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'printers' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292515944,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292515972,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `type` `type` ENUM('zpl') NOT NULL;"}
{"level":20,"time":1701292516000,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `density` `density` INTEGER NOT NULL;"}
{"level":20,"time":1701292516027,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_addr` `socket_addr` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292516056,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` CHANGE `socket_port` `socket_port` INTEGER NOT NULL;"}
{"level":20,"time":1701292516084,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='printers' AND constraint_name = 'printers_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292516110,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` DROP FOREIGN KEY `printers_ibfk_1`;"}
{"level":20,"time":1701292516139,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `printers` ADD FOREIGN KEY (`mediumId`) REFERENCES `media` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292516179,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `printers` FROM `aol_label-print`"}
{"level":20,"time":1701292516206,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'queues' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292516232,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `queues`;"}
{"level":20,"time":1701292516232,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'queues' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292516333,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292516361,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` CHANGE `auto_print` `auto_print` TINYINT(1) NOT NULL DEFAULT false;"}
{"level":20,"time":1701292516389,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='queues' AND constraint_name = 'queues_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292516416,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` DROP FOREIGN KEY `queues_ibfk_1`;"}
{"level":20,"time":1701292516445,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `queues` ADD FOREIGN KEY (`printerId`) REFERENCES `printers` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292516484,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `queues` FROM `aol_label-print`"}
{"level":20,"time":1701292516511,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292516538,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `permissions`;"}
{"level":20,"time":1701292516538,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292516644,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292516694,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='permissions' AND constraint_name = 'permissions_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292516721,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` DROP FOREIGN KEY `permissions_ibfk_1`;"}
{"level":20,"time":1701292516749,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `permissions` ADD FOREIGN KEY (`parentPermission`) REFERENCES `permissions` (`permission`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292516787,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `permissions` FROM `aol_label-print`"}
{"level":20,"time":1701292516814,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'apps' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292516841,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `apps`;"}
{"level":20,"time":1701292516841,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'apps' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292516939,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `name` `name` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292516967,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `apps` CHANGE `token` `token` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292516995,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `apps` FROM `aol_label-print`"}
{"level":20,"time":1701292517022,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'app_permissions' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292517049,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `app_permissions`;"}
{"level":20,"time":1701292517049,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'app_permissions' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292517142,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `app_permissions` FROM `aol_label-print`"}
{"level":20,"time":1701292517169,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'jobs' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292517196,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `jobs`;"}
{"level":20,"time":1701292517196,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'jobs' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292517298,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_45' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292517325,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_45`;"}
{"level":20,"time":1701292517353,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`queueId`) REFERENCES `queues` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701292517393,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='jobs' AND constraint_name = 'jobs_ibfk_46' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292517420,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` DROP FOREIGN KEY `jobs_ibfk_46`;"}
{"level":20,"time":1701292517448,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `jobs` ADD FOREIGN KEY (`templateId`) REFERENCES `templates` (`id`) ON DELETE SET NULL ON UPDATE CASCADE;"}
{"level":20,"time":1701292517489,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `jobs` FROM `aol_label-print`"}
{"level":20,"time":1701292517516,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_NAME = 'job_values' AND TABLE_SCHEMA = 'aol_label-print'"}
{"level":20,"time":1701292517542,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW FULL COLUMNS FROM `job_values`;"}
{"level":20,"time":1701292517542,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_NAME as constraint_name,CONSTRAINT_NAME as constraintName,CONSTRAINT_SCHEMA as constraintSchema,CONSTRAINT_SCHEMA as constraintCatalog,TABLE_NAME as tableName,TABLE_SCHEMA as tableSchema,TABLE_SCHEMA as tableCatalog,COLUMN_NAME as columnName,REFERENCED_TABLE_SCHEMA as referencedTableSchema,REFERENCED_TABLE_SCHEMA as referencedTableCatalog,REFERENCED_TABLE_NAME as referencedTableName,REFERENCED_COLUMN_NAME as referencedColumnName FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE where TABLE_NAME = 'job_values' AND CONSTRAINT_NAME!='PRIMARY' AND CONSTRAINT_SCHEMA='aol_label-print' AND REFERENCED_TABLE_NAME IS NOT NULL;"}
{"level":20,"time":1701292517639,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `key` `key` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292517668,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` CHANGE `value` `value` VARCHAR(255) NOT NULL;"}
{"level":20,"time":1701292517695,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT CONSTRAINT_CATALOG AS constraintCatalog, CONSTRAINT_NAME AS constraintName, CONSTRAINT_SCHEMA AS constraintSchema, CONSTRAINT_TYPE AS constraintType, TABLE_NAME AS tableName, TABLE_SCHEMA AS tableSchema from INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE table_name='job_values' AND constraint_name = 'job_values_ibfk_1' AND TABLE_SCHEMA = 'aol_label-print';"}
{"level":20,"time":1701292517722,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` DROP FOREIGN KEY `job_values_ibfk_1`;"}
{"level":20,"time":1701292517746,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701292517750,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): ALTER TABLE `job_values` ADD FOREIGN KEY (`jobId`) REFERENCES `jobs` (`id`) ON DELETE CASCADE ON UPDATE CASCADE;"}
{"level":20,"time":1701292517781,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292517807,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SHOW INDEX FROM `job_values` FROM `aol_label-print`"}
{"level":20,"time":1701292517865,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): INSERT INTO `permissions` (`permission`,`name`) VALUES ('settings','edit all Settings'),('settings.printer','edit Printers'),('settings.media','edit Medias'),('settings.queues','edit Queues'),('settings.labels','edit Lables') ON DUPLICATE KEY UPDATE `name`=VALUES(`name`);"}
{"level":30,"time":1701292517897,"pid":5308,"hostname":"Desktop-Kai","msg":"All models were synchronized successfully."}
{"level":20,"time":1701292519136,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292519171,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292532194,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292532225,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292533191,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292533224,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292534619,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292534651,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292542840,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292542873,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292549114,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292549146,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292555536,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292555567,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292611600,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `width`, `height` FROM `templates` AS `template` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292611631,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId` WHERE `template`.`id` = '919ccfe7-afc3-49b0-b24a-d790c0233f8e';"}
{"level":20,"time":1701292659266,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `id`, `name`, `auto_print`, `printerId` FROM `queues` AS `queue`;"}
{"level":20,"time":1701292659372,"pid":5308,"hostname":"Desktop-Kai","msg":"Executing (default): SELECT `template`.`id`, `template`.`name`, `template`.`width`, `template`.`height`, `elements`.`id` AS `elements.id`, `elements`.`name` AS `elements.name`, `elements`.`type` AS `elements.type`, `elements`.`config` AS `elements.config`, `elements`.`comment` AS `elements.comment`, `elements`.`templateId` AS `elements.templateId`, `variables`.`id` AS `variables.id`, `variables`.`name` AS `variables.name`, `variables`.`label` AS `variables.label`, `variables`.`regex` AS `variables.regex`, `variables`.`example` AS `variables.example`, `variables`.`default` AS `variables.default`, `variables`.`templateId` AS `variables.templateId` FROM `templates` AS `template` LEFT OUTER JOIN `template_elements` AS `elements` ON `template`.`id` = `elements`.`templateId` LEFT OUTER JOIN `template_variables` AS `variables` ON `template`.`id` = `variables`.`templateId`;"}

View file

@ -1,65 +0,0 @@
// Load WebServer
import express from "express";
// Load Templating Engine
import Nunjucks from "nunjucks";
// import WebServer Routes
import {
Routes as PrinterAPI
} from "./routes/api.printer.mjs";
import {
Routes as TemplateAPI
} from "./routes/api.templates.mjs";
import {
Routes as MediaApi
} from "./routes/api.media.mjs";
import {
Routes as QueueApi
} from "./routes/api.queue.mjs";
import {
Routes as UIRouter
} from "./routes/ui.settings.mjs";
// Import Database Models & start Database-Connection
import './sequelize/db_conn.mjs';
// Initialize WebServer
const app = express();
const port = 3000;
// Middleware, um CORS zu aktivieren
app.use((req, res, next) => {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE");
res.header("Access-Control-Allow-Headers", "Content-Type, Authorization");
next();
});
// Configure Templating Engine
Nunjucks.configure('./', {
autoescape: false,
express: app,
noCache: true
});
// Mount Middlewares to WebServer
app.use(express.json());
app.use(express.static('./assets/'))
// Mount Routes to WebServer
app.use('/', UIRouter);
app.use('/api', PrinterAPI);
app.use('/api', MediaApi);
app.use('/api', TemplateAPI);
app.use('/api', QueueApi);
// Server starten
app.listen(port, () => {
console.log(`Server is listening on port ${port}`);
});

2201
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,22 +0,0 @@
{
"name": "arzttelefon",
"version": "1.0.0",
"description": "",
"main": "master.mjs",
"scripts": {
"start": "npm i && node ./master.mjs"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"axios": "^1.3.4",
"express": "^4.18.2",
"jszpl": "^1.1.7",
"mysql2": "^3.6.2",
"node-json-db": "^2.2.0",
"nunjucks": "^3.2.4",
"pino": "^8.16.0",
"sequelize": "^6.33.0"
}
}

View file

@ -1,63 +0,0 @@
import {
Router
} from "express";
import {
Label,
Grid,
Text,
Line,
Box,
Circle,
Barcode,
PrintDensity,
Spacing
} from "jszpl";
import {
Printer as PrinterTable
} from "../sequelize/printer.model.mjs";
import {
Template as TemplateTable
} from "../sequelize/template.model.mjs";
import {
Medium as MediaTable
} from "../sequelize/media.model.mjs";
import {
Queue as QueueTable
} from "../sequelize/queue.model.mjs";
export var Routes = Router();
Routes.post('/generate-zpl', async function (Request, Response)
{
const label = new Label();
label.printDensity = new PrintDensity(8);
label.width = 100;
label.height = 50;
label.padding = new Spacing(10);
const text = new Text();
label.content.push(text);
text.fontFamily = new FontFamily(FontFamilyName.D);
text.text = 'Hello World!';
const zpl = label.generateZPL();
await PrinterTable.create({
name: Request.body.name,
socket_addr: Request.body.socket_addr,
socket_port: Request.body.socket_port,
density: Request.body.density,
type: "zpl"
});
Response.status(200);
Response.end();
})

View file

@ -1,100 +0,0 @@
import {
Router
} from "express";
import {
Medium as MediaTable
} from "../sequelize/media.model.mjs";
import {
Template as LabelTable
} from "../sequelize/template.model.mjs";
export var Routes = Router();
Routes.get('/media', async function (Request, Response)
{
let MediaList = await MediaTable.findAll();
MediaList.sort(function (a, b) {
if (a.name < b.name) return -1;
if (a.name > b.name) return 1;
return 0;
});
Response.send(MediaList);
})
Routes.get('/medium/:MediumID', async function (Request, Response)
{
Response.send(await MediaTable.findByPk(Request.params.MediumID));
})
Routes.post('/medium', async function (Request, Response)
{
let NewMedium = await MediaTable.create({
name: Request.body.name,
columns: Request.body.columns,
spacing: Request.body.spacing,
width: Request.body.width
});
Response.status(200);
Response.send(NewMedium);
})
Routes.put('/medium', async function (Request, Response)
{
let Medium = await MediaTable.findByPk(Request.body.mediumId);
await Medium.update({
name: Request.body.name,
columns: Request.body.columns,
spacing: Request.body.spacing,
width: Request.body.width
});
Response.status(200);
Response.send(Medium);
})
Routes.delete('/medium', async function (Request, Response)
{
let Medium = await MediaTable.findByPk(Request.body.mediumId);
await Medium.destroy();
Response.status(200);
Response.end();
})
Routes.put('/medium/label', async function (Request, Response)
{
let Medium = await MediaTable.findByPk(Request.body.mediumId);
let Label = await LabelTable.findByPk(Request.body.labelId);
await Medium.addLabel(Label);
Response.status(200);
Response.end();
})
Routes.delete('/medium/label', async function (Request, Response)
{
let Medium = await MediaTable.findByPk(Request.body.mediumId);
let Label = await LabelTable.findByPk(Request.body.labelId);
await Medium.removeLabel(Label);
Response.status(200);
Response.end();
})

View file

@ -1,72 +0,0 @@
import {
Router
} from "express";
import {
Printer as PrinterTable
} from "../sequelize/printer.model.mjs";
export var Routes = Router();
Routes.get('/printers', async function (Request, Response) {
let PrinterList = await PrinterTable.findAll();
PrinterList.sort(function (a, b) {
if (a.name < b.name) return -1;
if (a.name > b.name) return 1;
return 0;
});
Response.send(PrinterList);
})
Routes.get('/printer/:PrinterID', async function (Request, Response) {
Response.send(await PrinterTable.findByPk(Request.params.PrinterID));
})
Routes.post('/printer', async function (Request, Response) {
await PrinterTable.create({
name: Request.body.name,
socket_addr: Request.body.socket_addr,
socket_port: Request.body.socket_port,
density: Request.body.density,
type: "zpl"
});
Response.status(200);
Response.end();
})
Routes.put('/printer', async function (Request, Response) {
await PrinterTable.update({
name: Request.body.name,
socket_addr: Request.body.socket_addr,
socket_port: Request.body.socket_port,
density: Request.body.density,
type: "ZPL"
}, {
where: {
id: Request.body.id
}
});
Response.status(200);
Response.end();
})
Routes.delete('/printer/:PrinterID', async function (Request, Response) {
await PrinterTable.destroy({
where: {
id: Request.params.PrinterID
}
});
Response.status(200);
Response.end();
})

View file

@ -1,92 +0,0 @@
import {
Router
} from "express";
import {
Queue as QueueTable
} from "../sequelize/queue.model.mjs";
import {
Printer as PrinterTable
} from "../sequelize/printer.model.mjs";
export var Routes = Router();
Routes.get('/queues', async function (Request, Response)
{
let QueueList = await QueueTable.findAll();
QueueList.sort(function (a, b) {
if (a.name < b.name) return -1;
if (a.name > b.name) return 1;
return 0;
});
Response.status(200);
Response.send(QueueList);
})
Routes.get('/queue/:QueueID', async function (Request, Response)
{
let Queue = await QueueTable.findByPk(Request.params.QueueID);
Response.status(200);
Response.send(Queue);
})
Routes.post('/queue', async function (Request, Response)
{
let Queue = await QueueTable.create({
name: Request.body.name
});
await Queue.setPrinter(Request.body.printerId)
Response.status(200);
Response.send(Queue);
})
Routes.put('/queue', async function (Request, Response)
{
let Queue = await QueueTable.findByPk(Request.body.id);
await Queue.update({
name: Request.body.name
});
if (Request.body.printerId == "null") {
await Queue.setPrinter(null);
} else {
await Queue.setPrinter(Request.body.printerId)
}
Response.status(200);
Response.send(Queue);
})
Routes.delete('/queue/:QueueID', async function (Request, Response)
{
await (await QueueTable.findByPk(Request.params.QueueID)).destroy();
Response.status(200);
Response.end();
})
Routes.put('/queue/printer', async function (Request, Response)
{
let Queue = await QueueTable.findByPk(Request.params.queueId);
let Printer = await PrinterTable.findByPk(Request.params.printerId);
await Queue.setPrinter(Printer);
Response.status(200);
Response.end();
})

View file

@ -1,177 +0,0 @@
import {
Router
} from "express";
import {
Template as TemplateTable,
Element as ElementTable,
Variable as VariableTable
} from "../sequelize/template.model.mjs";
export var Routes = Router();
Routes.get('/templates', async function (Request, Response)
{
let TemplateList = await TemplateTable.findAll({
include: [
ElementTable,
VariableTable
]
});
// convert to raw object
TemplateList = JSON.parse(JSON.stringify(TemplateList));
// sort templates by name
TemplateList.sort(function (a, b) {
if (a.name < b.name) return -1;
if (a.name > b.name) return 1;
return 0;
});
Response.send(TemplateList);
})
Routes.get('/template/:templateID', async function (Request, Response)
{
let template = await TemplateTable.findByPk(Request.params.templateID, {
include: [
ElementTable,
VariableTable
]
});
// parse JOSN configs from elements
template.elements = template.elements.map((element) => {
element.config = JSON.parse(element.config);
return element;
});
Response.send(template);
})
Routes.post('/template', async function (Request, Response)
{
let Template = await TemplateTable.create({
name: Request.body.name,
width: Request.body.width,
height: Request.body.height
});
Response.status(200);
Response.send(Template);
})
Routes.put('/template', async function (Request, Response)
{
let Template = await TemplateTable.findByPk(Request.body.templateId);
await Template.update({
name: Request.body.name,
width: Request.body.width,
height: Request.body.height
});
Response.status(200);
Response.send(Template);
})
Routes.delete('/template', async function (Request, Response)
{
let Template = await TemplateTable.findByPk(Request.body.templateId);
await Template.destroy();
Response.status(200);
Response.end();
})
Routes.post('/variable', async function (Request, Response)
{
let Template = await TemplateTable.findByPk(Request.body.templateId)
let Variable = await Template.createVariable({
name: Request.body.name,
label: Request.body.label,
regex: Request.body.regex,
example: Request.body.example,
default: Request.body.default
});
Response.status(200);
Response.send(Variable);
})
Routes.put('/variable', async function (Request, Response)
{
let Variable = await VariableTable.findByPk(Request.body.variableId)
Variable.update({
name: Request.body.name,
label: Request.body.label,
regex: Request.body.regex,
example: Request.body.example,
default: Request.body.default
});
Response.status(200);
Response.send(Variable);
})
Routes.delete('/variable', async function (Request, Response)
{
let Variable = await VariableTable.findByPk(Request.body.variableId)
await Variable.destroy();
Response.status(200);
Response.send({});
})
Routes.post('/element', async function (Request, Response)
{
let template = await TemplateTable.findByPk(Request.body.templateId)
let element = await template.createElement({
name: Request.body.name,
type: Request.body.type,
config: Request.body.config,
comment: ""
});
Response.status(200);
Response.send(element);
})
Routes.put('/element', async function (Request, Response) {
let element = await ElementTable.findByPk(Request.body.elementId)
element.update({
name: Request.body.name,
type: Request.body.type,
config: Request.body.config,
comment: Request.body.comment
});
Response.status(200);
Response.send(element);
})
Routes.delete('/element', async function (Request, Response)
{
let element = await ElementTable.findByPk(Request.body.elementId)
await element.destroy();
Response.status(200);
Response.send({});
})

View file

@ -1,110 +0,0 @@
import {
Router
} from "express";
import {
Template as TemplateTabel,
Element as ElementTable,
Variable as VariableTable
} from "../sequelize/template.model.mjs";
import {
Queue as QueueTable
} from "../sequelize/queue.model.mjs";
import {
Printer as PrinterTable
} from "../sequelize/printer.model.mjs";
import {
Template as TemplateTable
} from "../sequelize/template.model.mjs";
export var Routes = Router();
Routes.get("/printer", async (Request, Response) => {
let QueueList = await QueueTable.findAll();
Response.render(`ui/settings.printers.njk`, {
QueueList
});
});
Routes.get("/media", async (Request, Response) => {
let QueueList = await QueueTable.findAll();
Response.render(`ui/settings.media.njk`, {
QueueList
});
});
Routes.get("/queue", async (Request, Response) => {
let QueueList = await QueueTable.findAll();
Response.render(`ui/settings.queues.njk`, {
QueueList
});
});
Routes.get("/apps", async (Request, Response) => {
let QueueList = await QueueTable.findAll();
Response.render(`ui/settings.apps.njk`, {
QueueList
});
});
Routes.get("/queue/:QueueID", async (Request, Response) => {
let QueueList = await QueueTable.findAll();
let printers = await PrinterTable.findAll();
let templates = await TemplateTable.findAll();
let queueData = await QueueTable.findByPk(Request.params.QueueID);
Response.render(`ui/queue.njk`, {
QueueID: Request.params.QueueID,
QueueList,
printers,
templates: templates,
queueData: queueData
})
});
Routes.get("/templates", async (Request, Response) => {
let QueueList = await QueueTable.findAll();
Response.render(`ui/settings.templates.njk`, {
QueueList
})
});
Routes.get("/template/:templateId", async (Request, Response) => {
let queueList = await QueueTable.findAll();
let template = await TemplateTabel.findByPk(Request.params.templateId, {
include: [
VariableTable,
ElementTable
]
});
// convert to raw object
template = JSON.parse(JSON.stringify(template));
if (template == null) {
Response.render(`ui/error.njk`, {
Error: {
Code: "404",
Title: "Template not found.",
Message: "The template you're looking for does'nt exist.",
Link: "/templates"
}
})
} else {
Response.render(`ui/settings.template.njk`, {
template,
queueList
})
}
});

View file

@ -1,34 +0,0 @@
import {
DataTypes
} from 'sequelize';
import {
DBLogger,
LabelDB
} from './db_conn.mjs'
import {
Permission
} from "./perms.model.mjs";
export const App = LabelDB.define('app', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
token: {
type: DataTypes.STRING,
allowNull: false
}
}, {
timestamps: false
});
App.belongsToMany(Permission, { through: 'app_permissions', timestamps: false, foreignKey: 'app' });
Permission.belongsToMany(App, { through: 'app_permissions', timestamps: false, foreignKey: 'permission' });

View file

@ -1,44 +0,0 @@
import {
Sequelize
} from 'sequelize';
import Logger from 'pino';
export var DBLogger = Logger(Logger.destination('./logs/database.log'))
DBLogger.level = 10;
export var LabelDB = new Sequelize({
dialect: 'mysql',
host: '10.10.30.10',
port: "3306",
username: "label_print",
password: "mIhAha267oPiVoge1og5F2rub8nERI",
database: "aol_label-print",
logging: (Message) => DBLogger.debug(Message)
});
(async () => {
await import('./media.model.mjs');
await import('./printer.model.mjs');
await import('./template.model.mjs');
await import('./queue.model.mjs');
await import('./perms.model.mjs');
await import('./apps.model.mjs');
await import('./job.model.mjs');
try {
await LabelDB.authenticate();
DBLogger.info('Connection has been established successfully.');
} catch (error) {
DBLogger.error('Unable to connect to the database:', error);
}
try {
await LabelDB.sync({ force: false, alter: true });
DBLogger.info("All models were synchronized successfully.");
} catch (error) {
DBLogger.error(`Failed to synchronize models: ${error}`);
}
})();

View file

@ -1,85 +0,0 @@
import {
DataTypes
} from 'sequelize';
import {
LabelDB as Database
} from './db_conn.mjs'
import {
Queue
} from "./queue.model.mjs";
import {
Template,
Variable
} from "./template.model.mjs";
export const Job = Database.define('job', {
id: {
type: DataTypes.INTEGER,
autoIncrement: true,
primaryKey: true
}
}, {
timestamps: false
});
export const JobValue = Database.define('jobValue', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
key: {
type: DataTypes.STRING,
allowNull: false
},
value: {
type: DataTypes.STRING,
allowNull: false
}
}, {
tableName: 'job_values',
timestamps: false
});
JobValue.belongsTo(Job, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});
Job.hasMany(JobValue, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});
Job.belongsTo(Queue, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});
Queue.hasMany(Job, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});
Job.belongsTo(Template);
Template.hasMany(Job, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});

View file

@ -1,102 +0,0 @@
import {
DataTypes
} from 'sequelize';
import {
DBLogger,
LabelDB
} from './db_conn.mjs'
export const Label = LabelDB.define('label', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
width: {
type: DataTypes.INTEGER,
allowNull: false
},
height: {
type: DataTypes.INTEGER,
allowNull: false
}
}, {
tableName: 'labels',
timestamps: false
});
export const Element = LabelDB.define('element', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
type: {
type: DataTypes.STRING,
allowNull: false
},
config: {
type: DataTypes.JSON,
allowNull: false
},
comment: {
type: DataTypes.TEXT,
allowNull: false
}
}, {
tableName: 'label_elements',
timestamps: false
});
export const Variable = LabelDB.define('variable', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
regex: {
type: DataTypes.TEXT,
allowNull: false
},
comment: {
type: DataTypes.TEXT,
allowNull: false
}
}, {
tableName: 'label_variables',
timestamps: false
});
Element.belongsTo(Label);
Label.hasMany(Element, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});
Variable.belongsTo(Label);
Label.hasMany(Variable, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});
console.log(Label.associations);
for (let assoc of Object.keys(Label.associations)) {
for (let accessor of Object.keys(Label.associations[assoc].accessors)) {
console.log(Label.name + '.' + Label.associations[assoc].accessors[accessor] + '()');
}
}

View file

@ -1,54 +0,0 @@
import {
DataTypes
} from 'sequelize';
import {
DBLogger,
LabelDB
} from './db_conn.mjs'
import {
Template
} from "./template.model.mjs";
export const Medium = LabelDB.define('medium', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
columns: {
type: DataTypes.INTEGER,
allowNull: false
},
spacing: {
type: DataTypes.INTEGER,
allowNull: false
},
width: {
type: DataTypes.INTEGER,
allowNull: false
}
}, {
timestamps: false
});
Medium.belongsToMany(Template, {
through: 'media_templates',
onDelete: 'CASCADE',
onUpdate: 'CASCADE',
timestamps: false
});
Template.belongsToMany(Medium, {
through: 'media_templates',
onDelete: 'CASCADE',
onUpdate: 'CASCADE',
timestamps: false
});

View file

@ -1,57 +0,0 @@
import {
DataTypes
} from 'sequelize';
import {
DBLogger,
LabelDB
} from './db_conn.mjs'
export const Permission = LabelDB.define('permission', {
permission: {
type: DataTypes.STRING,
allowNull: false,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
}
}, {
timestamps: false
});
LabelDB.afterBulkSync(async () => {
await Permission.bulkCreate([
{
permission: 'settings',
name: 'edit all Settings'
},
{
permission: 'settings.printer',
name: 'edit Printers'
},
{
permission: 'settings.media',
name: 'edit Medias'
},
{
permission: 'settings.queues',
name: 'edit Queues'
},
{
permission: 'settings.labels',
name: 'edit Lables'
}
], {
updateOnDuplicate: [
'name'
]
});
})
Permission.belongsTo(Permission, { as: 'parent', foreignKey: 'parentPermission' });
Permission.hasMany(Permission, { as: 'child', foreignKey: 'parentPermission' });

View file

@ -1,49 +0,0 @@
import {
DataTypes
} from 'sequelize';
import {
DBLogger,
LabelDB
} from './db_conn.mjs'
import {
Medium
} from "./media.model.mjs";
export const Printer = LabelDB.define('printer', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
type: {
type: DataTypes.ENUM,
values: [
'zpl'
],
allowNull: false
},
density: {
type: DataTypes.INTEGER,
allowNull: false
},
socket_addr: {
type: DataTypes.STRING,
allowNull: false
},
socket_port: {
type: DataTypes.INTEGER,
allowNull: false
}
}, {
timestamps: false
});
Medium.hasMany(Printer);
Printer.belongsTo(Medium);

View file

@ -1,36 +0,0 @@
import {
DataTypes
} from 'sequelize';
import {
DBLogger,
LabelDB
} from './db_conn.mjs'
import {
Printer
} from "./printer.model.mjs";
export const Queue = LabelDB.define('queue', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
auto_print: {
type: DataTypes.BOOLEAN,
defaultValue: false,
allowNull: false
}
}, {
timestamps: false
});
Queue.belongsTo(Printer);
Printer.hasMany(Queue);

View file

@ -1,114 +0,0 @@
import {
DataTypes
} from 'sequelize';
import {
DBLogger,
LabelDB
} from './db_conn.mjs'
export const Template = LabelDB.define('template', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
width: {
type: DataTypes.INTEGER,
allowNull: false
},
height: {
type: DataTypes.INTEGER,
allowNull: false
}
}, {
tableName: 'templates',
timestamps: false
});
export const Element = LabelDB.define('element', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
type: {
type: DataTypes.STRING,
allowNull: false
},
config: {
type: DataTypes.JSON,
allowNull: false
},
comment: {
type: DataTypes.TEXT,
allowNull: false
}
}, {
tableName: 'template_elements',
timestamps: false
});
export const Variable = LabelDB.define('variable', {
id: {
type: DataTypes.UUID,
defaultValue: DataTypes.UUIDV4,
primaryKey: true
},
name: {
type: DataTypes.STRING,
allowNull: false
},
label: {
type: DataTypes.STRING,
allowNull: false
},
regex: {
type: DataTypes.TEXT,
allowNull: false
},
example: {
type: DataTypes.STRING,
allowNull: false
},
default: {
type: DataTypes.STRING,
allowNull: false
}
}, {
tableName: 'template_variables',
timestamps: false
});
Element.belongsTo(Template);
Template.hasMany(Element, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});
Variable.belongsTo(Template);
Template.hasMany(Variable, {
onDelete: 'CASCADE',
foreignKey: {
allowNull: false
}
});
// console.log(Template.associations);
// for (let assoc of Object.keys(Template.associations)) {
// for (let accessor of Object.keys(Template.associations[assoc].accessors)) {
// console.log(Template.name + '.' + Template.associations[assoc].accessors[accessor] + '()');
// }
// }

View file

@ -1,38 +0,0 @@
import {
SetMedia,
MediaAddLabel,
MediaRemoveLabel
} from "./functions/media.mjs";
import {
SetPrinter,
DeletePrinter,
GetPrinter,
GetPrinters
} from "./functions/printer.mjs";
function checkPermissions(userPermissions, requestedPermission) {
let result = false;
for (let counter = requestedPermission.split(".").length; counter > 0; counter--) {
if (userPermissions.includes(requestedPermission)) {
result = true;
break;
}
requestedPermission = requestedPermission.substr(0, requestedPermission.lastIndexOf("."))
}
return result;
}
// Beispielverwendung:
const userPermissions = [
"mongo"
];
const permissionsResult = checkPermissions(userPermissions, "settings.printer");

View file

@ -1,17 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
<div class="container">
<div class="d-flex align-items-center justify-content-center py-5">
<div class="text-center">
<h1 class="display-1 fw-bold">{{ Error.Code }}</h1>
<p class="fs-3"> <span class="text-danger">Opps!</span> {{ Error.Title }}</p>
<p class="lead">
{{ Error.Message }}
</p>
<a href="{{ Error.Link }}" class="btn btn-primary">Go Back</a>
</div>
</div>
</div>
{% endblock %}

View file

@ -1,352 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
{# Input Section #}
<script type="text/javascript">
var InitLabelData = {{ LabelData | dump }}
</script>
<div class="container">
<div class="row row-cols-2 g-4">
<div class="col-4">
{# Label Data #}
<div class="card shadow w-100 mb-4">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Label Settings</p>
</div>
<div class="card-body px-3 py-3 d-flex flex-column" style="gap: 1rem">
<div class="col-12">
<label class="form-label">Label Name</label>
<input type="text" class="form-control label-input" placeholder="Label Name" v-model="LabelEditor.name">
</div>
<div class="row">
<div class="col-6">
<label class="form-label">Label Width</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="LabelEditor.size.width">
<a class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">mm</a>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item">mm</a></li>
<li><a class="dropdown-item">inch</a></li>
</ul>
</div>
</div>
<div class="col-6">
<label class="form-label">Label Height</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="22" v-model="LabelEditor.size.height">
<a class="btn btn-outline-secondary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">mm</a>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item">mm</a></li>
<li><a class="dropdown-item">inch</a></li>
</ul>
</div>
</div>
</div>
{# <div class="row">
<div class="col-6">
<label class="form-label">Printer Resolution</label>
<div class="col-6 input-group">
<select class="form-select" v-model="LabelEditor.size.resolution">
<option value="203">203 dpi</option>
<option value="300">300 dpi</option>
<option value="600">600 dpi</option>
</select>
</div>
</div>
</div> #}
<div class="col-12 d-flex" style="gap: 1rem">
<a class="btn btn-outline-primary">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
{# Variables #}
<div class="card shadow w-100">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Variables</p>
</div>
<div class="card-body px-3 py-3">
<div class="col-12">
<table class="table m-0">
<thead>
<tr>
<th class="col-auto px-1">Name</th>
<th class="col-auto px-1">Regex</th>
<th class="col-auto px-1">
</th>
</tr>
</thead>
<tbody>
<tr v-for="(Variable, VIndex) in LabelEditor.variables">
<td class="px-1 py-2">
<input type="text" class="form-control" placeholder="Name" v-model="Variable.name">
</td>
<td class="px-1 py-2">
<input type="text" class="form-control" placeholder="Name" v-model="Variable.regex">
</td>
<td class="px-1 py-2 d-flex justify-content-end" style="gap: 0.6rem;">
<a class="btn btn-sm btn-outline-danger" @click="DeleteVariable(VIndex)" data-bs-toggle="tooltip" title="Delete Variable">
<i class="ti ti-trash"></i>
</a>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-12 mt-3 d-flex" style="gap: 1rem">
<a class="btn btn-outline-primary" @click="AddVariable">
<i class="me-2 ti ti-code-plus"></i>Add
</a>
</div>
</div>
</div>
</div>
{# Label Queue #}
<div class="col-8">
{# <div class="row"> #}
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">Elements</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group">
<button type="button" class="btn btn-outline-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
Add Element
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#" @click="AddElement('text')">Text</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#" @click="AddElement('box')">Box</a></li>
<li><a class="dropdown-item" href="#" @click="AddElement('ellipse')">Ellipse</a></li>
<li><a class="dropdown-item" href="#" @click="AddElement('line')">Line</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#" @click="AddElement('code39')">Code 39</a></li>
<li><a class="dropdown-item" href="#" @click="AddElement('code128')">Code 128</a></li>
<li><a class="dropdown-item" href="#" @click="AddElement('codeQR')">QRCode</a></li>
</ul>
</div>
{# <a class="btn btn-outline-primary" @click="CreateLabel()">
<i class="me-2 ti ti-playlist-add"></i>Add Label
</a> #}
</div>
</div>
{# Element List #}
<div class="col-12">
<div class="row row-cols-1 row-cols-lg-2 g-4">
<div class="col" v-for="(Element, ElementIndex) in LabelEditor.elements">
<div class="col card border-primary shadow">
<div class="card-header px-3 py-3" v-if="Element.type == 'text'">
Text
</div>
<div class="card-header px-3 py-3" v-if="Element.type == 'box'">
Graphical Box
</div>
<div class="card-header px-3 py-3" v-if="Element.type == 'ellipse'">
Graphical Ellipse
</div>
<div class="card-header px-3 py-3" v-if="Element.type == 'code39'">
Code 39
</div>
<div class="card-header px-3 py-3" v-if="Element.type == 'code128'">
Code 128
</div>
<div class="card-body px-3 py-3">
<div class="row mb-3">
<div class="col-6">
<label class="form-label">Position X</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="Element.originX">
<span class="input-group-text">mm</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Position Y</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="Element.originY">
<span class="input-group-text">mm</span>
</div>
</div>
</div>
<div class="col-12 mb-3">
<label class="form-label">Alignment</label>
<select class="form-select" v-model="Element.originAlign">
<option value="0">Align Left</option>
<option value="1">Align Right</option>
<option value="2">Align Auto</option>
</select>
</div>
{# Text #}
<div class="col-12 mb-3" v-if="Element.type == 'text'">
<label class="form-label">Text Content</label>
<input type="text" class="form-control label-input" v-model="Element.content">
</div>
<div class="col-12 mb-3" v-if="Element.type == 'text'">
<label class="form-label">Font Type</label>
<input type="text" class="form-control label-input" v-model="Element.fontType">
</div>
<div class="col-12 mb-3" v-if="Element.type == 'text'">
<label class="form-label">Font Height</label>
<input type="text" class="form-control label-input" v-model="Element.fontHeight">
</div>
{# Box #}
<div class="row mb-3" v-if="Element.type == 'box' || Element.type == 'ellipse'">
<div class="col-6">
<label class="form-label">Width</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="Element.width">
<span class="input-group-text">mm</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Height</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="Element.height">
<span class="input-group-text">mm</span>
</div>
</div>
</div>
{# Box #}
<div class="row mb-3" v-if="Element.type == 'box'">
<div class="col-6">
<label class="form-label">Border With</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="Element.borderWidth">
<span class="input-group-text">dots</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Boder Radius</label>
<select class="form-select" v-model="Element.borderRadius">
<option value="0">No Rounding</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">Heavy Rounding</option>
</select>
</div>
</div>
<div class="col-12 mb-3" v-if="Element.type == 'box'">
<label class="form-label">Border Color</label>
<select class="form-select" v-model="Element.borderColor">
<option value="B">Black</option>
<option value="W">White</option>
</select>
</div>
{# Ellipse #}
<div class="row mb-3" v-if="Element.type == 'ellipse'">
<div class="col-6">
<label class="form-label">Border With</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="Element.borderWidth">
<span class="input-group-text">dots</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Border Color</label>
<select class="form-select" v-model="Element.borderColor">
<option value="B">Black</option>
<option value="W">White</option>
</select>
</div>
</div>
{# Code 39 & Code 128 #}
<div class="row mb-3" v-if="Element.type == 'code39' || Element.type == 'code128'">
<div class="col-12">
<label class="form-label">Content</label>
<input type="text" class="form-control" placeholder="0" v-model="Element.content">
</div>
</div>
<div class="row mb-3" v-if="Element.type == 'code39' || Element.type == 'code128'">
<div class="col-6">
<label class="form-label">Line Width</label>
<div class="col-6 input-group">
<input type="number" step="1" min="1" max="100" class="form-control" placeholder="0" v-model="Element.codeWidth">
<span class="input-group-text">dots</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Width Ratio</label>
<div class="col-6 input-group">
<input type="number" step="0.1" min="2.0" max="3.0" class="form-control" placeholder="0" v-model="Element.widthRatio">
<span class="input-group-text">x</span>
</div>
</div>
</div>
<div class="row mb-3" v-if="Element.type == 'code39' || Element.type == 'code128'">
<div class="col-6">
<label class="form-label">Code Height</label>
<div class="col-6 input-group">
<input type="number" step="1" min="1" max="10000" class="form-control" placeholder="0" v-model="Element.codeHeight">
<span class="input-group-text">dots</span>
</div>
</div>
</div>
{# Actions #}
<div class="col-12 d-flex" style="gap: 0.6rem">
<a class="btn btn-outline-danger" @click="DeleteElement(ElementIndex)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{# <div class="card shadow w-100">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Document Elements</p>
</div>
<div class="card-body px-3 py-3">
<div class="card col-6" v-for="(Element, ElementIndex) in LabelEditor.elements">
<div class="card-body px-3 py-3" v-if="Element.type == 'text'">
<div class="col-12">
<label class="form-label">Text Value</label>
<input type="text" class="form-control label-input" v-model="Element.value">
</div>
<div class="col-12">
<label class="form-label">Font Name</label>
<input type="text" class="form-control label-input" v-model="Element.fontName">
</div>
<div class="col-12">
<label class="form-label">Font Height</label>
<input type="text" class="form-control label-input" v-model="Element.fontHeight">
</div>
</div>
</div>
<div class="col-12 text-center" v-if="LabelEditor.elements.length == 0">
<span>Füge Template-Objekte zu deinem Label hinzu.</span>
</div>
<div class="col-12 mt-3 d-flex" style="gap: 1rem">
<div class="btn-group">
<button type="button" class="btn btn-outline-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
Add Element
</button>
<ul class="dropdown-menu">
<li><a class="dropdown-item" href="#" @click="AddTextElement()">Text</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">Box</a></li>
<li><a class="dropdown-item" href="#">Circle</a></li>
<li><a class="dropdown-item" href="#">Line</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#">QRCode</a></li>
</ul>
</div>
</div>
</div>
</div> #}
</div>
</div>
</div>
<script src="/labelEditor.app.js"></script>
{% endblock %}

View file

@ -1,78 +0,0 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Label Print</title>
<link rel="icon" type="image/x-icon" href="/img/Favicon.ico">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/tabler-icons.min.css">
<script src="/js/jquery-3.6.4.min.js"></script>
<script src="/js/bootstrap.bundle.min.js"></script>
<script src="/js/vue.global.prod.js"></script>
<style>
body,
html {
width: 100svw;
height: 100svh;
user-select: none;
background: var(--bs-body-bg);
}
</style>
</head>
<body>
<header>
<div class="navbar navbar-dark bg-dark shadow-sm py-3">
<div class="container">
<div class="navbar-brand d-flex align-items-center">
<img src="/img/AO-Logo.svg" style="height: 2rem; margin-right: 1rem;">
<strong>Label Print</strong>
</div>
<div class="d-flex flex-row flex-nowrap" style="gap: 1rem">
<div class="btn-group">
<button type="button" class="btn btn-outline-light dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
<i class="ti ti-stack-2 me-2"></i>Queues
</button>
<ul class="dropdown-menu dropdown-menu-end mt-1">
{% for Queue in QueueList %}
<li><a class="dropdown-item" href="/queue/{{ Queue.id }}">{{ Queue.name }}</a></li>
{% endfor %}
</ul>
</div>
<div class="btn-group">
<button type="button" class="btn btn-outline-light dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
<i class="ti ti-settings me-2"></i>Settings
</button>
<ul class="dropdown-menu dropdown-menu-end mt-1">
<li><a class="dropdown-item" href="/templates">
<i class="ti ti-template me-2"></i>Templates
</a></li>
<li><a class="dropdown-item" href="/media">
<i class="ti ti-toilet-paper me-2"></i>Media
</a></li>
<li><a class="dropdown-item" href="/queue">
<i class="ti ti-stack-2 me-2"></i>Queue
</a></li>
<li><a class="dropdown-item" href="/printer">
<i class="ti ti-printer me-2"></i>Printer
</a></li>
<li><a class="dropdown-item" href="/apps">
<i class="ti ti-share me-2"></i>Apps
</a></li>
</ul>
</div>
</div>
</div>
</div>
</header>
<main class="py-5">
<!-- Page Content -->
{% block content %}{% endblock %}
</main>
</body>
</html>

View file

@ -1,213 +0,0 @@
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<title>Label Print</title>
<link rel="icon" type="image/x-icon" href="/img/Favicon.ico">
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/tabler-icons.min.css">
<script src="/js/jquery-3.6.4.min.js"></script>
<style>
body,
html {
width: 100svw;
height: 100svh;
user-select: none;
background: var(--bs-body-bg);
}
</style>
</head>
<body>
<header>
<div class="navbar navbar-dark bg-dark shadow-sm">
<div class="container">
<div class="navbar-brand d-flex align-items-center">
<img src="/img/AO-Logo.svg" style="height: 2rem; margin-right: 1rem;">
<strong>Label Print</strong>
</div>
</div>
</div>
</header>
<main class="py-5">
<!-- Settings -->
<div class="py-2">
<div class="container" style="max-width: 60rem">
<div class="card shadow m-4">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Settings</p>
</div>
<div class="card-body px-2 py-3 d-flex flex-row">
<div class="col-6 px-2">
<label for="selectLabel" class="form-label">Label</label>
<select class="form-select" id="selectLabel">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
</div>
<div class="col-6 px-2">
<label for="selectPrinter" class="form-label">Printer</label>
<select class="form-select" id="selectPrinter">
<option value="1">One</option>
<option value="2">Two</option>
<option value="3">Three</option>
</select>
</div>
</div>
</div>
</div>
</div>
<!-- Printer List -->
<div class="py-2">
<div class="container" style="max-width: 60rem">
<div class="card shadow m-4">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Printer</p>
</div>
<div class="card-body p-0">
<div class="table-responsive table mt-2" id="dataTable" role="grid"
aria-describedby="dataTable_info">
<table class="table my-0" id="dataTable">
<thead>
<tr>
<th class="col-9 ps-5">Name</th>
<th class="pe-5 py-2 d-flex justify-content-end">
<a class="btn btn-outline-primary" data-bs-toggle="modal"
@click="CreatePrinter()">
<i class="ti ti-plus"></i>
</a>
</th>
</tr>
</thead>
<tfoot>
<tr v-for="Printer in PrinterList">
<td class="ps-5 py-2">
{{ Printer.name }}
</td>
<td class="pe-5 py-2 d-flex justify-content-end" style="gap: 0.6rem;">
<a class="btn btn-outline-primary" @click="" data-bs-toggle="tooltip"
title="Select Printer">
<i class="ti ti-printer"></i>
</a>
<a class="btn btn-outline-primary" @click="EditPrinter(Printer.uid)"
data-bs-toggle="tooltip" title="Edit Printer">
<i class="ti ti-settings"></i>
</a>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- Label Modal -->
<div class="modal fade" id="labelModal" tabindex="-1" data-bs-backdrop="static" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="LabelEditor.uid == null">Create Label
</h1>
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="LabelEditor.uid != null">Label {{
LabelEditor.uid }}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-2">
<div class="mb-3">
<label for="labelNameInput" class="form-label">Label Name</label>
<input type="text" class="form-control" id="labelNameInput" placeholder="Useful Label 1"
v-model="LabelEditor.name">
</div>
<div class="row">
<div class="col-6 mb-3">
<label for="labelWidth" class="form-label">Label Width</label>
<input type="text" class="form-control" id="labelWidth" placeholder="10.0.0.1"
v-model="LabelEditor.size.width">
</div>
<div class="col-6 mb-3">
<label for="labelHeight" class="form-label">Label Height</label>
<input type="text" class="form-control" id="labelHeight" placeholder="9100"
v-model="LabelEditor.size.height">
</div>
</div>
<div class="mb-3">
<label for="templateInput" class="form-label">Template</label>
<textarea class="form-control" id="templateInput" rows="10"
v-model="LabelEditor.template"></textarea>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-outline-danger" @click="DeleteLabel()" title="Delete Label">
<i class="me-2 ti ti-trash"></i>Delete
</a>
<a class="btn btn-outline-primary" @click="SaveLabel()" title="Save Label">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
<!-- Printer Modal -->
<div class="modal fade" id="printerModal" tabindex="-1" data-bs-backdrop="static" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="PrinterEditor.uid == null">Create
Printer</h1>
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="PrinterEditor.uid != null">Printer {{
PrinterEditor.uid }}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-2">
<div class="mb-3">
<label for="printerNameInput" class="form-label">Printer Name</label>
<input type="text" class="form-control" id="printerNameInput" placeholder="Useful Printer 1"
v-model="PrinterEditor.name">
</div>
<div class="row">
<div class="col-8 mb-3">
<label for="printerDPIInput" class="form-label">Printer IP-Address</label>
<input type="text" class="form-control" id="printerDPIInput" placeholder="10.0.0.1"
v-model="PrinterEditor.socketaddr">
</div>
<div class="col-4 mb-3">
<label for="printerDPIInput" class="form-label">Printer Port</label>
<input type="text" class="form-control" id="printerDPIInput" placeholder="9100"
v-model="PrinterEditor.socketport">
</div>
</div>
<div class="mb-3">
<label for="printerDPIInput" class="form-label">Printer DPI</label>
<input type="text" class="form-control" id="printerDPIInput" placeholder="203"
v-model="PrinterEditor.dpi">
</div>
</div>
<div class="modal-footer">
<a class="btn btn-outline-danger" @click="DeletePrinter()" title="Delete Printer">
<i class="me-2 ti ti-trash"></i>Delete
</a>
<a class="btn btn-outline-primary" @click="SavePrinter()" title="Save Printer">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
</main>
<script src="/js/bootstrap.bundle.min.js"></script>
<script src="/js/vue.global.prod.js"></script>
<script src="/settings.app.js"></script>
</body>
</html>

View file

@ -1,113 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
{# Input Section #}
<div class="container">
<div class="row row-cols-2 g-4">
{# Header #}
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">
<i class="ti ti-stack-2 me-5"></i>Queue: {{ queueData.name }}
</h1>
<div class="btn-toolbar mb-2 mb-md-0 d-flex gap-2">
<a class="btn btn-outline-primary" @click="">
<i class="me-2 ti ti-printer"></i>Print Next
</a>
<a class="btn btn-outline-primary" @click="">
<i class="me-2 ti ti-printer"></i>Print All
</a>
</div>
</div>
<div class="col-4">
{# Settings #}
<div class="card shadow w-100 mb-4">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Settings</p>
</div>
<div class="card-body">
<div class="d-flex flex-column gap-3">
<div class="col-12">
<label for="selectTemplate" class="form-label">Template</label>
<select class="form-select" id="selectTemplate" v-model="CurrentTemplate">
<option v-for="template in templates" :value="template.id">{% raw %}{{ template.name }}{% endraw %}</option>
</select>
</div>
<div class="col-12">
<label for="selectPrinter" class="form-label">Printer</label>
<select class="form-select" id="selectPrinter" v-model="queueData.printerId">
<option v-for="printer in printers" :value="printer.id">{% raw %}{{ printer.name }}{% endraw %}</option>
</select>
</div>
<div class="col-12 mt-1">
<a :class="['w-100', 'btn', Settings.AutoPrint ? 'btn-outline-success' : 'btn-outline-danger']" @click="ToggleAutoPrint()">
<i :class="['ti', 'me-2', Settings.AutoPrint ? 'ti-check' : 'ti-x']"></i>Auto. Print
</a>
</div>
</div>
</div>
</div>
{# Input #}
<div class="card shadow w-100 mt-4">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Input</p>
</div>
<div class="card-body px-2 py-3 d-flex flex-column" style="gap: 1rem">
<div class="col-12 px-2" v-for="FieldName in Object.keys(LabelData)">
<label for="printerDPIInput" class="form-label">{% raw %}{{ FieldName }}{% endraw %}</label>
<input type="text" class="form-control label-input" :placeholder="FieldName" v-model="LabelData[FieldName]" @keyup.enter="ContinueFieldInput()">
</div>
<div class="col-12 px-2 d-flex" style="gap: 1rem">
<a class="btn btn-outline-primary">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
{# Label Queue #}
<div class="col-8">
<div class="row row-cols-1 row-cols-md-2 g-4">
<div class="col" v-for="Label, LabelIndex in LabelQueue">
<div class="col card border-primary shadow">
<div class="card-body px-0">
<table class="table my-0" id="dataTable">
<thead>
<tr>
<th class="ps-4">Variable</th>
<th class="ps-0">Wert</th>
</tr>
</thead>
<tfoot>
<tr v-for="Field in Object.entries(Label.Fields)">
<td class="ps-4 py-2">{% raw %}{{ Field[0] }}{% endraw %}</td>
<td class="ps-0 py-2">{% raw %}{{ Field[1] }}{% endraw %}</td>
</tr>
</tfoot>
</table>
<div class="d-flex pt-3 px-4" style="gap: 0.6rem">
<a class="btn btn-outline-primary">
<i class="ti ti-printer me-2"></i>Print
</a>
<a class="btn btn-outline-danger" @click="DeleteLabel(LabelIndex)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var queueData = {{ queueData | dump }}
var printers = {{ printers | dump }}
var templates = {{ templates | dump }}
</script>
<script src="/api.js"></script>
<script src="/app.queue.js"></script>
{% endblock %}

View file

@ -1,152 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
{# Input Section #}
<div class="container">
<div class="row row-cols-2 g-4">
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">Application Tokens</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<a class="btn btn-outline-primary" @click="CreateMedia()">
<i class="me-2 ti ti-playlist-add"></i>Add Application
</a>
</div>
</div>
{# Media List #}
<table class="table align-middle">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Token</th>
<th scope="col">Expires</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
<tr v-for="mediaData, mediaIndex in mediaList">
<td>{% raw %}{{ mediaData.name }}{% endraw %}</td>
<td>
<span class="badge text-bg-info user-select-all">sadlokfgjaskoldfjnosdaf</span>
</td>
<td>2023-11-01 12:00:00</td>
<td>
<a class="btn btn-outline-primary" @click="EditMedia(mediaData.uid)">
<i class="ti ti-printer me-2"></i>Edit
</a>
<a class="btn btn-outline-danger" @click="DeleteMedia(mediaData.uid)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</td>
</tr>
</tbody>
</table>
<!-- <div class="col-12">
<div class="row row-cols-1 row-cols-md-2 g-4">
<div class="col" v-for="mediaData, mediaIndex in mediaList">
<div class="col card border-primary shadow">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">{% raw %}{{ mediaData.name }}{% endraw %}</p>
</div>
<div class="card-body px-0">
<div class="container">
<span>
sadlokfgjaskoldfjnosdaf
</span>
</div>
</div>
<div class="card-footer text-body-secondary">
<div class="d-flex justify-content-end" style="gap: 0.6rem">
<a class="btn btn-outline-primary" @click="EditMedia(mediaData.uid)">
<i class="ti ti-printer me-2"></i>Edit
</a>
<a class="btn btn-outline-danger" @click="DeleteMedia(mediaData.uid)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</div>
</div>
</div>
</div>
</div>
</div> -->
</div>
</div>
{# add Media Modal #}
<div class="modal fade" id="addMediaModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="mediaEditor.uid == null">Create Media</h1>
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="mediaEditor.uid != null">Media {% raw %}{{ mediaEditor.uid }}{% endraw %}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<div class="col-12">
<label class="form-label">Media Name</label>
<input type="text" class="form-control label-input" placeholder="Media Name" v-model="mediaEditor.name">
</div>
<div class="row">
<div class="col-6">
<label class="form-label">Number of Columns</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="3" v-model="mediaEditor.numColumns">
</div>
</div>
<div class="col-6">
<label class="form-label">Column Spacing</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="2" v-model="mediaEditor.columnSpacing">
<span class="input-group-text">mm</span>
</div>
</div>
</div>
{# <div class="row">
<div class="col-6">
<label class="form-label">Label Width</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="mediaEditor.labelWidth">
<span class="input-group-text">mm</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Label Height</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="22" v-model="mediaEditor.labelHeight">
<span class="input-group-text">mm</span>
</div>
</div>
</div> #}
<div class="col-12 d-flex" style="gap: 1rem">
<a class="btn btn-outline-primary" @click="SaveMedia()">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
</div>
{# delete Media Confirmation Modal #}
<div class="modal fade" id="deleteMediaModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<h5 class="mb-0">Delete Media</h5>
<p class="mb-0">Are you sure you want to delete Media {% raw %}{{ mediaEditor.name }}{% endraw %}?</p>
</div>
<div class="modal-footer flex-nowrap p-0">
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0 border-end" @click="DeleteMedia(mediaEditor.uid, true)">
<strong>Delete</strong>
</a>
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0" data-bs-dismiss="modal">
Cancel
</a>
</div>
</div>
</div>
</div>
<script src="/app.queue.list.js"></script>
{% endblock %}

View file

@ -1,141 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
{# Input Section #}
<div class="container">
<div class="row row-cols-2 g-4">
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">
<i class="ti ti-toilet-paper me-5"></i>Media Settings
</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<a class="btn btn-outline-primary" @click="CreateMedium()">
<i class="me-2 ti ti-playlist-add"></i>Add Media
</a>
</div>
</div>
{# Media List #}
<div class="col-12">
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-4">
<div :class="['col', medium.id == null ? 'd-none': '']" v-for="(medium, index) in mediaList">
<div class="col card border-primary shadow">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">{% raw %}{{ medium.name }}{% endraw %}</p>
</div>
<div class="card-body">
<table class="table table-middle table-borderless my-0">
<tbody>
<tr title="number of columns in a row">
<td class="py-2" title="Number of Columns">
<i class="ti ti-columns-2 me-2"></i>Columns:
</td>
<td class="py-2" title="Number of Columns">
{% raw %}{{ medium.columns }}{% endraw %}
</td>
</tr>
<tr title="spacing between columns in mm">
<td class="py-2" title="Spacing between Columns">
<i class="ti ti-spacing-horizontal me-2"></i>Spacing:
</td>
<td class="py-2" title="Spacing between Columns">
{% raw %}{{ medium.spacing }}{% endraw %} mm
</td>
</tr>
<tr title="width of a row in mm">
<td class="py-2" title="Spacing between Columns">
<i class="ti ti-arrow-autofit-width me-2"></i>Row Width:
</td>
<td class="py-2" title="Spacing between Columns">
{% raw %}{{ medium.width }}{% endraw %} mm
</td>
</tr>
</tbody>
</table>
</div>
<div class="card-footer text-body-secondary">
<div class="d-flex justify-content-end" style="gap: 0.6rem">
<a class="btn btn-outline-primary" @click="EditMedium(index)">
<i class="ti ti-printer me-2"></i>Edit
</a>
<a class="btn btn-outline-danger" @click="DeleteMedium(index)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{# add Media Modal #}
<div class="modal fade" id="addMediaModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" v-if="mediaIndex != null">
<div class="modal-header">
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="mediaList[mediaIndex].id == null">Create Media</h1>
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="mediaList[mediaIndex].id != null">Media {% raw %}{{ mediaList[mediaIndex].id }}{% endraw %}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<div class="col-12">
<label class="form-label">Media Name</label>
<input type="text" class="form-control label-input" placeholder="Media Name" v-model="mediaList[mediaIndex].name">
</div>
<div class="row">
<div class="col-6" title="number of columns in a row">
<label class="form-label">Number of Columns</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="3" v-model="mediaList[mediaIndex].columns">
</div>
</div>
<div class="col-6" title="spacing between columns in mm">
<label class="form-label">Column Spacing</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="2" v-model="mediaList[mediaIndex].spacing">
<span class="input-group-text">mm</span>
</div>
</div>
<div class="col-6" title="width of a row in mm">
<label class="form-label">Row Width</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="2" v-model="mediaList[mediaIndex].width">
<span class="input-group-text">mm</span>
</div>
</div>
</div>
<div class="col-12 d-flex" style="gap: 1rem">
<a class="btn btn-outline-primary" @click="SaveMedium(mediaIndex)">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
</div>
{# delete Media Confirmation Modal #}
<div class="modal fade" id="deleteMediaModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" v-if="mediaIndex != null">
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<h5 class="mb-0">Delete Media</h5>
<p class="mb-0">Are you sure you want to delete Media {% raw %}{{ mediaList[mediaIndex].name }}{% endraw %}?</p>
</div>
<div class="modal-footer flex-nowrap p-0">
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0 border-end" @click="DeleteMedium(mediaIndex, true)">
<strong>Delete</strong>
</a>
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0" data-bs-dismiss="modal">
Cancel
</a>
</div>
</div>
</div>
</div>
<script src="/api.js"></script>
<script src="/app.media.js"></script>
{% endblock %}

View file

@ -1,129 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
<div class="container">
<div class="row row-cols-2 g-4">
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">
<i class="ti ti-printer me-5"></i>Printer Settings
</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<a class="btn btn-outline-primary" @click="CreatePrinter()">
<i class="me-2 ti ti-playlist-add"></i>Add Printer
</a>
</div>
</div>
{# Printer List #}
<div class="col-12">
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-4">
<div class="col" v-for="printerData, printerIndex in printerList">
<div class="col card border-primary shadow">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">{% raw %}{{ printerData.name }}{% endraw %}</p>
</div>
<div class="card-body">
<table class="table table-middle table-borderless my-0">
<tbody>
<tr>
<td class="ps-4 py-2">Type:</td>
<td class="ps-0 py-2">{% raw %}{{ printerData.type }}{% endraw %}</td>
</tr>
<tr>
<td class="ps-4 py-2">Density:</td>
<td class="ps-0 py-2">{% raw %}{{ printerData.density }}{% endraw %} dpi</td>
</tr>
<tr>
<td class="ps-4 py-2">Address:</td>
<td class="ps-0 py-2">{% raw %}{{ printerData.socket_addr }}{% endraw %}</td>
</tr>
<tr>
<td class="ps-4 py-2">Port:</td>
<td class="ps-0 py-2">{% raw %}{{ printerData.socket_port }}{% endraw %}</td>
</tr>
</tbody>
</table>
</div>
<div class="card-footer text-body-secondary">
<div class="d-flex justify-content-end" style="gap: 0.6rem">
<a class="btn btn-outline-primary" @click="EditPrinter(printerData.id)">
<i class="ti ti-printer me-2"></i>Edit
</a>
<a class="btn btn-outline-danger" @click="DeletePrinter(printerData.id)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{# Printer Settings Modal #}
<div class="modal fade" id="printerSettingsModal" tabindex="-1" data-bs-backdrop="static" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="printerEditor.uid == null">Create Printer</h1>
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="printerEditor.uid != null">Printer {% raw %}{{ printerEditor.id }}{% endraw %}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-2">
<div class="mb-3">
<label for="printerNameInput" class="form-label">Printer Name</label>
<input type="text" class="form-control" id="printerNameInput" placeholder="Useful Printer 1" v-model="printerEditor.name">
</div>
<div class="row">
<div class="col-8 mb-3">
<label for="printerDPIInput" class="form-label">Printer IP-Address</label>
<input type="text" class="form-control" id="printerDPIInput" placeholder="10.0.0.1" v-model="printerEditor.socket_addr">
</div>
<div class="col-4 mb-3">
<label for="printerDPIInput" class="form-label">Printer Port</label>
<input type="text" class="form-control" id="printerDPIInput" placeholder="9100" v-model="printerEditor.socket_port">
</div>
</div>
<div class="mb-3">
<label for="printerDensityInput" class="form-label">Printer Density</label>
<select class="form-select" id="printerDensityInput" v-model="printerEditor.density">
<option value="203">203 dpi (8 dpmm)</option>
<option value="300">300 dpi (12 dpmm)</option>
</select>
</div>
</div>
<div class="modal-footer">
{# <a class="btn btn-outline-danger" @click="DeletePrinter()" title="Delete Printer">
<i class="me-2 ti ti-trash"></i>Delete
</a> #}
<a class="btn btn-outline-primary" @click="SavePrinter()" title="Save Printer">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
{# Printer delete Confirmation Modal #}
<div class="modal fade" id="printerDeleteModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<h5 class="mb-0">Delete Media</h5>
<p class="mb-0">Are you sure you want to delete Printer {% raw %}{{ printerEditor.name }}{% endraw %}?</p>
</div>
<div class="modal-footer flex-nowrap p-0">
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0 border-end" @click="DeletePrinter(printerEditor.id, true)">
<strong>Delete</strong>
</a>
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0" data-bs-dismiss="modal">
Cancel
</a>
</div>
</div>
</div>
</div>
<script src="/app.printers.js"></script>
{% endblock %}

View file

@ -1,107 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
<div class="container">
<div class="row row-cols-2 g-4">
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">
<i class="ti ti-stack-2 me-5"></i>Queue Settings
</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<a class="btn btn-outline-primary" @click="CreateQueue()">
<i class="me-2 ti ti-playlist-add"></i>Add Queue
</a>
</div>
</div>
{# Queue List #}
<div class="col-12">
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-4">
<div class="col" v-for="queueData, queueIndex in queueList">
<div class="col card border-primary shadow">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">{% raw %}{{ queueData.name }}{% endraw %}</p>
</div>
<div class="card-body">
<table class="table table-middle table-borderless my-0">
<tbody>
<tr>
<td class="py-2 col-4">
<i class="ti ti-printer me-2"></i>Printer:
</td>
<td class="py-2">{% raw %}{{ GetPrinterById(queueData.printerId) }}{% endraw %}</td>
</tr>
</tbody>
</table>
</div>
<div class="card-footer text-body-secondary">
<div class="d-flex justify-content-end" style="gap: 0.6rem">
<a class="btn btn-outline-primary" @click="EditQueue(queueData.id)">
<i class="ti ti-list-details me-2"></i>Edit
</a>
<a class="btn btn-outline-danger" @click="DeleteQueue(queueData.id)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{# queue Settings Modal #}
<div class="modal fade" id="QueueSettingsModal" tabindex="-1" data-bs-backdrop="static" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-header">
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="queueEditor.uid == null">Create queue</h1>
<h1 class="modal-title fs-5" id="labelModalLabel" v-if="queueEditor.uid != null">Queue {% raw %}{{ queueEditor.id }}{% endraw %}</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-2">
<div class="mb-3">
<label for="queueNameInput" class="form-label">Queue Name</label>
<input type="text" class="form-control" id="queueNameInput" placeholder="Useful queue 1" v-model="queueEditor.name">
</div>
<div class="mb-3">
<label for="queuePrinterInput" class="form-label">Queue Printer</label>
<select class="form-select" id="queuePrinterInput" v-model="queueEditor.printerId">
<option value="null">- Kein Drucker -</option>
<option :value="printer.id" v-for="printer in printerList">{% raw %}{{ printer.name }}{% endraw %}</option>
</select>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-outline-primary" @click="SaveQueue()" title="Save Queue">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
{# queue delete Confirmation Modal #}
<div class="modal fade" id="QueueDeleteModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content">
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<h5 class="mb-0">Delete Queue</h5>
<p class="mb-0">Are you sure you want to delete queue {% raw %}{{ queueEditor.name }}{% endraw %}?</p>
</div>
<div class="modal-footer flex-nowrap p-0">
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0 border-end" @click="DeleteQueue(queueEditor.id, true)">
<strong>Delete</strong>
</a>
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0" data-bs-dismiss="modal">
Cancel
</a>
</div>
</div>
</div>
</div>
<script src="/api.js"></script>
<script src="/app.queues.js"></script>
{% endblock %}

View file

@ -1,410 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
{# Input Section #}
<script type="text/javascript">
var template = {{ template | dump }}
</script>
<div class="container">
<div class="row gx-4 gy-2">
<div class="col-12">
<div class="card shadow w-100 mb-4">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">Label Settings</p>
</div>
<div class="card-body p-3 row gx-4 gy-3">
<div class="col-lg-6 col-12">
<label class="form-label">Label Name</label>
<input type="text" class="form-control label-input" placeholder="Label Name" v-model="template.name">
</div>
<div class="col-lg-3 col-6">
<label class="form-label">Label Width</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="template.width">
<span class="input-group-text">mm</span>
</div>
</div>
<div class="col-lg-3 col-6">
<label class="form-label">Label Height</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="22" v-model="template.height">
<span class="input-group-text">mm</span>
</div>
</div>
<div class="col-lg-12 col-12 d-flex justify-content-end">
<a class="btn btn-primary" @click="SaveTemplate()">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
{# Template Variables #}
<div class="col-12 col-lg-4">
{# Variables Header #}
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">Variables</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<a class="btn btn-outline-primary" @click="AddVariable()">
<i class="me-2 ti ti-playlist-add"></i>Add
</a>
</div>
</div>
{# Variables #}
<div class="row gy-3">
<div :class="['col-12','gy-3', variable.id == null ? 'd-none': '']" v-for="(variable, index) in template.variables">
<div class="card shadow w-100">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">{% raw %}{{ variable.name }}{% endraw %}</p>
</div>
<div class="card-body px-3 py-3">
<div class="row gy-3">
<div class="col-12">
<kbd>{% raw %}{{ variable.regex }}{% endraw %}</kbd>
</div>
{# Actions #}
<div class="col-12 d-flex justify-content-end">
<a class="btn btn-outline-danger me-2" @click="DeleteVariable(index)">
<i class="ti ti-trash me-2"></i>Delete
</a>
<a class="btn btn-outline-primary" @click="EditVariable(index)">
<i class="ti ti-pencil me-2"></i>Edit
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{# Template Elements #}
<div class="col-12 col-lg-8">
{# <div class="row"> #}
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">Elements</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group">
<button type="button" class="btn btn-outline-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">
Add
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a class="dropdown-item" href="#" @click="AddElement('text')">Text</a></li>
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#" @click="AddElement('box')">Box</a></li>
<li><a class="dropdown-item" href="#" @click="AddElement('ellipse')">Ellipse</a></li>
{# <li><a class="dropdown-item" href="#" @click="AddElement('line')">Line</a></li> #}
<li><hr class="dropdown-divider"></li>
<li><a class="dropdown-item" href="#" @click="AddElement('code39')">Code 39</a></li>
<li><a class="dropdown-item" href="#" @click="AddElement('code128')">Code 128</a></li>
<li><a class="dropdown-item" href="#" @click="AddElement('codeQR')">QRCode</a></li>
</ul>
</div>
</div>
</div>
{# Element List #}
<div class="col-12">
<div class="row row-cols-1 row-cols-lg-2 g-4">
<div :class="['col', element.id == null ? 'd-none': '']" v-for="(element, elementIndex) in template.elements">
<div class="col card border-primary shadow">
<div class="card-header px-3 py-3">
<p class="text-primary m-0 fw-bold">{% raw %}{{ element.name }}{% endraw %}</p>
</div>
<div class="card-body">
<table class="table table-middle table-borderless my-0">
<tbody>
<tr>
<td class="py-2" title="Number of Columns">
<i class="ti ti-augmented-reality me-2"></i>Type:
</td>
<td class="py-2" title="Number of Columns">
{% raw %}{{ GetElementTypeName(element.type) }}{% endraw %}
</td>
</tr>
<tr>
<td class="py-2" title="Number of Columns">
<i class="ti ti-layout-align-left me-2"></i>Position X:
</td>
<td class="py-2" title="Number of Columns">
{% raw %}{{ element.config.originX }}{% endraw %}
</td>
</tr>
<tr>
<td class="py-2" title="Number of Columns">
<i class="ti ti-layout-align-top me-2"></i>Position Y:
</td>
<td class="py-2" title="Number of Columns">
{% raw %}{{ element.config.originY }}{% endraw %}
</td>
</tr>
</tbody>
</table>
</div>
<div class="card-footer text-body-secondary">
<div class="d-flex justify-content-end" style="gap: 0.6rem">
<a class="btn btn-outline-primary" @click="EditElement(elementIndex)">
<i class="ti ti-printer me-2"></i>Edit
</a>
<a class="btn btn-outline-danger" @click="DeleteElement(elementIndex)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{# Variable Settings Modal #}
<div class="modal fade" id="VariableSettingsModal" tabindex="-1" data-bs-backdrop="static" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" v-if="variableIndex != null">
<div class="modal-header">
<h1 class="modal-title fs-5" v-if="template.variables[variableIndex].id == null">Create Variable</h1>
<h1 class="modal-title fs-5" v-if="template.variables[variableIndex].id != null">Edit Variable</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-2">
<div class="mb-3" title="the internal name of the variable">
<label for="VariableNameInput" class="form-label">Name</label>
<input type="text" class="form-control" id="VariableNameInput" placeholder="Variable Name" v-model="template.variables[variableIndex].name">
</div>
<div class="mb-3" title="a label for the variable that is displayed on dialogs">
<label for="VariableLabelInput" class="form-label">Label</label>
<input type="text" class="form-control" id="VariableLabelInput" placeholder="Variable Name" v-model="template.variables[variableIndex].label">
</div>
<div class="mb-3" title="regex to check if input is valid">
<label for="VariableRegexInput" class="form-label">Check Value Regex</label>
<input type="text" class="form-control" id="VariableRegexInput" placeholder="Regex like ^.*$" v-model="template.variables[variableIndex].regex">
</div>
<div class="mb-3" title="an example for the input that is displayed on dialogs">
<label for="VariableExampleInput" class="form-label">Value Example</label>
<input type="text" class="form-control" id="VariableExampleInput" placeholder="just a example" v-model="template.variables[variableIndex].example">
</div>
<div class="mb-3" title="a default value for the input that is used on dialogs">
<label for="VariableDefaultInput" class="form-label">Default Value</label>
<input type="text" class="form-control" id="VariableDefaultInput" placeholder="default value" v-model="template.variables[variableIndex].default">
</div>
</div>
<div class="modal-footer">
<a class="btn btn-outline-primary" @click="SaveVariable(variableIndex)" title="Save Variable">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
{# Variable delete Confirmation Modal #}
<div class="modal fade" id="DeleteVariableModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" v-if="variableIndex != null">
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<h5 class="mb-0">Delete Variable</h5>
<p class="mb-0">Are you sure you want to delete Variable {% raw %}{{ template.variables[variableIndex].name }}{% endraw %}?</p>
</div>
<div class="modal-footer flex-nowrap p-0">
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0 border-end" @click="DeleteVariable(variableIndex, true)">
<strong>Delete</strong>
</a>
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0" data-bs-dismiss="modal">
Cancel
</a>
</div>
</div>
</div>
</div>
{# Element Settings Modal #}
<div class="modal fade" id="ElementSettingsModal" tabindex="-1" data-bs-backdrop="static" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content" v-if="elementIndex != null">
<div class="modal-header">
<h1 class="modal-title fs-5" v-if="template.elements[elementIndex].id == null">Create Element</h1>
<h1 class="modal-title fs-5" v-if="template.elements[elementIndex].id != null">Edit Element</h1>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body mx-2">
{# Default Element Settings #}
<div class="mb-3">
<label for="ElementTypeInput" class="form-label">Element Type</label>
<input type="text" class="form-control" id="ElementTypeInput" placeholder="Element Type" v-model="template.elements[elementIndex].name">
</div>
{# <div class="mb-3">
<label for="ElementTypeInput" class="form-label">Element Type</label>
<input type="text" class="form-control" id="ElementTypeInput" placeholder="Element Type" v-model="template.elements[elementIndex].type" disabled readonly>
</div> #}
<div class="row mb-3">
<div class="col-6">
<label class="form-label">Position X</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.originX">
<span class="input-group-text">mm</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Position Y</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.originY">
<span class="input-group-text">mm</span>
</div>
</div>
</div>
<div class="mb-3">
<label class="form-label">Alignment</label>
<select class="form-select" v-model="template.elements[elementIndex].config.originAlign">
<option value="0">Align Left</option>
<option value="1">Align Right</option>
<option value="2">Align Auto</option>
</select>
</div>
{# Text Element Settings #}
<div class="mb-3" v-if="template.elements[elementIndex].type == 'text'">
<label class="form-label">Text Content</label>
<input type="text" class="form-control" v-model="template.elements[elementIndex].config.content">
</div>
<div class="row mb-3" v-if="template.elements[elementIndex].type == 'text'">
<div class="col-6">
<label class="form-label">Font Type</label>
<input type="text" class="form-control" v-model="template.elements[elementIndex].config.fontType">
</div>
<div class="col-6">
<label class="form-label">Font Height</label>
<div class="col-6 input-group">
<input type="text" class="form-control" v-model="template.elements[elementIndex].config.fontHeight">
<span class="input-group-text">mm</span>
</div>
</div>
</div>
{# Box / Ellipse Element Settings #}
<div class="row mb-3" v-if="template.elements[elementIndex].type == 'box' || template.elements[elementIndex].type == 'ellipse'">
<div class="col-6">
<label class="form-label">Width</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.width">
<span class="input-group-text">mm</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Height</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.height">
<span class="input-group-text">mm</span>
</div>
</div>
</div>
{# Box Element Settings #}
<div class="row mb-3" v-if="template.elements[elementIndex].type == 'box' || template.elements[elementIndex].type == 'ellipse'">
<div class="col-6">
<label class="form-label">Border With</label>
<div class="col-6 input-group">
<input type="text" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.borderWidth">
<span class="input-group-text">dots</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Border Color</label>
<select class="form-select" v-model="template.elements[elementIndex].config.borderColor">
<option value="B">Black</option>
<option value="W">White</option>
</select>
</div>
</div>
<div class="mb-3" v-if="template.elements[elementIndex].type == 'box'">
<label class="form-label">Boder Radius</label>
<select class="form-select" v-model="template.elements[elementIndex].config.borderRadius">
<option value="0">No Rounding</option>
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
<option value="5">5</option>
<option value="6">6</option>
<option value="7">7</option>
<option value="8">Heavy Rounding</option>
</select>
</div>
{# Code 39 & Code 128 #}
<div class="row mb-3" v-if="template.elements[elementIndex].type == 'code39' || template.elements[elementIndex].type == 'code128'">
<div class="col-12">
<label class="form-label">Content</label>
<input type="text" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.content">
</div>
</div>
<div class="row mb-3" v-if="template.elements[elementIndex].type == 'code39' || template.elements[elementIndex].type == 'code128'">
<div class="col-6">
<label class="form-label">Line Width</label>
<div class="col-6 input-group">
<input type="number" step="1" min="1" max="100" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.codeWidth">
<span class="input-group-text">dots</span>
</div>
</div>
<div class="col-6">
<label class="form-label">Width Ratio</label>
<div class="col-6 input-group">
<input type="number" step="0.1" min="2.0" max="3.0" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.widthRatio">
<span class="input-group-text">x</span>
</div>
</div>
</div>
<div class="row mb-3" v-if="template.elements[elementIndex].type == 'code39' || template.elements[elementIndex].type == 'code128'">
<div class="col-6">
<label class="form-label">Code Height</label>
<div class="col-6 input-group">
<input type="number" step="1" min="1" max="10000" class="form-control" placeholder="0" v-model="template.elements[elementIndex].config.codeHeight">
<span class="input-group-text">dots</span>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<a class="btn btn-outline-primary" @click="SaveElement(elementIndex)" title="Save Element">
<i class="me-2 ti ti-device-floppy"></i>Save
</a>
</div>
</div>
</div>
</div>
{# Element delete Confirmation Modal #}
<div class="modal fade" id="DeleteElementModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" v-if="elementIndex != null">
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<h5 class="mb-0">Delete Element</h5>
<p class="mb-0">Are you sure you want to delete Element {% raw %}{{ template.elements[elementIndex].name }}{% endraw %}?</p>
</div>
<div class="modal-footer flex-nowrap p-0">
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0 border-end" @click="DeleteElement(elementIndex, true)">
<strong>Delete</strong>
</a>
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0" data-bs-dismiss="modal">
Cancel
</a>
</div>
</div>
</div>
</div>
<div class="toast-container position-fixed bottom-0 end-0 p-3">
<div id="toast-template-saved" class="toast align-items-center text-bg-success border-0" role="alert" aria-live="assertive" aria-atomic="true">
<div class="d-flex">
<div class="toast-body">
template saved
</div>
<button type="button" class="btn-close btn-close-white me-2 m-auto" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
</div>
</div>
<script src="/api.js"></script>
<script src="/app.template.js"></script>
{% endblock %}

View file

@ -1,76 +0,0 @@
{% extends "./master.njk" %}
{% block content %}
<div class="container">
<div class="row row-cols-2 g-4">
<div class="col-12 d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-4 mb-3 border-bottom">
<h1 class="h2 m-0">
<i class="ti ti-template me-5"></i>Template Settings
</h1>
<div class="btn-toolbar mb-2 mb-md-0">
<a class="btn btn-outline-primary" @click="CreateTemplate()">
<i class="me-2 ti ti-playlist-add"></i>Add Template
</a>
</div>
</div>
{# Template List #}
<div class="col-12">
<div class="row row-cols-1 row-cols-md-2 row-cols-xl-3 g-4">
<div class="col" v-for="(template, index) in templateList">
<div class="col card border-primary shadow">
<div class="card-header py-3">
<p class="text-primary m-0 fw-bold">{% raw %}{{ template.name }}{% endraw %}</p>
</div>
<div class="card-body px-0">
<table class="table my-0">
<tfoot>
<tr>
<td class="ps-4 py-2">Number of Elements:</td>
<td class="ps-0 py-2">{% raw %}{{ template.elements.length }}{% endraw %}</td>
</tr>
<tr>
<td class="ps-4 py-2">Number of Variables:</td>
<td class="ps-0 py-2">{% raw %}{{ template.variables.length }}{% endraw %}</td>
</tr>
</tfoot>
</table>
<div class="d-flex pt-3 px-4" style="gap: 0.6rem">
<a class="btn btn-outline-primary" @click="EditTemplate(index)">
<i class="ti ti-printer me-2"></i>Edit
</a>
<a class="btn btn-outline-danger" @click="DeleteTemplate(index)">
<i class="ti ti-trash me-2"></i>Delete
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{# Template delete Confirmation Modal #}
<div class="modal fade" id="DeleteTemplateModal" data-bs-backdrop="static" aria-hidden="true" tabindex="-1">
<div class="modal-dialog modal-dialog-centered">
<div class="modal-content" v-if="templateIndex != null">
<div class="modal-body mx-2 d-flex flex-column" style="gap: 1rem">
<h5 class="mb-0">Delete Template</h5>
<p class="mb-0">Are you sure you want to delete Template {% raw %}{{ templateList[templateIndex].name }}{% endraw %}?</p>
</div>
<div class="modal-footer flex-nowrap p-0">
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0 border-end" @click="DeleteTemplate(templateIndex, true)">
<strong>Delete</strong>
</a>
<a class="btn btn-lg btn-link fs-6 text-decoration-none col-6 m-0 rounded-0" data-bs-dismiss="modal">
Cancel
</a>
</div>
</div>
</div>
</div>
<script src="/api.js"></script>
<script src="/app.templates.js"></script>
{% endblock %}