{"_id":"sequelize-auto-ts","_rev":"30-76bf4dab0d937ca6625c666bf45b3c17","name":"sequelize-auto-ts","description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","dist-tags":{"latest":"1.0.21"},"versions":{"1.0.0":{"name":"sequelize-auto-ts","version":"1.0.0","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"_id":"sequelize-auto-ts@1.0.0","dist":{"shasum":"137a1466aa2974e7cd0dc3273f6db93875da4fad","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.0.tgz","integrity":"sha512-b59CUAsABJRAWk6vh08nX0GykklbZejqHVW0rCs4pHK0TZKHl959KG4HjwrVTSnjhEI03DnCQqOl0uxiZLdQpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYudBdohuRqIiKY/2jaHbpSNjKThCJY1LBqL5wHadDBgIhANb4FYnk1F5+PxTSEOv1dUZpjGblZWS9lJwJPbgj3D/d"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}]},"1.0.1":{"name":"sequelize-auto-ts","version":"1.0.1","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"_id":"sequelize-auto-ts@1.0.1","dist":{"shasum":"9a05509af96873fd0f6cbbcbbbfcfda905758739","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.1.tgz","integrity":"sha512-opaqpC35Rbk7oJC0ZVoVNwsAAJgEnkjglNyaThcPPP9WVZ1f2yHK3RK/mTULZGm58QYh9+u4GvB592K56PEtUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+CYrWh60ex96zocBGhgaQl+73m920tqqwPf18KQpJNgIhAN4oeOZbf4g2abEs84v2rFyNFv81GKPbNZFlmmdvj3ZJ"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}]},"1.0.2":{"name":"sequelize-auto-ts","version":"1.0.2","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"_id":"sequelize-auto-ts@1.0.2","dist":{"shasum":"90ca814fbeec6cd57e9b2c5c6a65ffa5690e1f77","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.2.tgz","integrity":"sha512-gyb2hN4GCCfcF+Mk45Yej4+covifawmleSPs2LnyIyIKHAtnPNc2xMyJkV5kXnIS8BpttvarwAVopyLe7wb4/A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHgFbmw7MbXhvo0a5C4U//+otgN4xnSbtkQql5V7ccOOAiEA0DOpe1egfzytdUE/EGm7eOR2GntwrS2BtKrCHXIqwpE="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}]},"1.0.3":{"name":"sequelize-auto-ts","version":"1.0.3","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"_id":"sequelize-auto-ts@1.0.3","dist":{"shasum":"c41d21fdb5a39b7ebe859afd206de2642061bddb","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.3.tgz","integrity":"sha512-d89hLHrU1fR3odGxa5D1o3+qWaKbM8Wo+00d72F2+AxJMX6SLGcvTDfb3AtytP53qIHlz3HeIgjkdSX96zc5/g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8xHDESY159mKojCHZ2tyEBr6Bxb/Wkor92kGtOydVLQIhAKwGq/mBA3eTeBdi3zJC64SKMVm1TsDp//seOGhAQDZ4"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}]},"1.0.4":{"name":"sequelize-auto-ts","version":"1.0.4","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"_id":"sequelize-auto-ts@1.0.4","dist":{"shasum":"26edb123e34571f84f9678d8183cb007c36b5a63","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.4.tgz","integrity":"sha512-J1Ul2tR8rK2C5EkeL56A1gYaJ9zHz+4MJvxsdz0QO+2UbL01nRALTywV7UowCc/tIWjgsosc0KHKOlu1DijgKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID85nEZvst+8PouuYClSRJqZMNZ0ApOzzOXGYSeF/Vj4AiEAuqd7srd+K7v1Mp0sI0aSuYTddtdbi6EvRTx2foN4j2U="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}]},"1.0.5":{"name":"sequelize-auto-ts","version":"1.0.5","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"_id":"sequelize-auto-ts@1.0.5","dist":{"shasum":"ad7c6014b75206d1b0f26f9e676e83b0929ca01b","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.5.tgz","integrity":"sha512-6LLQnyzwq+mVRAQ5YvaeXBXzSwFcEjK4y43U+j8lWWTVajveUPZ10SvuKzW80SXZIqu0qTU1ECYv1VqyIW5lBw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwG4qPYp4frEB0vKMtIICX5aGZkGScZ1+yj+nrOBM6cAiEAt8DlZyV1U3jSp7+OAJjFIh0gTYPQvLdfbbNQSms70t4="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}]},"1.0.6":{"name":"sequelize-auto-ts","version":"1.0.6","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"_id":"sequelize-auto-ts@1.0.6","dist":{"shasum":"71e96749bda79a2492ab75b7d2d3a531ade202d4","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.6.tgz","integrity":"sha512-4Ae1TEtpVDXXWaaED3gI9ljZoTZITumQsbq9coo3cpdpVMKlWZFzOli9PkXYoD0zuYzQMOKbZSScqk55UBEb6w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDsI1LdO5q7YylStZLy52JKf9EDG1s0oiY9k//y27oJEwIgXPh8gxdhxUBzt08hXaYhbFiL8TBZOZfoLfkB8s4l4tM="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}]},"1.0.7":{"name":"sequelize-auto-ts","version":"1.0.7","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"a44da8731c519a3f6967a14c3ec36b1417f48923","_id":"sequelize-auto-ts@1.0.7","scripts":{},"_shasum":"28d9a299c51b470cd4514a3de25b5ed985523a84","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.1","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"28d9a299c51b470cd4514a3de25b5ed985523a84","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.7.tgz","integrity":"sha512-JHtqqiP6cbskZJVSdJFD4uaH43JAiXDZNL9vxYEuXUbmGFmwamw+S99pYKdTxFwadW5yReOp1T+f03wXERAMWQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAWPEFYD61sUDdfCl/+g5YmPa9ozywOCcdrodkRhsJIiAiEAjCCssvcISdaXJrxi7q6BoD7G/Ak6Mt3b+16nMh8FuWE="}]}},"1.0.8":{"name":"sequelize-auto-ts","version":"1.0.8","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"a44da8731c519a3f6967a14c3ec36b1417f48923","_id":"sequelize-auto-ts@1.0.8","scripts":{},"_shasum":"854d4b9d87233d77fa0fbd4deec6d09f4d14affc","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.1","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"854d4b9d87233d77fa0fbd4deec6d09f4d14affc","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.8.tgz","integrity":"sha512-BM91jbGe40LY6VFfk0a2N6z7W3zsDzkjJ2Z7JUTtxqR4kSVIzuHRoK6NOzBYM7q4mWZBYdsvSSLaAGf8Fi7B+A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICIRk3j5pKBueD5ypH2ONOHwCCxpYWRoBHAwXtEy5wFZAiBfr0lI8d84ei/wOIPGlXm1uxt+MzaAZCWSlkQ9JIrBPQ=="}]}},"1.0.9":{"name":"sequelize-auto-ts","version":"1.0.9","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"db1d882cebb400575512674b1b7796455514ea5e","_id":"sequelize-auto-ts@1.0.9","scripts":{},"_shasum":"0697bf940f629c08a4ba5cce81604f89ad9a3279","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.1","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"0697bf940f629c08a4ba5cce81604f89ad9a3279","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.9.tgz","integrity":"sha512-sFoxzWKKPm3Lbczevd3EPqIBOiVZJ/FLDQ15S9E0CdjA4hrzl3hm6aUismwyyrNwHm37UiTULncb+C78efDq/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFyYsKrpoiRialoIxb46HDw8tEXv9dF6Hw/1Kbe9mjxAiB3S/BaflIjFWHvCqGDClqn3aYDHfMqfaVZO7VTN8LUcA=="}]}},"1.0.10":{"name":"sequelize-auto-ts","version":"1.0.10","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"942506ed6059c830d63b681855c66ad93adee278","_id":"sequelize-auto-ts@1.0.10","scripts":{},"_shasum":"c5a0af404b4adaab92d3b2c02cd2e9f043ec6e71","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.7","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"c5a0af404b4adaab92d3b2c02cd2e9f043ec6e71","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.10.tgz","integrity":"sha512-vA6Y5Vq3TBhgFBaf+IA8vyDjGVbpaJr2maP7CIooYjaTNTP9tZ8FQ7W+s9gieHAHsGk2ahDcznV9gCQZkFZbHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG2yhCtKLQYryeZ2rTD+d1rSD9Iw9rl3w2Jg/1F3q7/JAiA3Achsl1thWqXQKYFlEqJtuZx1ovQj9Opo4Tr7vwZJ8Q=="}]}},"1.0.11":{"name":"sequelize-auto-ts","version":"1.0.11","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"942506ed6059c830d63b681855c66ad93adee278","_id":"sequelize-auto-ts@1.0.11","scripts":{},"_shasum":"ba830a30a7b197435b423423c7bd6f69577c1c10","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"ba830a30a7b197435b423423c7bd6f69577c1c10","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.11.tgz","integrity":"sha512-bskKvWsShO+Ok/EqdYvNnddn8prnZmmr0e0bOo3EF3G47N0X1wy3uKviTT2ZniGYNpQ/QNzZ/EBziB338jePIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD/I4Reny6TEH5Vme5xWNrXkSJH0sY9qo3Ph0P5daKmzgIhAOlEYEOjLlxVpbfgvMsc5/n+gj1hiy2Dhk8ZXH/kXocb"}]}},"1.0.12":{"name":"sequelize-auto-ts","version":"1.0.12","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"ccd95f08f9f2b03f4f3780174b6aede012f5e226","_id":"sequelize-auto-ts@1.0.12","scripts":{},"_shasum":"bb3cfb20e9771691b0f268a137385ba5fd39965a","_from":".","_npmVersion":"3.5.2","_nodeVersion":"0.12.9","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"bb3cfb20e9771691b0f268a137385ba5fd39965a","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.12.tgz","integrity":"sha512-XEnf4bfW5Iu+75hJvPV8pn3hC4alLsI4mmXGUvjFQogNLV6xhXb9dqe5rGDcuOoU85pPwOd/4vUqlawvMSeuhQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEG+qbrPxQxeAFdBWF/5mFCWvhmtxDs3BhKgSa629T4AiEAiKWej+zdVf0kQmr8QZB8Wit0WzY0TYLyYmS++JSJhZ0="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sequelize-auto-ts-1.0.12.tgz_1483765336378_0.0028351114597171545"}},"1.0.14":{"name":"sequelize-auto-ts","version":"1.0.14","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"1a6ec64d48abfdfd4e9246765d9b2a0232ef4a5b","_id":"sequelize-auto-ts@1.0.14","scripts":{},"_shasum":"e53991449b5c6013667a3c7ac0442ca5d97f199b","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.9","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"e53991449b5c6013667a3c7ac0442ca5d97f199b","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.14.tgz","integrity":"sha512-Tq7MECfNkJoJO9ZEN4YV7lU/gmgClXJpZ0AJVJJi6cqfQR+umgwQBzodQIXb9Q0oOKvuzoza3ZRSYfP423lqXw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIALkFM8+zALmI3oK32hoWyG56wlQD5jY/Ra6HaI6AyycAiBLbsKuj6eaHmMb0Z7q1N9NKiAf0Z305/mB3lhIisN0Kg=="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sequelize-auto-ts-1.0.14.tgz_1484579126916_0.8779234932735562"}},"1.0.15":{"name":"sequelize-auto-ts","version":"1.0.15","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"d458221e25045dfd83c2a2c0c40671cafffe3665","_id":"sequelize-auto-ts@1.0.15","scripts":{},"_shasum":"9fff992d996fba9efe90ff75e14a79fbb7f9a3f9","_from":".","_npmVersion":"3.5.2","_nodeVersion":"0.12.9","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"9fff992d996fba9efe90ff75e14a79fbb7f9a3f9","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.15.tgz","integrity":"sha512-y9qiktWGOToZ1rs1MQ3jWavsikTN2SMH8Ym0VElLwgAKsSsKLVs0MYMiNs2umvUbSSYAcdZklzAtFh/6IL9jSQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAs4EuLXqZHjwQMXrmgbKpDfhcjX9TRfFgKiaLdPa9StAiEAj8wGydjj/mcjoY2TZ6fTqvRguhaC3Ks9m621y50RZKc="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sequelize-auto-ts-1.0.15.tgz_1490245508628_0.42208776460029185"}},"1.0.16":{"name":"sequelize-auto-ts","version":"1.0.16","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"b4dd9c8970dd06237dad150015ce019a04cd9dce","_id":"sequelize-auto-ts@1.0.16","scripts":{},"_shasum":"515a91f74bdf850c7bb2838ece336e1853c5d637","_from":".","_npmVersion":"3.5.2","_nodeVersion":"0.12.9","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"515a91f74bdf850c7bb2838ece336e1853c5d637","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.16.tgz","integrity":"sha512-JguThOANzrJEvGSK40yrIAjO8cZI7npx4lNof7ssvQt5e+gCIRr1fKSUQroNT9RclfY1p50gxF2O+5YG7Y8nPA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD9/0/k/Th9xhGXu86W5eREfmswB/9Qj0TjssbYlKQiNgIhAPomGScB3nipqD5YoCZ/C4bGyqAvWUT4cFCp+lvx8T+a"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/sequelize-auto-ts-1.0.16.tgz_1491189774482_0.48816331988200545"}},"1.0.17":{"name":"sequelize-auto-ts","version":"1.0.17","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"9367d9365b54c8632d7f4f611b44a75eb3b82564","_id":"sequelize-auto-ts@1.0.17","scripts":{},"_shasum":"e2a67f764d1bccc19a99a062597a62e941508b13","_from":".","_npmVersion":"3.5.2","_nodeVersion":"0.12.9","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"e2a67f764d1bccc19a99a062597a62e941508b13","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.17.tgz","integrity":"sha512-O2P36BabeuBf3nfyHSAwvyY0cs8f8LHg+bNRwThghjJq7mqaxVf5r7SqVhQfwPv3VNR7KHKV7fNbik0x+eCrVQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHhEeyCLbyGLxXsUxS4HERYtgS0FRG1jqz6DfFk5CLv4AiEAjKgzV26OCnewu0M+R92GIy67uYmv5brhEJyOZ8Kpe8w="}]},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/sequelize-auto-ts-1.0.17.tgz_1493499539022_0.039060975657776"}},"1.0.18":{"name":"sequelize-auto-ts","version":"1.0.18","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"git+https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"d537eb5cab9f911569f327c3f276b7bdabef7a13","_id":"sequelize-auto-ts@1.0.18","scripts":{},"_shasum":"aa88ae17ca688a27ff8962c391f17c80aad97f75","_from":".","_npmVersion":"3.5.2","_nodeVersion":"0.12.9","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"aa88ae17ca688a27ff8962c391f17c80aad97f75","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.18.tgz","integrity":"sha512-wh5gNdiA7TlZt9GiG9LVSuE7yXmXV9eHT39lpRta3etgewQ4DFmxbz7gxNYVO4aEspwA5rDPGnhZJd+SIgTv0A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDDnOmBCCqoB0Zf9gqhXhiL+1bfipRkOiiSc3GX9VC+YAiAlQB0pfHKN9VwA1C2DyL4I3bl+GgQCeLy4kImU+EGO9A=="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-auto-ts-1.0.18.tgz_1496699901486_0.48454288742505014"}},"1.0.19":{"name":"sequelize-auto-ts","version":"1.0.19","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"d537eb5cab9f911569f327c3f276b7bdabef7a13","_id":"sequelize-auto-ts@1.0.19","scripts":{},"_shasum":"17aab381893de9a633ea96b9ab85b26f87164a53","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.18","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"17aab381893de9a633ea96b9ab85b26f87164a53","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.19.tgz","integrity":"sha512-FbXjDcWbcGMpwIiTBUWwj+BGYGW6TO8RZ4Qv1K/6Kq43n/+Uo5Uas7UmCMBpLqeZSIE8bx/6hKjzPDxQRWB6nQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDgB2AuG8QYWgoIY5J+GcWmNZesLD1MjOIHGPZCJ41XsgIhAOk5L7B0nNUTfAw22NEZF3do2tgR93uZmj38SqG+9v/r"}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-auto-ts-1.0.19.tgz_1514774306225_0.630568431224674"}},"1.0.20":{"name":"sequelize-auto-ts","version":"1.0.20","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"ebaaa297043fc77b43d58a48c2a43b6780049069","_id":"sequelize-auto-ts@1.0.20","scripts":{},"_shasum":"5c8cd8fad1e808a083b315c972f36a7b31164210","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.18","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"5c8cd8fad1e808a083b315c972f36a7b31164210","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.20.tgz","integrity":"sha512-7TJDPq1MRepOeHPADM6/3yTcQyGNiYChpxWxgprEWRunM2oVhJVpAIyZkp670arnd2qdz3OdfcbYxp3GHISUpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqYL10wU1/V5FLTCy9Zqe6pLidq5WQU55ztNXWJq7nKAIgGsR3fYVPoCIGTOO1PnzyRUhU9IKgr7OBxg+wfC6ur/4="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-auto-ts-1.0.20.tgz_1514778945479_0.7924130333121866"}},"1.0.21":{"name":"sequelize-auto-ts","version":"1.0.21","author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"description":"Generates Sequelize definition statements and TypeScript interfaces for tables in a database.","keywords":["Sequelize","orm","generate","template","script","typescript"],"homepage":"https://github.com/samuelneff/sequelize-auto-ts","bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"dependencies":{"sequelize":"1.7.8","script-template":">=1.0.0","prompt":"0.2.13","mysql":"2.3.2"},"devDependencies":{"jasmine-node":"1.14.3"},"license":"MIT","engines":{"node":">=0.10.26"},"gitHead":"fa8de8fc4473a5dd0a5a542c0ffda14366851ce8","_id":"sequelize-auto-ts@1.0.21","scripts":{},"_shasum":"27c7e3614e2d8bc1cc331d195ccb6a08c1917df5","_from":".","_npmVersion":"2.7.5","_nodeVersion":"0.12.18","_npmUser":{"name":"samuelrn","email":"npmjs@serndesign.com"},"maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"dist":{"shasum":"27c7e3614e2d8bc1cc331d195ccb6a08c1917df5","tarball":"https://registry.npmjs.org/sequelize-auto-ts/-/sequelize-auto-ts-1.0.21.tgz","integrity":"sha512-CDy8SkusKOzZ06/CNTlG8mjg4g+crHkuJDZmRgdsHOoPa6/1qsdhGY2ss8p1k8hokMB5NorxlycCtzfd4tXbAQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDarZ8vlweNl28q+We4XrX/0SYJ8C9c4fmSMbpsOAZNzwIgF7FUNYzVaCrpYD8pqFpvNX4wG4r7lKKdLtqE+LksTfw="}]},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sequelize-auto-ts-1.0.21.tgz_1514785306146_0.39951984444633126"}}},"readme":"sequelize-auto-ts\r\n=================\r\n\r\nGenerate Sequelize definition statements and compatible TypeScript definitions from a database schema\r\n\r\n# Running sequelize-auto-ts\r\n\r\nUse node to execute `lib\\cli.ts` and pass in four required parameters: database, username, password, and target directory.\r\n\r\n```\r\nc:\\sequelize-auto-ts>node lib\\cli.ts world root rootPassword c:\\my-project\\src\\models\r\n```\r\n\r\n# Version 1.0.3 documentation\r\n\r\nI pushed version 1.0.3 to NPM on 1/18/15 but have not updated the documentation yet. This version has a lot of new features. I'll update the documentation as soon as I can. If there is anything specific that should be updated or questions you have please create an issue in GitHub.\r\n\r\n# Generated files\r\n\r\nsequelize-auto-ts will generate two custom files in the target directory and copy one or two definition files.\r\n\r\n`sequelize-types.ts`\r\n\r\nThis file contains interfaces for all of the tables in the database. Three interfaces are created for each table as well as an interface for each ID field.  These are explained in detail below.\r\n\r\n`sequelize-models.ts`\r\n\r\nThis file contains all of the Sequelize model definitions. This module exposes an `initialize` function which defines all of the models (tables) within Sequelize. This method must be called before any of the sequelize-auto-ts generated instances can be used. In addition to the `instance` method, a single model variable is exposed for each table which is then used to query individual tables.\r\n\r\n`sequelize.d.ts`\r\n\r\nThis is definitions for all of the core Sequelize functionality. It is copied to the target if it is not found in the target project. The project is defined as the first parent folder of the target directory that contains a `package.json` file. If you prefer to place all of your library definition files in a specific directory, move this file to your desired directory within your project and re-run sequelize-auto-ts. sequelize-auto-ts will find the file and calculate the proper relative paths to be used in `sequelize-models.ts` and `sequelize-types.ts`.\r\n\r\n`node.d.ts`\r\n\r\nThis is the definition file for Node. As with `sequelize.d.ts` if it is found in the target project the existing definition file will be referenced. If the file is not found, then it is copied to the target directory. Note that sequelize-auto-ts will not reference any definition file underneath `node_modules`.\r\n\r\n# Demo Database Schema\r\n\r\nFor the rest of the explanation we'll use a very simple database with two tables and a relationship between them. It is defined as follows:\r\n\r\n```SQL\r\nCREATE TABLE Roles (\r\n\tRoleID INTEGER PRIMARY KEY AUTO_INCREMENT,\r\n\tRoleName VARCHAR(255) NOT NULL\r\n);\r\n\r\nCREATE TABLE Users (\r\n\tUserID INTEGER PRIMARY KEY AUTO_INCREMENT,\r\n\tRoleID INTEGER NOT NULL,\r\n\tUserName VARCHAR(255) NOT NULL,\r\n\r\n\tFOREIGN KEY (RoleID) REFERENCES Roles(RoleID)\r\n);\r\n```\r\n\r\n# Generated Interfaces\r\n\r\nFor this simple database with just two tables, sequelize-auto-ts will generate eight interfaces in `sequelize-types.ts`.\r\n\r\n```JS\r\nexport interface RoleID { RoleID:number; }\r\nexport interface UserID { UserID:number; }\r\n```\r\n\r\nFirst we generate an interface for all recognized ID fields. This is a bit of a trick to help prevent accidentally assigning an ID type from one table to another, example, passing a `UserID` when you meant to pass a `RoleID`. Note the values are actually just a number, not an object containing the field and number.\r\n\r\n```JS\r\nexport interface RolePojo\r\n{\r\n    RoleID?:number;\r\n    RoleName?:string;\r\n    users?:UserPojo[];\r\n}\r\n\r\nexport interface UserPojo\r\n{\r\n    UserID?:number;\r\n    RoleID?:number;\r\n    UserName?:string;\r\n    role?:RolePojo;\r\n}\r\n```\r\n\r\nNext for each table we genearte a plain JavaScript object, with the table name followed by `Pojo`. This base type is used in some input methods so they can easily be generated from scratch and are also returned from instance methods (defined below) by the `toJSON` method.\r\n\r\n```JS\r\nexport interface RoleInstance extends sequelize.Instance<RoleInstance, RolePojo>, RolePojo { }\r\n\r\nexport interface UserInstance extends sequelize.Instance<UserInstance, UserPojo>, UserPojo { }\r\n```\r\n\r\nEach table then gets an `Instance` interface. This interface represents the object actually returned by Sequelize for each database entity. This interface extends the corresponding `Pojo` interface and thus has an interface field for every database field. It additionally extends `sequelize.Instance` which defines all of the Sequelize methods and fields available on instances, such as `get()`, `set()`, `save()`, etc. For a full list of available methods see the Sequelize documentation or refer to `sequelize.d.ts`.\r\n\r\nNote that the `Instance` instances have circular references and cannot be directly converted to JSON. Instead call either the `toJSON()` method or use the `values` field to return the plain `Pojo` corresponding to the `Instance` which can then be converted to JSON.\r\n\r\n```JS\r\nexport interface RolesModel extends sequelize.Model<RoleInstance, RolePojo> {\r\n    getRole:(role:RolePojo) => sequelize.PromiseT<RoleInstance>;\r\n}\r\n\r\nexport interface UsersModel extends sequelize.Model<UserInstance, UserPojo> {\r\n    getUser:(user:UserPojo) => sequelize.PromiseT<UserInstance>;\r\n}\r\n```\r\n\r\nLastly a `Model` interface is defined for each table. Later in the `sequelize-models.ts` file we'll instantiate a single variable for each model which is used to query the database and act on the table. In addition to the standard methods and fields defined by Sequelize on each model, sequelize-auto-ts also provides a helper `getXxx()` method which is a shortcut for `get()`. Using `getXxx()` you can pass a pojo directly, containing any subset of fields, and Sequelize will query for a single row matching the values provided.\r\n\r\nNote that you are unlikely to ever define an instance of the model interfaces yourself--they are provided in `sequelize-model.ts`.\r\n\r\n# Generated Sequelize Definitions and Models\r\n\r\nOne model for each table along with the proper initialization (`define()`) call is generated in `sequelize-models.ts`.\r\n\r\nThe important method is `initialize()`:\r\n\r\n```JS\r\nexport function initialize(database:string, username:string, password:string, options:sequelize.Options):void {\r\n   ...\r\n}\r\n```\r\n\r\nCall this function to define all of the models within Sequelize. It must be called once prior to using Sequelize through sequelize-auto-ts generated types.\r\n\r\nThen for each table, a single model instance is defined:\r\n\r\n```JS\r\nexport var Roles:types.RolesModel;\r\nexport var Users:types.UsersModel;\r\n```\r\n\r\nThis allows you to quickly query the database through Sequelize's API and return typed objects. For example, to query a list of users:\r\n\r\n```JS\r\nimport types = require('./mysql-userdemo-generated/sequelize-types');\r\nimport models = require('./mysql-userdemo-generated/sequelize-models');\r\n\r\nmodels.initialize(database, username, password, null);\r\n\r\nmodels.Users.findAll().complete((err:Error, users:types.UserInstance[]) => {\r\n\r\n    console.log('Returned ' + users.length + ' users.');\r\n\r\n    users.forEach( (user:types.UserPojo) => {\r\n        console.log(user.UserName + ' (' + user.UserID + ')');\r\n    })\r\n});\r\n```\r\n\r\nIn the above example, `findAll().complete()` takes a typed callback. If the argument types are not defined correctly, TypeScript will give a proper syntax error. \r\n\r\n\r\n\r\n\r\n# Table names on MySQL and Windows\r\n\r\nTable and database names are stored on disk using the lettercase specified in the CREATE TABLE or\r\nCREATE DATABASE statement, but MySQL converts them to lowercase on lookup. Name comparisons are not case sensitive.\r\n\r\nhttp://dev.mysql.com/doc/refman/5.0/en/identifier-case-sensitivity.html\r\n\r\nlower_case_table_names=2\r\n\r\n","maintainers":[{"name":"samuelrn","email":"npmjs@serndesign.com"}],"time":{"modified":"2022-06-26T17:48:06.933Z","created":"2014-06-24T20:16:10.426Z","1.0.0":"2014-06-24T20:16:10.426Z","1.0.1":"2014-07-27T06:25:29.288Z","1.0.2":"2014-08-05T02:48:52.988Z","1.0.3":"2015-01-18T13:41:16.090Z","1.0.4":"2015-01-18T14:54:23.425Z","1.0.5":"2015-02-15T21:05:34.309Z","1.0.6":"2015-02-26T05:58:30.165Z","1.0.7":"2015-04-05T14:08:37.480Z","1.0.8":"2015-04-05T17:09:49.390Z","1.0.9":"2015-04-13T01:48:56.922Z","1.0.10":"2015-10-03T03:46:22.387Z","1.0.11":"2016-01-17T20:20:27.794Z","1.0.12":"2017-01-07T05:02:17.169Z","1.0.14":"2017-01-16T15:05:29.111Z","1.0.15":"2017-03-23T05:05:10.826Z","1.0.16":"2017-04-03T03:22:56.745Z","1.0.17":"2017-04-29T20:58:59.637Z","1.0.18":"2017-06-05T21:58:22.762Z","1.0.19":"2018-01-01T02:38:27.414Z","1.0.20":"2018-01-01T03:55:46.675Z","1.0.21":"2018-01-01T05:41:47.361Z"},"homepage":"https://github.com/samuelneff/sequelize-auto-ts","keywords":["Sequelize","orm","generate","template","script","typescript"],"repository":{"type":"git","url":"https://github.com/samuelneff/sequelize-auto-ts.git"},"author":{"name":"Samuel Neff","email":"sam@serndesign.com"},"bugs":{"url":"https://github.com/samuelneff/sequelize-auto-ts/issues"},"license":"MIT","readmeFilename":"README.md"}