create-nextjs-cms 0.5.56 → 0.5.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (337) hide show
  1. package/package.json +4 -4
  2. package/templates/default/CHANGELOG.md +140 -140
  3. package/templates/default/_gitignore +1 -0
  4. package/templates/default/app/(rootLayout)/admins/page.tsx +7 -2
  5. package/templates/default/app/(rootLayout)/advanced/page.tsx +8 -2
  6. package/templates/default/app/(rootLayout)/browse/[section]/[page]/page.tsx +17 -3
  7. package/templates/default/app/(rootLayout)/categorized/[section]/page.tsx +9 -1
  8. package/templates/default/app/(rootLayout)/dashboard-new/page.tsx +7 -0
  9. package/templates/default/app/(rootLayout)/edit/[section]/[itemId]/page.tsx +11 -1
  10. package/templates/default/app/(rootLayout)/layout.tsx +8 -1
  11. package/templates/default/app/(rootLayout)/new/[section]/page.tsx +9 -1
  12. package/templates/default/app/(rootLayout)/section/[section]/page.tsx +10 -1
  13. package/templates/default/app/(rootLayout)/settings/page.tsx +7 -1
  14. package/templates/default/app/api/trpc/[trpc]/route.ts +1 -1
  15. package/templates/default/app/api/video/route.ts +1 -1
  16. package/templates/default/app/layout.tsx +1 -1
  17. package/templates/default/app/providers.tsx +4 -4
  18. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/LICENSE +191 -0
  19. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/README.md +118 -0
  20. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/install/build.js +38 -0
  21. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/install/check.js +14 -0
  22. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/channel.js +177 -0
  23. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/colour.js +195 -0
  24. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/composite.js +212 -0
  25. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/constructor.js +499 -0
  26. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/index.d.ts +1971 -0
  27. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/index.js +16 -0
  28. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/input.js +809 -0
  29. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/is.js +143 -0
  30. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/libvips.js +207 -0
  31. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/operation.js +1016 -0
  32. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/output.js +1666 -0
  33. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/resize.js +595 -0
  34. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/sharp.js +121 -0
  35. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/lib/utility.js +291 -0
  36. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/package.json +202 -0
  37. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/binding.gyp +298 -0
  38. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/common.cc +1130 -0
  39. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/common.h +402 -0
  40. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/metadata.cc +346 -0
  41. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/metadata.h +90 -0
  42. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/operations.cc +499 -0
  43. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/operations.h +137 -0
  44. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/pipeline.cc +1814 -0
  45. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/pipeline.h +408 -0
  46. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/sharp.cc +43 -0
  47. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/stats.cc +186 -0
  48. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/stats.h +62 -0
  49. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/utilities.cc +288 -0
  50. package/templates/default/apps/cms/node_modules/next/node_modules/_tmp_40516_de1b9f7e36eccb968b79dbd2b8c388ea/src/utilities.h +22 -0
  51. package/templates/default/components/BrowsePage.tsx +4 -4
  52. package/templates/default/components/DashboardNewPage.tsx +252 -0
  53. package/templates/default/components/LogPage.tsx +2 -3
  54. package/templates/default/components/SettingsPage.tsx +1 -1
  55. package/templates/default/components/form/Form.tsx +5 -5
  56. package/templates/default/components/form/helpers/util.ts +5 -5
  57. package/templates/default/dynamic-schemas/schema.ts +381 -381
  58. package/templates/default/next-env.d.ts +1 -1
  59. package/templates/default/next.config.ts +24 -0
  60. package/templates/default/package.json +23 -17
  61. package/templates/default/{middleware.ts → proxy.ts} +3 -4
  62. package/templates/default/test/prize.section.ts +58 -0
  63. package/templates/default/tsconfig.json +6 -3
  64. package/templates/default/app/api/placeholder/route.ts +0 -7
  65. package/templates/default/components/form/helpers/_section-hot-reload.js +0 -11
  66. package/templates/default/public/tinymce/CHANGELOG.md +0 -3940
  67. package/templates/default/public/tinymce/README.md +0 -77
  68. package/templates/default/public/tinymce/bower.json +0 -27
  69. package/templates/default/public/tinymce/composer.json +0 -52
  70. package/templates/default/public/tinymce/icons/default/icons.js +0 -239
  71. package/templates/default/public/tinymce/icons/default/icons.min.js +0 -1
  72. package/templates/default/public/tinymce/icons/default/index.js +0 -7
  73. package/templates/default/public/tinymce/license.md +0 -9
  74. package/templates/default/public/tinymce/models/dom/index.js +0 -7
  75. package/templates/default/public/tinymce/models/dom/model.js +0 -8980
  76. package/templates/default/public/tinymce/models/dom/model.min.js +0 -1
  77. package/templates/default/public/tinymce/notices.txt +0 -21
  78. package/templates/default/public/tinymce/package.json +0 -32
  79. package/templates/default/public/tinymce/plugins/accordion/index.js +0 -7
  80. package/templates/default/public/tinymce/plugins/accordion/plugin.js +0 -1373
  81. package/templates/default/public/tinymce/plugins/accordion/plugin.min.js +0 -1
  82. package/templates/default/public/tinymce/plugins/advlist/index.js +0 -7
  83. package/templates/default/public/tinymce/plugins/advlist/plugin.js +0 -473
  84. package/templates/default/public/tinymce/plugins/advlist/plugin.min.js +0 -1
  85. package/templates/default/public/tinymce/plugins/anchor/index.js +0 -7
  86. package/templates/default/public/tinymce/plugins/anchor/plugin.js +0 -237
  87. package/templates/default/public/tinymce/plugins/anchor/plugin.min.js +0 -1
  88. package/templates/default/public/tinymce/plugins/autolink/index.js +0 -7
  89. package/templates/default/public/tinymce/plugins/autolink/plugin.js +0 -315
  90. package/templates/default/public/tinymce/plugins/autolink/plugin.min.js +0 -1
  91. package/templates/default/public/tinymce/plugins/autoresize/index.js +0 -7
  92. package/templates/default/public/tinymce/plugins/autoresize/plugin.js +0 -221
  93. package/templates/default/public/tinymce/plugins/autoresize/plugin.min.js +0 -1
  94. package/templates/default/public/tinymce/plugins/autosave/index.js +0 -7
  95. package/templates/default/public/tinymce/plugins/autosave/plugin.js +0 -249
  96. package/templates/default/public/tinymce/plugins/autosave/plugin.min.js +0 -1
  97. package/templates/default/public/tinymce/plugins/charmap/index.js +0 -7
  98. package/templates/default/public/tinymce/plugins/charmap/plugin.js +0 -997
  99. package/templates/default/public/tinymce/plugins/charmap/plugin.min.js +0 -1
  100. package/templates/default/public/tinymce/plugins/code/index.js +0 -7
  101. package/templates/default/public/tinymce/plugins/code/plugin.js +0 -98
  102. package/templates/default/public/tinymce/plugins/code/plugin.min.js +0 -1
  103. package/templates/default/public/tinymce/plugins/codesample/index.js +0 -7
  104. package/templates/default/public/tinymce/plugins/codesample/plugin.js +0 -3655
  105. package/templates/default/public/tinymce/plugins/codesample/plugin.min.js +0 -9
  106. package/templates/default/public/tinymce/plugins/directionality/index.js +0 -7
  107. package/templates/default/public/tinymce/plugins/directionality/plugin.js +0 -634
  108. package/templates/default/public/tinymce/plugins/directionality/plugin.min.js +0 -1
  109. package/templates/default/public/tinymce/plugins/emoticons/index.js +0 -7
  110. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.js +0 -1
  111. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.min.js +0 -1
  112. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.js +0 -1
  113. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.min.js +0 -1
  114. package/templates/default/public/tinymce/plugins/emoticons/plugin.js +0 -809
  115. package/templates/default/public/tinymce/plugins/emoticons/plugin.min.js +0 -1
  116. package/templates/default/public/tinymce/plugins/fullscreen/index.js +0 -7
  117. package/templates/default/public/tinymce/plugins/fullscreen/plugin.js +0 -1607
  118. package/templates/default/public/tinymce/plugins/fullscreen/plugin.min.js +0 -1
  119. package/templates/default/public/tinymce/plugins/help/index.js +0 -7
  120. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ar.js +0 -93
  121. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg-BG.js +0 -93
  122. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +0 -93
  123. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ca.js +0 -93
  124. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/cs.js +0 -93
  125. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/da.js +0 -93
  126. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/de.js +0 -93
  127. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/el.js +0 -93
  128. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/en.js +0 -93
  129. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/es.js +0 -93
  130. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/eu.js +0 -93
  131. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fa.js +0 -93
  132. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fi.js +0 -93
  133. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr-FR.js +0 -93
  134. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +0 -93
  135. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he-IL.js +0 -93
  136. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he_IL.js +0 -93
  137. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hi.js +0 -93
  138. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hr.js +0 -93
  139. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu-HU.js +0 -93
  140. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +0 -93
  141. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/id.js +0 -93
  142. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/it.js +0 -93
  143. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ja.js +0 -93
  144. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/kk.js +0 -93
  145. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko-KR.js +0 -93
  146. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +0 -93
  147. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ms.js +0 -93
  148. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb-NO.js +0 -93
  149. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +0 -93
  150. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nl.js +0 -93
  151. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pl.js +0 -93
  152. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt-BR.js +0 -93
  153. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt-PT.js +0 -93
  154. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +0 -93
  155. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +0 -93
  156. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ro.js +0 -93
  157. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ru.js +0 -93
  158. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sk.js +0 -93
  159. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl-SI.js +0 -93
  160. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +0 -93
  161. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv-SE.js +0 -93
  162. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +0 -93
  163. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th-TH.js +0 -93
  164. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th_TH.js +0 -93
  165. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/tr.js +0 -93
  166. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/uk.js +0 -93
  167. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/vi.js +0 -93
  168. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh-CN.js +0 -87
  169. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh-TW.js +0 -93
  170. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +0 -87
  171. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +0 -93
  172. package/templates/default/public/tinymce/plugins/help/plugin.js +0 -826
  173. package/templates/default/public/tinymce/plugins/help/plugin.min.js +0 -1
  174. package/templates/default/public/tinymce/plugins/image/index.js +0 -7
  175. package/templates/default/public/tinymce/plugins/image/plugin.js +0 -1691
  176. package/templates/default/public/tinymce/plugins/image/plugin.min.js +0 -1
  177. package/templates/default/public/tinymce/plugins/importcss/index.js +0 -7
  178. package/templates/default/public/tinymce/plugins/importcss/plugin.js +0 -401
  179. package/templates/default/public/tinymce/plugins/importcss/plugin.min.js +0 -1
  180. package/templates/default/public/tinymce/plugins/insertdatetime/index.js +0 -7
  181. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.js +0 -187
  182. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.min.js +0 -1
  183. package/templates/default/public/tinymce/plugins/link/index.js +0 -7
  184. package/templates/default/public/tinymce/plugins/link/plugin.js +0 -1709
  185. package/templates/default/public/tinymce/plugins/link/plugin.min.js +0 -1
  186. package/templates/default/public/tinymce/plugins/lists/index.js +0 -7
  187. package/templates/default/public/tinymce/plugins/lists/plugin.js +0 -602
  188. package/templates/default/public/tinymce/plugins/lists/plugin.min.js +0 -1
  189. package/templates/default/public/tinymce/plugins/media/index.js +0 -7
  190. package/templates/default/public/tinymce/plugins/media/plugin.js +0 -1442
  191. package/templates/default/public/tinymce/plugins/media/plugin.min.js +0 -1
  192. package/templates/default/public/tinymce/plugins/nonbreaking/index.js +0 -7
  193. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.js +0 -128
  194. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.min.js +0 -1
  195. package/templates/default/public/tinymce/plugins/pagebreak/index.js +0 -7
  196. package/templates/default/public/tinymce/plugins/pagebreak/plugin.js +0 -123
  197. package/templates/default/public/tinymce/plugins/pagebreak/plugin.min.js +0 -1
  198. package/templates/default/public/tinymce/plugins/preview/index.js +0 -7
  199. package/templates/default/public/tinymce/plugins/preview/plugin.js +0 -843
  200. package/templates/default/public/tinymce/plugins/preview/plugin.min.js +0 -1
  201. package/templates/default/public/tinymce/plugins/quickbars/index.js +0 -7
  202. package/templates/default/public/tinymce/plugins/quickbars/plugin.js +0 -654
  203. package/templates/default/public/tinymce/plugins/quickbars/plugin.min.js +0 -1
  204. package/templates/default/public/tinymce/plugins/save/index.js +0 -7
  205. package/templates/default/public/tinymce/plugins/save/plugin.js +0 -136
  206. package/templates/default/public/tinymce/plugins/save/plugin.min.js +0 -1
  207. package/templates/default/public/tinymce/plugins/searchreplace/index.js +0 -7
  208. package/templates/default/public/tinymce/plugins/searchreplace/plugin.js +0 -1367
  209. package/templates/default/public/tinymce/plugins/searchreplace/plugin.min.js +0 -1
  210. package/templates/default/public/tinymce/plugins/table/index.js +0 -7
  211. package/templates/default/public/tinymce/plugins/table/plugin.js +0 -4008
  212. package/templates/default/public/tinymce/plugins/table/plugin.min.js +0 -1
  213. package/templates/default/public/tinymce/plugins/visualblocks/index.js +0 -7
  214. package/templates/default/public/tinymce/plugins/visualblocks/plugin.js +0 -106
  215. package/templates/default/public/tinymce/plugins/visualblocks/plugin.min.js +0 -1
  216. package/templates/default/public/tinymce/plugins/visualchars/index.js +0 -7
  217. package/templates/default/public/tinymce/plugins/visualchars/plugin.js +0 -808
  218. package/templates/default/public/tinymce/plugins/visualchars/plugin.min.js +0 -1
  219. package/templates/default/public/tinymce/plugins/wordcount/index.js +0 -7
  220. package/templates/default/public/tinymce/plugins/wordcount/plugin.js +0 -480
  221. package/templates/default/public/tinymce/plugins/wordcount/plugin.min.js +0 -1
  222. package/templates/default/public/tinymce/skins/content/dark/content.css +0 -75
  223. package/templates/default/public/tinymce/skins/content/dark/content.js +0 -10
  224. package/templates/default/public/tinymce/skins/content/dark/content.min.css +0 -10
  225. package/templates/default/public/tinymce/skins/content/dark/content.min.ts +0 -3
  226. package/templates/default/public/tinymce/skins/content/dark/content.ts +0 -3
  227. package/templates/default/public/tinymce/skins/content/default/content.css +0 -70
  228. package/templates/default/public/tinymce/skins/content/default/content.js +0 -10
  229. package/templates/default/public/tinymce/skins/content/default/content.min.css +0 -10
  230. package/templates/default/public/tinymce/skins/content/default/content.min.ts +0 -3
  231. package/templates/default/public/tinymce/skins/content/default/content.ts +0 -3
  232. package/templates/default/public/tinymce/skins/content/document/content.css +0 -75
  233. package/templates/default/public/tinymce/skins/content/document/content.js +0 -10
  234. package/templates/default/public/tinymce/skins/content/document/content.min.css +0 -10
  235. package/templates/default/public/tinymce/skins/content/document/content.min.ts +0 -3
  236. package/templates/default/public/tinymce/skins/content/document/content.ts +0 -3
  237. package/templates/default/public/tinymce/skins/content/tinymce-5/content.css +0 -70
  238. package/templates/default/public/tinymce/skins/content/tinymce-5/content.js +0 -10
  239. package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.css +0 -10
  240. package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.ts +0 -3
  241. package/templates/default/public/tinymce/skins/content/tinymce-5/content.ts +0 -3
  242. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.css +0 -75
  243. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.js +0 -10
  244. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.css +0 -10
  245. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.ts +0 -3
  246. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.ts +0 -3
  247. package/templates/default/public/tinymce/skins/content/writer/content.css +0 -71
  248. package/templates/default/public/tinymce/skins/content/writer/content.js +0 -10
  249. package/templates/default/public/tinymce/skins/content/writer/content.min.css +0 -10
  250. package/templates/default/public/tinymce/skins/content/writer/content.min.ts +0 -3
  251. package/templates/default/public/tinymce/skins/content/writer/content.ts +0 -3
  252. package/templates/default/public/tinymce/skins/ui/oxide/content.css +0 -1037
  253. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.css +0 -1031
  254. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.js +0 -10
  255. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -10
  256. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.ts +0 -116
  257. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.ts +0 -116
  258. package/templates/default/public/tinymce/skins/ui/oxide/content.js +0 -10
  259. package/templates/default/public/tinymce/skins/ui/oxide/content.min.css +0 -10
  260. package/templates/default/public/tinymce/skins/ui/oxide/content.min.ts +0 -116
  261. package/templates/default/public/tinymce/skins/ui/oxide/content.ts +0 -116
  262. package/templates/default/public/tinymce/skins/ui/oxide/skin.css +0 -5615
  263. package/templates/default/public/tinymce/skins/ui/oxide/skin.js +0 -1
  264. package/templates/default/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
  265. package/templates/default/public/tinymce/skins/ui/oxide/skin.min.ts +0 -507
  266. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
  267. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -1
  268. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
  269. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.ts +0 -9
  270. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.ts +0 -9
  271. package/templates/default/public/tinymce/skins/ui/oxide/skin.ts +0 -507
  272. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.css +0 -1025
  273. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -1031
  274. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -10
  275. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -10
  276. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.ts +0 -116
  277. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.ts +0 -116
  278. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.js +0 -10
  279. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -10
  280. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.ts +0 -116
  281. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.ts +0 -116
  282. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.css +0 -5618
  283. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.js +0 -1
  284. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
  285. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.ts +0 -507
  286. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
  287. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -1
  288. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
  289. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.ts +0 -9
  290. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.ts +0 -9
  291. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.ts +0 -507
  292. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.css +0 -1037
  293. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.css +0 -1031
  294. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.js +0 -10
  295. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.css +0 -10
  296. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.ts +0 -116
  297. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.ts +0 -116
  298. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.js +0 -10
  299. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.css +0 -10
  300. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.ts +0 -116
  301. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.ts +0 -116
  302. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.css +0 -5734
  303. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.js +0 -1
  304. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.css +0 -1
  305. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.ts +0 -508
  306. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +0 -30
  307. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +0 -1
  308. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +0 -1
  309. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.ts +0 -9
  310. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.ts +0 -9
  311. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.ts +0 -508
  312. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.css +0 -1025
  313. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.css +0 -1031
  314. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.js +0 -10
  315. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +0 -10
  316. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.ts +0 -116
  317. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.ts +0 -116
  318. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.js +0 -10
  319. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.css +0 -10
  320. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.ts +0 -116
  321. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.ts +0 -116
  322. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.css +0 -5734
  323. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.js +0 -1
  324. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.css +0 -1
  325. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.ts +0 -508
  326. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +0 -30
  327. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +0 -1
  328. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +0 -1
  329. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.ts +0 -9
  330. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.ts +0 -9
  331. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.ts +0 -508
  332. package/templates/default/public/tinymce/themes/silver/index.js +0 -7
  333. package/templates/default/public/tinymce/themes/silver/theme.js +0 -34748
  334. package/templates/default/public/tinymce/themes/silver/theme.min.js +0 -1
  335. package/templates/default/public/tinymce/tinymce.d.ts +0 -3413
  336. package/templates/default/public/tinymce/tinymce.js +0 -41518
  337. package/templates/default/public/tinymce/tinymce.min.js +0 -10
@@ -1,381 +1,381 @@
1
- import {mysqlTable,int,longtext,mysqlEnum,varchar,boolean,double,timestamp} from 'drizzle-orm/mysql-core'
2
-
3
- export const AppInfoTable = mysqlTable('app_info', {
4
- id: int('id').autoincrement().notNull().primaryKey(),
5
- aboutEn: longtext('about_en').notNull(),
6
- aboutAr: longtext('about_ar').notNull(),
7
- aboutTr: longtext('about_tr').notNull(),
8
- privacyEn: longtext('privacy_en').notNull(),
9
- privacyAr: longtext('privacy_ar').notNull(),
10
- privacyTr: longtext('privacy_tr').notNull()
11
- });
12
-
13
-
14
- export const UserReportsTable = mysqlTable('user_reports', {
15
- id: int('id').autoincrement().notNull().primaryKey(),
16
- contentType: mysqlEnum('content_type', ['ad', 'user']).notNull(),
17
- reportType: mysqlEnum('report_type', ['explicit_content', 'wrong_information', 'no_longer_available', 'user_not_responsive', 'other']).notNull(),
18
- contentId: int('content_id').notNull(),
19
- catId: int('cat_id').notNull(),
20
- userId: int('user_id'),
21
- appId: varchar('app_id', { length: 36 }).notNull()
22
- });
23
-
24
-
25
- export const FeaturedSliderTable = mysqlTable('featured_slider', {
26
- id: int('id').autoincrement().notNull().primaryKey(),
27
- image: varchar('image', { length: 255 }).notNull(),
28
- titleEn: varchar('title_en', { length: 255 }).notNull(),
29
- titleAr: varchar('title_ar', { length: 255 }).notNull(),
30
- titleTr: varchar('title_tr', { length: 255 }).notNull(),
31
- descEn: longtext('desc_en').notNull(),
32
- descAr: longtext('desc_ar').notNull(),
33
- descTr: longtext('desc_tr').notNull()
34
- });
35
-
36
-
37
- export const MenuSettingsTable = mysqlTable('menu_settings', {
38
- id: int('id').autoincrement().notNull().primaryKey(),
39
- taxRate: varchar('tax_rate', { length: 255 }),
40
- hideSlider: boolean('hide_slider')
41
- });
42
-
43
-
44
- export const ServicesTable = mysqlTable('services', {
45
- id: int('id').autoincrement().notNull().primaryKey(),
46
- title: varchar('title', { length: 255 }).notNull(),
47
- catId: int('cat_id').notNull(),
48
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
49
- price: int('price'),
50
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']),
51
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
52
- desc: longtext('desc'),
53
- latitude: double('latitude'),
54
- longitude: double('longitude'),
55
- viewCount: int('view_count'),
56
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
57
- govId: int('gov_id').notNull(),
58
- districtId: int('district_id').notNull(),
59
- subDistrictId: int('sub_district_id'),
60
- townId: int('town_id')
61
- });
62
-
63
-
64
- export const RealestateTable = mysqlTable('realestate', {
65
- id: int('id').autoincrement().notNull().primaryKey(),
66
- catId: int('cat_id').notNull(),
67
- title: varchar('title', { length: 255 }).notNull(),
68
- price: int('price').notNull(),
69
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
70
- spaceGross: int('space_gross').notNull(),
71
- spaceNet: int('space_net').notNull(),
72
- latitude: double('latitude').notNull(),
73
- longitude: double('longitude').notNull(),
74
- roomCount: varchar('room_count', { length: 255 }),
75
- buildingAge: varchar('building_age', { length: 255 }),
76
- floorCount: varchar('floor_count', { length: 255 }),
77
- bathroomCount: varchar('bathroom_count', { length: 255 }),
78
- floorLocation: varchar('floor_location', { length: 255 }),
79
- heatingType: varchar('heating_type', { length: 255 }),
80
- kitchenType: varchar('kitchen_type', { length: 255 }),
81
- balcony: boolean('balcony'),
82
- lift: boolean('lift'),
83
- parkingType: varchar('parking_type', { length: 255 }),
84
- furnished: boolean('furnished'),
85
- belongsToSite: boolean('belongs_to_site'),
86
- siteName: varchar('site_name', { length: 255 }),
87
- installments: boolean('installments'),
88
- exchangeable: boolean('exchangeable'),
89
- fromWhom: varchar('from_whom', { length: 255 }),
90
- buildingMembershipFees: int('building_membership_fees'),
91
- deposit: int('deposit'),
92
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
93
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
94
- desc: longtext('desc'),
95
- viewCount: int('view_count'),
96
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
97
- govId: int('gov_id').notNull(),
98
- districtId: int('district_id').notNull(),
99
- subDistrictId: int('sub_district_id'),
100
- townId: int('town_id')
101
- });
102
-
103
-
104
- export const HomepageSliderTable = mysqlTable('homepage_slider', {
105
- id: int('id').autoincrement().notNull().primaryKey(),
106
- titleEn: varchar('title_en', { length: 255 }).notNull(),
107
- titleAr: varchar('title_ar', { length: 255 }).notNull(),
108
- titleTr: varchar('title_tr', { length: 255 }).notNull(),
109
- subtitleEn: varchar('subtitle_en', { length: 255 }).notNull(),
110
- subtitleAr: varchar('subtitle_ar', { length: 255 }).notNull(),
111
- subtitleTr: varchar('subtitle_tr', { length: 255 }).notNull(),
112
- photo: varchar('photo', { length: 255 }).notNull(),
113
- buttonUrl: varchar('button_url', { length: 255 }),
114
- buttonTextEn: varchar('button_text_en', { length: 255 }),
115
- buttonTextAr: varchar('button_text_ar', { length: 255 }),
116
- buttonTextTr: varchar('button_text_tr', { length: 255 }),
117
- buttonUrlTarget: mysqlEnum('button_url_target', ['_blank', '_self'])
118
- });
119
-
120
-
121
- export const ContestSubscribersTable = mysqlTable('contest_subscribers', {
122
- id: int('id').autoincrement().notNull().primaryKey(),
123
- contestId: varchar('contest_id', { length: 255 }).notNull(),
124
- userId: int('user_id').notNull()
125
- });
126
-
127
-
128
- export const ContestsTable = mysqlTable('contests', {
129
- id: int('id').autoincrement().notNull().primaryKey(),
130
- date: timestamp('date').notNull(),
131
- prize: varchar('prize', { length: 255 }).notNull(),
132
- winnerId: int('winner_id'),
133
- tags: varchar('tags', { length: 255 })
134
- });
135
-
136
-
137
- export const NotificationsTable = mysqlTable('notifications', {
138
- id: int('id').autoincrement().notNull().primaryKey(),
139
- type: mysqlEnum('type', ['ad_price_updated', 'ad_updated', 'ad_activated', 'ad_pending_review', 'ad_expired', 'ad_rejected', 'ad_viewed', 'ad_favorited', 'ad_shared', 'ad_reported', 'ad_deleted', 'ad_created', 'contest_winner', 'contest_reminder', 'contest_created', 'custom']).notNull(),
140
- contentId: int('content_id'),
141
- contentCatId: int('content_cat_id'),
142
- userId: int('user_id'),
143
- message: varchar('message', { length: 255 })
144
- });
145
-
146
-
147
- export const ModerationTable = mysqlTable('moderation', {
148
- id: int('id').autoincrement().notNull().primaryKey(),
149
- contentType: mysqlEnum('content_type', ['ad', 'user']).notNull(),
150
- contentId: int('content_id').notNull(),
151
- catId: int('cat_id'),
152
- userId: int('user_id').notNull(),
153
- flagged: int('flagged').notNull(),
154
- result: varchar('result', { length: 255 }).notNull()
155
- });
156
-
157
-
158
- export const JobsTable = mysqlTable('jobs', {
159
- id: int('id').autoincrement().notNull().primaryKey(),
160
- title: varchar('title', { length: 255 }).notNull(),
161
- catId: int('cat_id').notNull(),
162
- salary: int('salary'),
163
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
164
- workMethod: varchar('work_method', { length: 255 }).notNull(),
165
- minimumEducation: varchar('minimum_education', { length: 255 }).notNull(),
166
- experienceLevel: varchar('experience_level', { length: 255 }).notNull(),
167
- remote: boolean('remote'),
168
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
169
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
170
- desc: longtext('desc'),
171
- latitude: double('latitude'),
172
- longitude: double('longitude'),
173
- viewCount: int('view_count'),
174
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
175
- govId: int('gov_id').notNull(),
176
- districtId: int('district_id').notNull(),
177
- subDistrictId: int('sub_district_id'),
178
- townId: int('town_id')
179
- });
180
-
181
-
182
- export const FurnitureTable = mysqlTable('furniture', {
183
- id: int('id').autoincrement().notNull().primaryKey(),
184
- title: varchar('title', { length: 255 }).notNull(),
185
- catId: int('cat_id').notNull(),
186
- condition: varchar('condition', { length: 255 }).notNull(),
187
- price: int('price').notNull(),
188
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
189
- exchangeable: boolean('exchangeable'),
190
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
191
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
192
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
193
- desc: longtext('desc'),
194
- latitude: double('latitude'),
195
- longitude: double('longitude'),
196
- viewCount: int('view_count'),
197
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
198
- govId: int('gov_id').notNull(),
199
- districtId: int('district_id').notNull(),
200
- subDistrictId: int('sub_district_id'),
201
- townId: int('town_id')
202
- });
203
-
204
-
205
- export const FiltersTable = mysqlTable('filters', {
206
- id: int('id').autoincrement().notNull().primaryKey(),
207
- title: varchar('title', { length: 255 }).notNull(),
208
- Key: varchar('_key', { length: 255 }).notNull(),
209
- fieldName: varchar('field_name', { length: 255 }).notNull(),
210
- type: mysqlEnum('type', ['checkbox', 'select', 'text', 'finance', 'number', 'point']).notNull(),
211
- tableName: varchar('table_name', { length: 255 }),
212
- isMandatory: boolean('is_mandatory')
213
- });
214
-
215
-
216
- export const FaqTable = mysqlTable('faq', {
217
- id: int('id').autoincrement().notNull().primaryKey(),
218
- qEn: varchar('q_en', { length: 255 }).notNull(),
219
- qAr: varchar('q_ar', { length: 255 }).notNull(),
220
- qTr: varchar('q_tr', { length: 255 }),
221
- aEn: longtext('a_en').notNull(),
222
- aAr: longtext('a_ar'),
223
- aTr: longtext('a_tr')
224
- });
225
-
226
-
227
- export const ErrorsTable = mysqlTable('errors', {
228
- id: int('id').autoincrement().notNull().primaryKey(),
229
- title: varchar('title', { length: 255 }).notNull(),
230
- caseId: varchar('case_id', { length: 255 }).notNull(),
231
- userId: int('user_id'),
232
- itemSlug: varchar('item_slug', { length: 255 }),
233
- desc: longtext('desc'),
234
- isResolved: boolean('is_resolved')
235
- });
236
-
237
-
238
- export const ElectronicsTable = mysqlTable('electronics', {
239
- id: int('id').autoincrement().notNull().primaryKey(),
240
- title: varchar('title', { length: 255 }).notNull(),
241
- catId: int('cat_id').notNull(),
242
- condition: varchar('condition', { length: 255 }).notNull(),
243
- price: int('price').notNull(),
244
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
245
- exchangeable: boolean('exchangeable'),
246
- installments: boolean('installments'),
247
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
248
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
249
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
250
- desc: longtext('desc'),
251
- latitude: double('latitude'),
252
- longitude: double('longitude'),
253
- viewCount: int('view_count'),
254
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
255
- govId: int('gov_id').notNull(),
256
- districtId: int('district_id').notNull(),
257
- subDistrictId: int('sub_district_id'),
258
- townId: int('town_id')
259
- });
260
-
261
-
262
- export const ClothesTable = mysqlTable('clothes', {
263
- id: int('id').autoincrement().notNull().primaryKey(),
264
- title: varchar('title', { length: 255 }).notNull(),
265
- catId: int('cat_id').notNull(),
266
- condition: varchar('condition', { length: 255 }).notNull(),
267
- price: int('price').notNull(),
268
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
269
- exchangeable: boolean('exchangeable'),
270
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
271
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
272
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
273
- desc: longtext('desc'),
274
- latitude: double('latitude'),
275
- longitude: double('longitude'),
276
- viewCount: int('view_count'),
277
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
278
- govId: int('gov_id').notNull(),
279
- districtId: int('district_id').notNull(),
280
- subDistrictId: int('sub_district_id'),
281
- townId: int('town_id')
282
- });
283
-
284
-
285
- export const CatsTable = mysqlTable('cats', {
286
- id: int('id').autoincrement().notNull().primaryKey(),
287
- catOrder: int('cat_order').notNull(),
288
- slug: varchar('slug', { length: 255 }).notNull(),
289
- titleEn: varchar('title_en', { length: 255 }).notNull(),
290
- titleAr: varchar('title_ar', { length: 255 }).notNull(),
291
- titleTr: varchar('title_tr', { length: 255 }).notNull(),
292
- fullTitleEn: varchar('full_title_en', { length: 255 }),
293
- fullTitleAr: varchar('full_title_ar', { length: 255 }),
294
- fullTitleTr: varchar('full_title_tr', { length: 255 }),
295
- image: varchar('image', { length: 255 }),
296
- metaDescEn: varchar('meta_desc_en', { length: 255 }),
297
- metaDescAr: varchar('meta_desc_ar', { length: 255 }),
298
- metaDescTr: varchar('meta_desc_tr', { length: 255 }),
299
- filters: varchar('filters', { length: 255 }),
300
- tableName: varchar('table_name', { length: 255 }).notNull(),
301
- adCount: int('ad_count'),
302
- parentId: int('parent_id'),
303
- level: int('level')
304
- });
305
-
306
-
307
- export const CarsTable = mysqlTable('cars', {
308
- id: int('id').autoincrement().notNull().primaryKey(),
309
- modelYear: int('model_year').notNull(),
310
- model: varchar('model', { length: 255 }).notNull(),
311
- title: varchar('title', { length: 255 }).notNull(),
312
- catId: int('cat_id').notNull(),
313
- govId: int('gov_id').notNull(),
314
- districtId: int('district_id').notNull(),
315
- subDistrictId: int('sub_district_id'),
316
- townId: int('town_id'),
317
- price: int('price').notNull(),
318
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
319
- condition: varchar('condition', { length: 255 }).notNull(),
320
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
321
- engineCapacity: varchar('engine_capacity', { length: 255 }).notNull(),
322
- enginePower: varchar('engine_power', { length: 255 }).notNull(),
323
- tractionType: varchar('traction_type', { length: 255 }).notNull(),
324
- bodyType: varchar('body_type', { length: 255 }).notNull(),
325
- gearType: varchar('gear_type', { length: 255 }).notNull(),
326
- fuelType: varchar('fuel_type', { length: 255 }).notNull(),
327
- exchangeable: boolean('exchangeable'),
328
- installments: boolean('installments'),
329
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
330
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
331
- desc: longtext('desc'),
332
- latitude: double('latitude'),
333
- longitude: double('longitude'),
334
- viewCount: int('view_count'),
335
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired'])
336
- });
337
-
338
-
339
- export const CarsDbTable = mysqlTable('cars_db', {
340
- id: int('id').autoincrement().notNull().primaryKey(),
341
- name: varchar('name', { length: 255 }).notNull(),
342
- parentId: int('parent_id'),
343
- level: int('level')
344
- });
345
-
346
-
347
- export const BooksTable = mysqlTable('books', {
348
- id: int('id').autoincrement().notNull().primaryKey(),
349
- title: varchar('title', { length: 255 }).notNull(),
350
- catId: int('cat_id').notNull(),
351
- condition: varchar('condition', { length: 255 }).notNull(),
352
- price: int('price').notNull(),
353
- currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
354
- exchangeable: boolean('exchangeable'),
355
- fromWhom: varchar('from_whom', { length: 255 }).notNull(),
356
- coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
357
- coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
358
- desc: longtext('desc'),
359
- latitude: double('latitude'),
360
- longitude: double('longitude'),
361
- viewCount: int('view_count'),
362
- status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
363
- govId: int('gov_id').notNull(),
364
- districtId: int('district_id').notNull(),
365
- subDistrictId: int('sub_district_id'),
366
- townId: int('town_id')
367
- });
368
-
369
-
370
- export const AddressTable = mysqlTable('address', {
371
- id: int('id').autoincrement().notNull().primaryKey(),
372
- catOrder: int('cat_order').notNull(),
373
- titleEn: varchar('title_en', { length: 255 }).notNull(),
374
- titleAr: varchar('title_ar', { length: 255 }).notNull(),
375
- titleTr: varchar('title_tr', { length: 255 }).notNull(),
376
- image: varchar('image', { length: 255 }),
377
- path: varchar('path', { length: 255 }),
378
- parentId: int('parent_id'),
379
- level: int('level')
380
- });
381
-
1
+ import {mysqlTable,int,longtext,mysqlEnum,varchar,boolean,double,timestamp} from 'drizzle-orm/mysql-core'
2
+
3
+ export const AppInfoTable = mysqlTable('app_info', {
4
+ id: int('id').autoincrement().notNull().primaryKey(),
5
+ aboutEn: longtext('about_en').notNull(),
6
+ aboutAr: longtext('about_ar').notNull(),
7
+ aboutTr: longtext('about_tr').notNull(),
8
+ privacyEn: longtext('privacy_en').notNull(),
9
+ privacyAr: longtext('privacy_ar').notNull(),
10
+ privacyTr: longtext('privacy_tr').notNull()
11
+ });
12
+
13
+
14
+ export const UserReportsTable = mysqlTable('user_reports', {
15
+ id: int('id').autoincrement().notNull().primaryKey(),
16
+ contentType: mysqlEnum('content_type', ['ad', 'user']).notNull(),
17
+ reportType: mysqlEnum('report_type', ['explicit_content', 'wrong_information', 'no_longer_available', 'user_not_responsive', 'other']).notNull(),
18
+ contentId: int('content_id').notNull(),
19
+ catId: int('cat_id').notNull(),
20
+ userId: int('user_id'),
21
+ appId: varchar('app_id', { length: 36 }).notNull()
22
+ });
23
+
24
+
25
+ export const FeaturedSliderTable = mysqlTable('featured_slider', {
26
+ id: int('id').autoincrement().notNull().primaryKey(),
27
+ image: varchar('image', { length: 255 }).notNull(),
28
+ titleEn: varchar('title_en', { length: 255 }).notNull(),
29
+ titleAr: varchar('title_ar', { length: 255 }).notNull(),
30
+ titleTr: varchar('title_tr', { length: 255 }).notNull(),
31
+ descEn: longtext('desc_en').notNull(),
32
+ descAr: longtext('desc_ar').notNull(),
33
+ descTr: longtext('desc_tr').notNull()
34
+ });
35
+
36
+
37
+ export const MenuSettingsTable = mysqlTable('menu_settings', {
38
+ id: int('id').autoincrement().notNull().primaryKey(),
39
+ taxRate: varchar('tax_rate', { length: 255 }),
40
+ hideSlider: boolean('hide_slider')
41
+ });
42
+
43
+
44
+ export const ServicesTable = mysqlTable('services', {
45
+ id: int('id').autoincrement().notNull().primaryKey(),
46
+ title: varchar('title', { length: 255 }).notNull(),
47
+ catId: int('cat_id').notNull(),
48
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
49
+ price: int('price'),
50
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']),
51
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
52
+ desc: longtext('desc'),
53
+ latitude: double('latitude'),
54
+ longitude: double('longitude'),
55
+ viewCount: int('view_count'),
56
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
57
+ govId: int('gov_id').notNull(),
58
+ districtId: int('district_id').notNull(),
59
+ subDistrictId: int('sub_district_id'),
60
+ townId: int('town_id')
61
+ });
62
+
63
+
64
+ export const RealestateTable = mysqlTable('realestate', {
65
+ id: int('id').autoincrement().notNull().primaryKey(),
66
+ catId: int('cat_id').notNull(),
67
+ title: varchar('title', { length: 255 }).notNull(),
68
+ price: int('price').notNull(),
69
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
70
+ spaceGross: int('space_gross').notNull(),
71
+ spaceNet: int('space_net').notNull(),
72
+ latitude: double('latitude').notNull(),
73
+ longitude: double('longitude').notNull(),
74
+ roomCount: varchar('room_count', { length: 255 }),
75
+ buildingAge: varchar('building_age', { length: 255 }),
76
+ floorCount: varchar('floor_count', { length: 255 }),
77
+ bathroomCount: varchar('bathroom_count', { length: 255 }),
78
+ floorLocation: varchar('floor_location', { length: 255 }),
79
+ heatingType: varchar('heating_type', { length: 255 }),
80
+ kitchenType: varchar('kitchen_type', { length: 255 }),
81
+ balcony: boolean('balcony'),
82
+ lift: boolean('lift'),
83
+ parkingType: varchar('parking_type', { length: 255 }),
84
+ furnished: boolean('furnished'),
85
+ belongsToSite: boolean('belongs_to_site'),
86
+ siteName: varchar('site_name', { length: 255 }),
87
+ installments: boolean('installments'),
88
+ exchangeable: boolean('exchangeable'),
89
+ fromWhom: varchar('from_whom', { length: 255 }),
90
+ buildingMembershipFees: int('building_membership_fees'),
91
+ deposit: int('deposit'),
92
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
93
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
94
+ desc: longtext('desc'),
95
+ viewCount: int('view_count'),
96
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
97
+ govId: int('gov_id').notNull(),
98
+ districtId: int('district_id').notNull(),
99
+ subDistrictId: int('sub_district_id'),
100
+ townId: int('town_id')
101
+ });
102
+
103
+
104
+ export const HomepageSliderTable = mysqlTable('homepage_slider', {
105
+ id: int('id').autoincrement().notNull().primaryKey(),
106
+ titleEn: varchar('title_en', { length: 255 }).notNull(),
107
+ titleAr: varchar('title_ar', { length: 255 }).notNull(),
108
+ titleTr: varchar('title_tr', { length: 255 }).notNull(),
109
+ subtitleEn: varchar('subtitle_en', { length: 255 }).notNull(),
110
+ subtitleAr: varchar('subtitle_ar', { length: 255 }).notNull(),
111
+ subtitleTr: varchar('subtitle_tr', { length: 255 }).notNull(),
112
+ photo: varchar('photo', { length: 255 }).notNull(),
113
+ buttonUrl: varchar('button_url', { length: 255 }),
114
+ buttonTextEn: varchar('button_text_en', { length: 255 }),
115
+ buttonTextAr: varchar('button_text_ar', { length: 255 }),
116
+ buttonTextTr: varchar('button_text_tr', { length: 255 }),
117
+ buttonUrlTarget: mysqlEnum('button_url_target', ['_blank', '_self'])
118
+ });
119
+
120
+
121
+ export const ContestSubscribersTable = mysqlTable('contest_subscribers', {
122
+ id: int('id').autoincrement().notNull().primaryKey(),
123
+ contestId: varchar('contest_id', { length: 255 }).notNull(),
124
+ userId: int('user_id').notNull()
125
+ });
126
+
127
+
128
+ export const ContestsTable = mysqlTable('contests', {
129
+ id: int('id').autoincrement().notNull().primaryKey(),
130
+ date: timestamp('date').notNull(),
131
+ prize: varchar('prize', { length: 255 }).notNull(),
132
+ winnerId: int('winner_id'),
133
+ tags: varchar('tags', { length: 255 })
134
+ });
135
+
136
+
137
+ export const NotificationsTable = mysqlTable('notifications', {
138
+ id: int('id').autoincrement().notNull().primaryKey(),
139
+ type: mysqlEnum('type', ['ad_price_updated', 'ad_updated', 'ad_activated', 'ad_pending_review', 'ad_expired', 'ad_rejected', 'ad_viewed', 'ad_favorited', 'ad_shared', 'ad_reported', 'ad_deleted', 'ad_created', 'contest_winner', 'contest_reminder', 'contest_created', 'custom']).notNull(),
140
+ contentId: int('content_id'),
141
+ contentCatId: int('content_cat_id'),
142
+ userId: int('user_id'),
143
+ message: varchar('message', { length: 255 })
144
+ });
145
+
146
+
147
+ export const ModerationTable = mysqlTable('moderation', {
148
+ id: int('id').autoincrement().notNull().primaryKey(),
149
+ contentType: mysqlEnum('content_type', ['ad', 'user']).notNull(),
150
+ contentId: int('content_id').notNull(),
151
+ catId: int('cat_id'),
152
+ userId: int('user_id').notNull(),
153
+ flagged: int('flagged').notNull(),
154
+ result: varchar('result', { length: 255 }).notNull()
155
+ });
156
+
157
+
158
+ export const JobsTable = mysqlTable('jobs', {
159
+ id: int('id').autoincrement().notNull().primaryKey(),
160
+ title: varchar('title', { length: 255 }).notNull(),
161
+ catId: int('cat_id').notNull(),
162
+ salary: int('salary'),
163
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
164
+ workMethod: varchar('work_method', { length: 255 }).notNull(),
165
+ minimumEducation: varchar('minimum_education', { length: 255 }).notNull(),
166
+ experienceLevel: varchar('experience_level', { length: 255 }).notNull(),
167
+ remote: boolean('remote'),
168
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
169
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
170
+ desc: longtext('desc'),
171
+ latitude: double('latitude'),
172
+ longitude: double('longitude'),
173
+ viewCount: int('view_count'),
174
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
175
+ govId: int('gov_id').notNull(),
176
+ districtId: int('district_id').notNull(),
177
+ subDistrictId: int('sub_district_id'),
178
+ townId: int('town_id')
179
+ });
180
+
181
+
182
+ export const FurnitureTable = mysqlTable('furniture', {
183
+ id: int('id').autoincrement().notNull().primaryKey(),
184
+ title: varchar('title', { length: 255 }).notNull(),
185
+ catId: int('cat_id').notNull(),
186
+ condition: varchar('condition', { length: 255 }).notNull(),
187
+ price: int('price').notNull(),
188
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
189
+ exchangeable: boolean('exchangeable'),
190
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
191
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
192
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
193
+ desc: longtext('desc'),
194
+ latitude: double('latitude'),
195
+ longitude: double('longitude'),
196
+ viewCount: int('view_count'),
197
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
198
+ govId: int('gov_id').notNull(),
199
+ districtId: int('district_id').notNull(),
200
+ subDistrictId: int('sub_district_id'),
201
+ townId: int('town_id')
202
+ });
203
+
204
+
205
+ export const FiltersTable = mysqlTable('filters', {
206
+ id: int('id').autoincrement().notNull().primaryKey(),
207
+ title: varchar('title', { length: 255 }).notNull(),
208
+ Key: varchar('_key', { length: 255 }).notNull(),
209
+ fieldName: varchar('field_name', { length: 255 }).notNull(),
210
+ type: mysqlEnum('type', ['checkbox', 'select', 'text', 'finance', 'number', 'point']).notNull(),
211
+ tableName: varchar('table_name', { length: 255 }),
212
+ isMandatory: boolean('is_mandatory')
213
+ });
214
+
215
+
216
+ export const FaqTable = mysqlTable('faq', {
217
+ id: int('id').autoincrement().notNull().primaryKey(),
218
+ qEn: varchar('q_en', { length: 255 }).notNull(),
219
+ qAr: varchar('q_ar', { length: 255 }).notNull(),
220
+ qTr: varchar('q_tr', { length: 255 }),
221
+ aEn: longtext('a_en').notNull(),
222
+ aAr: longtext('a_ar'),
223
+ aTr: longtext('a_tr')
224
+ });
225
+
226
+
227
+ export const ErrorsTable = mysqlTable('errors', {
228
+ id: int('id').autoincrement().notNull().primaryKey(),
229
+ title: varchar('title', { length: 255 }).notNull(),
230
+ caseId: varchar('case_id', { length: 255 }).notNull(),
231
+ userId: int('user_id'),
232
+ itemSlug: varchar('item_slug', { length: 255 }),
233
+ desc: longtext('desc'),
234
+ isResolved: boolean('is_resolved')
235
+ });
236
+
237
+
238
+ export const ElectronicsTable = mysqlTable('electronics', {
239
+ id: int('id').autoincrement().notNull().primaryKey(),
240
+ title: varchar('title', { length: 255 }).notNull(),
241
+ catId: int('cat_id').notNull(),
242
+ condition: varchar('condition', { length: 255 }).notNull(),
243
+ price: int('price').notNull(),
244
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
245
+ exchangeable: boolean('exchangeable'),
246
+ installments: boolean('installments'),
247
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
248
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
249
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
250
+ desc: longtext('desc'),
251
+ latitude: double('latitude'),
252
+ longitude: double('longitude'),
253
+ viewCount: int('view_count'),
254
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
255
+ govId: int('gov_id').notNull(),
256
+ districtId: int('district_id').notNull(),
257
+ subDistrictId: int('sub_district_id'),
258
+ townId: int('town_id')
259
+ });
260
+
261
+
262
+ export const ClothesTable = mysqlTable('clothes', {
263
+ id: int('id').autoincrement().notNull().primaryKey(),
264
+ title: varchar('title', { length: 255 }).notNull(),
265
+ catId: int('cat_id').notNull(),
266
+ condition: varchar('condition', { length: 255 }).notNull(),
267
+ price: int('price').notNull(),
268
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
269
+ exchangeable: boolean('exchangeable'),
270
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
271
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
272
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
273
+ desc: longtext('desc'),
274
+ latitude: double('latitude'),
275
+ longitude: double('longitude'),
276
+ viewCount: int('view_count'),
277
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
278
+ govId: int('gov_id').notNull(),
279
+ districtId: int('district_id').notNull(),
280
+ subDistrictId: int('sub_district_id'),
281
+ townId: int('town_id')
282
+ });
283
+
284
+
285
+ export const CatsTable = mysqlTable('cats', {
286
+ id: int('id').autoincrement().notNull().primaryKey(),
287
+ catOrder: int('cat_order').notNull(),
288
+ slug: varchar('slug', { length: 255 }).notNull(),
289
+ titleEn: varchar('title_en', { length: 255 }).notNull(),
290
+ titleAr: varchar('title_ar', { length: 255 }).notNull(),
291
+ titleTr: varchar('title_tr', { length: 255 }).notNull(),
292
+ fullTitleEn: varchar('full_title_en', { length: 255 }),
293
+ fullTitleAr: varchar('full_title_ar', { length: 255 }),
294
+ fullTitleTr: varchar('full_title_tr', { length: 255 }),
295
+ image: varchar('image', { length: 255 }),
296
+ metaDescEn: varchar('meta_desc_en', { length: 255 }),
297
+ metaDescAr: varchar('meta_desc_ar', { length: 255 }),
298
+ metaDescTr: varchar('meta_desc_tr', { length: 255 }),
299
+ filters: varchar('filters', { length: 255 }),
300
+ tableName: varchar('table_name', { length: 255 }).notNull(),
301
+ adCount: int('ad_count'),
302
+ parentId: int('parent_id'),
303
+ level: int('level')
304
+ });
305
+
306
+
307
+ export const CarsTable = mysqlTable('cars', {
308
+ id: int('id').autoincrement().notNull().primaryKey(),
309
+ modelYear: int('model_year').notNull(),
310
+ model: varchar('model', { length: 255 }).notNull(),
311
+ title: varchar('title', { length: 255 }).notNull(),
312
+ catId: int('cat_id').notNull(),
313
+ govId: int('gov_id').notNull(),
314
+ districtId: int('district_id').notNull(),
315
+ subDistrictId: int('sub_district_id'),
316
+ townId: int('town_id'),
317
+ price: int('price').notNull(),
318
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
319
+ condition: varchar('condition', { length: 255 }).notNull(),
320
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
321
+ engineCapacity: varchar('engine_capacity', { length: 255 }).notNull(),
322
+ enginePower: varchar('engine_power', { length: 255 }).notNull(),
323
+ tractionType: varchar('traction_type', { length: 255 }).notNull(),
324
+ bodyType: varchar('body_type', { length: 255 }).notNull(),
325
+ gearType: varchar('gear_type', { length: 255 }).notNull(),
326
+ fuelType: varchar('fuel_type', { length: 255 }).notNull(),
327
+ exchangeable: boolean('exchangeable'),
328
+ installments: boolean('installments'),
329
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
330
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
331
+ desc: longtext('desc'),
332
+ latitude: double('latitude'),
333
+ longitude: double('longitude'),
334
+ viewCount: int('view_count'),
335
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired'])
336
+ });
337
+
338
+
339
+ export const CarsDbTable = mysqlTable('cars_db', {
340
+ id: int('id').autoincrement().notNull().primaryKey(),
341
+ name: varchar('name', { length: 255 }).notNull(),
342
+ parentId: int('parent_id'),
343
+ level: int('level')
344
+ });
345
+
346
+
347
+ export const BooksTable = mysqlTable('books', {
348
+ id: int('id').autoincrement().notNull().primaryKey(),
349
+ title: varchar('title', { length: 255 }).notNull(),
350
+ catId: int('cat_id').notNull(),
351
+ condition: varchar('condition', { length: 255 }).notNull(),
352
+ price: int('price').notNull(),
353
+ currency: mysqlEnum('currency', ['USD', 'TRY', 'SYP']).notNull(),
354
+ exchangeable: boolean('exchangeable'),
355
+ fromWhom: varchar('from_whom', { length: 255 }).notNull(),
356
+ coverphoto: varchar('coverphoto', { length: 255 }).notNull(),
357
+ coverphotoPlaceholder: varchar('coverphoto_placeholder', { length: 255 }),
358
+ desc: longtext('desc'),
359
+ latitude: double('latitude'),
360
+ longitude: double('longitude'),
361
+ viewCount: int('view_count'),
362
+ status: mysqlEnum('status', ['pending_creation', 'active', 'pending_review', 'rejected', 'expired']),
363
+ govId: int('gov_id').notNull(),
364
+ districtId: int('district_id').notNull(),
365
+ subDistrictId: int('sub_district_id'),
366
+ townId: int('town_id')
367
+ });
368
+
369
+
370
+ export const AddressTable = mysqlTable('address', {
371
+ id: int('id').autoincrement().notNull().primaryKey(),
372
+ catOrder: int('cat_order').notNull(),
373
+ titleEn: varchar('title_en', { length: 255 }).notNull(),
374
+ titleAr: varchar('title_ar', { length: 255 }).notNull(),
375
+ titleTr: varchar('title_tr', { length: 255 }).notNull(),
376
+ image: varchar('image', { length: 255 }),
377
+ path: varchar('path', { length: 255 }),
378
+ parentId: int('parent_id'),
379
+ level: int('level')
380
+ });
381
+