@hedhog/admin 0.48.10 → 0.48.12

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 (134) hide show
  1. package/dist/admin.module.d.ts.map +1 -1
  2. package/dist/admin.module.js +4 -1
  3. package/dist/admin.module.js.map +1 -1
  4. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +29 -0
  5. package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts.map +1 -0
  6. package/dist/dashboard/dashboard-core/dashboard-core.controller.js +38 -0
  7. package/dist/dashboard/dashboard-core/dashboard-core.controller.js.map +1 -0
  8. package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts +3 -0
  9. package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts.map +1 -0
  10. package/dist/dashboard/dashboard-core/dashboard-core.module.js +26 -0
  11. package/dist/dashboard/dashboard-core/dashboard-core.module.js.map +1 -0
  12. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +29 -0
  13. package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts.map +1 -0
  14. package/dist/dashboard/dashboard-core/dashboard-core.service.js +33 -0
  15. package/dist/dashboard/dashboard-core/dashboard-core.service.js.map +1 -0
  16. package/dist/dashboard/dashboard.module.d.ts.map +1 -1
  17. package/dist/dashboard/dashboard.module.js +5 -3
  18. package/dist/dashboard/dashboard.module.js.map +1 -1
  19. package/dist/index.d.ts +1 -0
  20. package/dist/index.d.ts.map +1 -1
  21. package/dist/index.js +1 -0
  22. package/dist/index.js.map +1 -1
  23. package/dist/setting/dto/create.dto.d.ts +9 -0
  24. package/dist/setting/dto/create.dto.d.ts.map +1 -0
  25. package/dist/setting/dto/create.dto.js +40 -0
  26. package/dist/setting/dto/create.dto.js.map +1 -0
  27. package/dist/setting/dto/delete.dto.d.ts +4 -0
  28. package/dist/setting/dto/delete.dto.d.ts.map +1 -0
  29. package/dist/setting/dto/delete.dto.js +23 -0
  30. package/dist/setting/dto/delete.dto.js.map +1 -0
  31. package/dist/setting/dto/setting-user.dto.d.ts +4 -0
  32. package/dist/setting/dto/setting-user.dto.d.ts.map +1 -0
  33. package/dist/setting/dto/setting-user.dto.js +21 -0
  34. package/dist/setting/dto/setting-user.dto.js.map +1 -0
  35. package/dist/setting/dto/setting.dto.d.ts +9 -0
  36. package/dist/setting/dto/setting.dto.d.ts.map +1 -0
  37. package/dist/setting/dto/setting.dto.js +34 -0
  38. package/dist/setting/dto/setting.dto.js.map +1 -0
  39. package/dist/setting/dto/update.dto.d.ts +6 -0
  40. package/dist/setting/dto/update.dto.d.ts.map +1 -0
  41. package/dist/setting/dto/update.dto.js +9 -0
  42. package/dist/setting/dto/update.dto.js.map +1 -0
  43. package/dist/setting/setting.controller.d.ts +102 -0
  44. package/dist/setting/setting.controller.d.ts.map +1 -0
  45. package/dist/setting/setting.controller.js +160 -0
  46. package/dist/setting/setting.controller.js.map +1 -0
  47. package/dist/setting/setting.module.d.ts +3 -0
  48. package/dist/setting/setting.module.d.ts.map +1 -0
  49. package/dist/setting/setting.module.js +31 -0
  50. package/dist/setting/setting.module.js.map +1 -0
  51. package/dist/setting/setting.service.d.ts +103 -0
  52. package/dist/setting/setting.service.d.ts.map +1 -0
  53. package/dist/setting/setting.service.js +333 -0
  54. package/dist/setting/setting.service.js.map +1 -0
  55. package/frontend/dashboard/components/create-panel.tsx.ejs +63 -63
  56. package/frontend/dashboard/components/dashboard.screen.tsx.ejs +116 -116
  57. package/frontend/dashboard/components/update-panel.tsx.ejs +80 -80
  58. package/frontend/dashboard/locales/en/dashboard.dashboard.json +11 -11
  59. package/frontend/dashboard/locales/pt/dashboard.dashboard.json +11 -11
  60. package/frontend/dashboard/react-query/handlers.ts.ejs +28 -28
  61. package/frontend/dashboard/react-query/requests.ts.ejs +56 -56
  62. package/frontend/dashboard-component/components/create-panel.tsx.ejs +130 -130
  63. package/frontend/dashboard-component/components/update-panel.tsx.ejs +164 -164
  64. package/frontend/dashboard-component/locales/en/dashboard.dashboard-component.json +11 -11
  65. package/frontend/dashboard-component/locales/pt/dashboard.dashboard-component.json +11 -11
  66. package/frontend/dashboard-component/react-query/handlers.ts.ejs +28 -28
  67. package/frontend/dashboard-component/react-query/requests.ts.ejs +61 -61
  68. package/frontend/dashboard-item/components/create-panel.tsx.ejs +108 -108
  69. package/frontend/dashboard-item/components/update-panel.tsx.ejs +141 -141
  70. package/frontend/dashboard-item/locales/en/dashboard.dashboard-item.json +11 -11
  71. package/frontend/dashboard-item/locales/pt/dashboard.dashboard-item.json +11 -11
  72. package/frontend/dashboard-item/react-query/handlers.ts.ejs +28 -28
  73. package/frontend/dashboard-item/react-query/requests.ts.ejs +58 -58
  74. package/frontend/dashboard-user/components/create-panel.tsx.ejs +108 -108
  75. package/frontend/dashboard-user/components/update-panel.tsx.ejs +137 -137
  76. package/frontend/dashboard-user/locales/en/dashboard.dashboard-user.json +11 -11
  77. package/frontend/dashboard-user/locales/pt/dashboard.dashboard-user.json +11 -11
  78. package/frontend/dashboard-user/react-query/handlers.ts.ejs +28 -28
  79. package/frontend/dashboard-user/react-query/requests.ts.ejs +58 -58
  80. package/hedhog/tables/dashboard.yaml +9 -0
  81. package/hedhog/tables/dashboard_component.yaml +34 -0
  82. package/hedhog/tables/dashboard_component_locale.yaml +24 -0
  83. package/hedhog/tables/dashboard_item.yaml +25 -0
  84. package/hedhog/tables/dashboard_locale.yaml +24 -0
  85. package/hedhog/tables/dashboard_user.yaml +25 -0
  86. package/hedhog/tables/menu.yaml +18 -0
  87. package/hedhog/tables/menu_locale.yaml +19 -0
  88. package/hedhog/tables/menu_screen.yaml +16 -0
  89. package/hedhog/tables/multifactor.yaml +6 -0
  90. package/hedhog/tables/multifactor_locale.yaml +19 -0
  91. package/hedhog/tables/role.yaml +6 -0
  92. package/hedhog/tables/role_locale.yaml +20 -0
  93. package/hedhog/tables/role_menu.yaml +18 -0
  94. package/hedhog/tables/role_route.yaml +18 -0
  95. package/hedhog/tables/role_screen.yaml +18 -0
  96. package/hedhog/tables/role_user.yaml +18 -0
  97. package/hedhog/tables/route.yaml +23 -0
  98. package/hedhog/tables/route_screen.yaml +18 -0
  99. package/hedhog/tables/screen.yaml +8 -0
  100. package/hedhog/tables/screen_locale.yaml +20 -0
  101. package/hedhog/tables/setting.yaml +27 -0
  102. package/hedhog/tables/setting_group.yaml +8 -0
  103. package/hedhog/tables/setting_group_locale.yaml +23 -0
  104. package/hedhog/tables/setting_locale.yaml +24 -0
  105. package/hedhog/tables/setting_user.yaml +21 -0
  106. package/hedhog/tables/translation.yaml +25 -0
  107. package/hedhog/tables/translation_namespace.yaml +6 -0
  108. package/hedhog/tables/user.yaml +18 -0
  109. package/hedhog/tables/user_activity.yaml +14 -0
  110. package/hedhog.yaml +142 -473
  111. package/isabelli.json +0 -0
  112. package/isabelli.xml +0 -0
  113. package/isabelli.yaml +0 -0
  114. package/package.json +1 -1
  115. package/src/admin.module.ts +4 -1
  116. package/src/dashboard/dashboard-component/dashboard-component.controller.ts +55 -55
  117. package/src/dashboard/dashboard-component/dto/create.dto.ts +36 -36
  118. package/src/dashboard/dashboard-component/dto/update.dto.ts +4 -4
  119. package/src/dashboard/dashboard-core/dashboard-core.controller.ts +12 -0
  120. package/src/dashboard/dashboard-core/dashboard-core.module.ts +14 -0
  121. package/src/dashboard/dashboard-core/dashboard-core.service.ts +16 -0
  122. package/src/dashboard/dashboard-item/dto/update.dto.ts +4 -4
  123. package/src/dashboard/dashboard-user/dto/update.dto.ts +4 -4
  124. package/src/dashboard/dashboard.module.ts +5 -3
  125. package/src/dashboard/index.ts +1 -1
  126. package/src/index.ts +2 -0
  127. package/src/setting/dto/create.dto.ts +21 -0
  128. package/src/setting/dto/delete.dto.ts +8 -0
  129. package/src/setting/dto/setting-user.dto.ts +6 -0
  130. package/src/setting/dto/setting.dto.ts +17 -0
  131. package/src/setting/dto/update.dto.ts +4 -0
  132. package/src/setting/setting.controller.ts +105 -0
  133. package/src/setting/setting.module.ts +18 -0
  134. package/src/setting/setting.service.ts +400 -0
@@ -1,28 +1,28 @@
1
- import { useDefaultMutation } from "@/hooks/use-default-mutation";
2
- import { useQuery } from "@tanstack/react-query";
3
- import { requests } from "./requests";
4
-
5
- const scope = "dashboard-user";
6
-
7
- export function useDashboardUserCreate() {
8
- const { dashboardUserCreate } = requests();
9
- return useDefaultMutation(scope, "create", dashboardUserCreate);
10
- }
11
-
12
- export function useDashboardUserDelete() {
13
- const { dashboardUserDelete } = requests();
14
- return useDefaultMutation(scope, "delete", dashboardUserDelete);
15
- }
16
-
17
- export function useDashboardUserUpdate() {
18
- const { dashboardUserUpdate } = requests();
19
- return useDefaultMutation(scope, "update", dashboardUserUpdate);
20
- }
21
-
22
- export function useDashboardUserGet(id: number) {
23
- const { dashboardUserGet } = requests();
24
- return useQuery({
25
- queryKey: [scope, "get"],
26
- queryFn: () => dashboardUserGet(id),
27
- });
28
- }
1
+ import { useDefaultMutation } from "@/hooks/use-default-mutation";
2
+ import { useQuery } from "@tanstack/react-query";
3
+ import { requests } from "./requests";
4
+
5
+ const scope = "dashboard-user";
6
+
7
+ export function useDashboardUserCreate() {
8
+ const { dashboardUserCreate } = requests();
9
+ return useDefaultMutation(scope, "create", dashboardUserCreate);
10
+ }
11
+
12
+ export function useDashboardUserDelete() {
13
+ const { dashboardUserDelete } = requests();
14
+ return useDefaultMutation(scope, "delete", dashboardUserDelete);
15
+ }
16
+
17
+ export function useDashboardUserUpdate() {
18
+ const { dashboardUserUpdate } = requests();
19
+ return useDefaultMutation(scope, "update", dashboardUserUpdate);
20
+ }
21
+
22
+ export function useDashboardUserGet(id: number) {
23
+ const { dashboardUserGet } = requests();
24
+ return useQuery({
25
+ queryKey: [scope, "get"],
26
+ queryFn: () => dashboardUserGet(id),
27
+ });
28
+ }
@@ -1,58 +1,58 @@
1
- import { useApp } from "@/hooks/use-app";
2
- import { Delete, PaginationParams, PaginationResult } from "@/types";
3
- import { DashboardUser } from "@/types/models";
4
- import { HttpMethod } from "@/types/http-method";
5
-
6
- export function requests() {
7
- const { request } = useApp();
8
-
9
- const dashboardUserList = async (params: PaginationParams) => {
10
- return request<PaginationResult<DashboardUser>>({
11
- url: "/dashboard-user",
12
- params,
13
- }).then((res) => res.data);
14
- };
15
-
16
- const dashboardUserGet = async (id: number) => {
17
- return request<DashboardUser>({
18
- url: `/dashboard-user/${id}`,
19
- }).then((res) => res.data);
20
- };
21
-
22
- const dashboardUserCreate = async (params: { data: DashboardUser }) => {
23
- const { data } = params;
24
- return request<DashboardUser>({
25
- url: "/dashboard-user",
26
- method: HttpMethod.POST,
27
- data: data,
28
- }).then((res) => res.data);
29
- };
30
-
31
- const dashboardUserDelete = async (ids: number[]) => {
32
- return request<Delete>({
33
- url: "/dashboard-user",
34
- data: { ids },
35
- method: HttpMethod.DELETE,
36
- }).then((res) => res.data);
37
- };
38
-
39
- const dashboardUserUpdate = async (params: {
40
- id: number;
41
- data: DashboardUser;
42
- }) => {
43
- const { id, data } = params;
44
- return request<DashboardUser>({
45
- url: `/dashboard-user/${id}`,
46
- method: HttpMethod.PATCH,
47
- data: data,
48
- }).then((res) => res.data);
49
- };
50
-
51
- return {
52
- dashboardUserCreate,
53
- dashboardUserUpdate,
54
- dashboardUserDelete,
55
- dashboardUserList,
56
- dashboardUserGet,
57
- };
58
- }
1
+ import { useApp } from "@/hooks/use-app";
2
+ import { Delete, PaginationParams, PaginationResult } from "@/types";
3
+ import { DashboardUser } from "@/types/models";
4
+ import { HttpMethod } from "@/types/http-method";
5
+
6
+ export function requests() {
7
+ const { request } = useApp();
8
+
9
+ const dashboardUserList = async (params: PaginationParams) => {
10
+ return request<PaginationResult<DashboardUser>>({
11
+ url: "/dashboard-user",
12
+ params,
13
+ }).then((res) => res.data);
14
+ };
15
+
16
+ const dashboardUserGet = async (id: number) => {
17
+ return request<DashboardUser>({
18
+ url: `/dashboard-user/${id}`,
19
+ }).then((res) => res.data);
20
+ };
21
+
22
+ const dashboardUserCreate = async (params: { data: DashboardUser }) => {
23
+ const { data } = params;
24
+ return request<DashboardUser>({
25
+ url: "/dashboard-user",
26
+ method: HttpMethod.POST,
27
+ data: data,
28
+ }).then((res) => res.data);
29
+ };
30
+
31
+ const dashboardUserDelete = async (ids: number[]) => {
32
+ return request<Delete>({
33
+ url: "/dashboard-user",
34
+ data: { ids },
35
+ method: HttpMethod.DELETE,
36
+ }).then((res) => res.data);
37
+ };
38
+
39
+ const dashboardUserUpdate = async (params: {
40
+ id: number;
41
+ data: DashboardUser;
42
+ }) => {
43
+ const { id, data } = params;
44
+ return request<DashboardUser>({
45
+ url: `/dashboard-user/${id}`,
46
+ method: HttpMethod.PATCH,
47
+ data: data,
48
+ }).then((res) => res.data);
49
+ };
50
+
51
+ return {
52
+ dashboardUserCreate,
53
+ dashboardUserUpdate,
54
+ dashboardUserDelete,
55
+ dashboardUserList,
56
+ dashboardUserGet,
57
+ };
58
+ }
@@ -0,0 +1,9 @@
1
+ columns:
2
+ - type: pk
3
+ - type: slug
4
+ locale:
5
+ en: Slug
6
+ pt: Slug
7
+ - type: created_at
8
+ - type: updated_at
9
+ ifNotExists: true
@@ -0,0 +1,34 @@
1
+ columns:
2
+ - type: pk
3
+ - type: slug
4
+ locale:
5
+ en: Slug
6
+ pt: Slug
7
+ - name: path
8
+ type: varchar
9
+ length: 500
10
+ locale:
11
+ en: Path
12
+ pt: Caminho
13
+ - name: min_width
14
+ type: int
15
+ default: 1
16
+ - name: max_width
17
+ type: int
18
+ isNullable: true
19
+ - name: min_height
20
+ type: int
21
+ default: 1
22
+ - name: max_height
23
+ type: int
24
+ isNullable: true
25
+ - name: width
26
+ type: int
27
+ - name: height
28
+ type: int
29
+ - name: is_resizable
30
+ type: boolean
31
+ default: true
32
+ - type: created_at
33
+ - type: updated_at
34
+ ifNotExists: true
@@ -0,0 +1,24 @@
1
+ columns:
2
+ - name: component_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: dashboard_component
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: locale_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: locale
14
+ column: id
15
+ onDelete: CASCADE
16
+ - name: name
17
+ type: varchar
18
+ length: 255
19
+ locale:
20
+ en: Name
21
+ pt: Nome
22
+ - type: created_at
23
+ - type: updated_at
24
+ ifNotExists: true
@@ -0,0 +1,25 @@
1
+ columns:
2
+ - type: pk
3
+ - name: component_id
4
+ type: fk
5
+ references:
6
+ table: dashboard_component
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: dashboard_id
10
+ type: fk
11
+ references:
12
+ table: dashboard
13
+ column: id
14
+ onDelete: CASCADE
15
+ - name: width
16
+ type: int
17
+ - name: height
18
+ type: int
19
+ - name: x_axis
20
+ type: int
21
+ - name: y_axis
22
+ type: int
23
+ - type: created_at
24
+ - type: updated_at
25
+ ifNotExists: true
@@ -0,0 +1,24 @@
1
+ columns:
2
+ - name: dashboard_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: dashboard
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: locale_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: locale
14
+ column: id
15
+ onDelete: CASCADE
16
+ - name: name
17
+ type: varchar
18
+ length: 255
19
+ locale:
20
+ en: Name
21
+ pt: Nome
22
+ - type: created_at
23
+ - type: updated_at
24
+ ifNotExists: true
@@ -0,0 +1,25 @@
1
+ columns:
2
+ - type: pk
3
+ - name: item_id
4
+ type: fk
5
+ references:
6
+ table: dashboard_item
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: user_id
10
+ type: fk
11
+ references:
12
+ table: user
13
+ column: id
14
+ onDelete: CASCADE
15
+ - name: width
16
+ type: int
17
+ - name: height
18
+ type: int
19
+ - name: x_axis
20
+ type: int
21
+ - name: y_axis
22
+ type: int
23
+ - type: created_at
24
+ - type: updated_at
25
+ ifNotExists: true
@@ -0,0 +1,18 @@
1
+ columns:
2
+ - type: pk
3
+ - name: menu_id
4
+ type: fk
5
+ isNullable: true
6
+ references:
7
+ table: menu
8
+ column: id
9
+ onDelete: CASCADE
10
+ - type: slug
11
+ - name: url
12
+ isNullable: true
13
+ - type: order
14
+ - name: icon
15
+ isNullable: true
16
+ - type: created_at
17
+ - type: updated_at
18
+ ifNotExists: true
@@ -0,0 +1,19 @@
1
+ columns:
2
+ - name: menu_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: menu
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: locale_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: locale
14
+ column: id
15
+ onDelete: CASCADE
16
+ - name: name
17
+ - type: created_at
18
+ - type: updated_at
19
+ ifNotExists: true
@@ -0,0 +1,16 @@
1
+ columns:
2
+ - name: menu_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: menu
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: screen_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: screen
14
+ column: id
15
+ onDelete: CASCADE
16
+ ifNotExists: true
@@ -0,0 +1,6 @@
1
+ columns:
2
+ - type: pk
3
+ - type: slug
4
+ - type: created_at
5
+ - type: updated_at
6
+ ifNotExists: true
@@ -0,0 +1,19 @@
1
+ columns:
2
+ - name: multifactor_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: multifactor
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: locale_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: locale
14
+ column: id
15
+ onDelete: CASCADE
16
+ - name: name
17
+ - type: created_at
18
+ - type: updated_at
19
+ ifNotExists: true
@@ -0,0 +1,6 @@
1
+ columns:
2
+ - type: pk
3
+ - type: slug
4
+ - type: created_at
5
+ - type: updated_at
6
+ ifNotExists: true
@@ -0,0 +1,20 @@
1
+ columns:
2
+ - name: role_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: role
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: locale_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: locale
14
+ column: id
15
+ onDelete: CASCADE
16
+ - name: name
17
+ - name: description
18
+ - type: created_at
19
+ - type: updated_at
20
+ ifNotExists: true
@@ -0,0 +1,18 @@
1
+ columns:
2
+ - name: role_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: role
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: menu_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: menu
14
+ column: id
15
+ onDelete: CASCADE
16
+ - type: created_at
17
+ - type: updated_at
18
+ ifNotExists: true
@@ -0,0 +1,18 @@
1
+ columns:
2
+ - name: role_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: role
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: route_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: route
14
+ column: id
15
+ onDelete: CASCADE
16
+ - type: created_at
17
+ - type: updated_at
18
+ ifNotExists: true
@@ -0,0 +1,18 @@
1
+ columns:
2
+ - name: role_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: role
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: screen_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: screen
14
+ column: id
15
+ onDelete: CASCADE
16
+ - type: created_at
17
+ - type: updated_at
18
+ ifNotExists: true
@@ -0,0 +1,18 @@
1
+ columns:
2
+ - name: role_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: role
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: user_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: user
14
+ column: id
15
+ onDelete: CASCADE
16
+ - type: created_at
17
+ - type: updated_at
18
+ ifNotExists: true
@@ -0,0 +1,23 @@
1
+ columns:
2
+ - type: pk
3
+ - name: url
4
+ - name: method
5
+ type: enum
6
+ enum:
7
+ - GET
8
+ - POST
9
+ - PATCH
10
+ - DELETE
11
+ - PUT
12
+ - OPTIONS
13
+ - HEAD
14
+ - name: description
15
+ isNullable: true
16
+ - type: created_at
17
+ - type: updated_at
18
+ indices:
19
+ - columns:
20
+ - url
21
+ - method
22
+ isUnique: true
23
+ ifNotExists: true
@@ -0,0 +1,18 @@
1
+ columns:
2
+ - name: route_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: route
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: screen_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: screen
14
+ column: id
15
+ onDelete: CASCADE
16
+ - type: created_at
17
+ - type: updated_at
18
+ ifNotExists: true
@@ -0,0 +1,8 @@
1
+ columns:
2
+ - type: pk
3
+ - type: slug
4
+ - name: icon
5
+ isNullable: true
6
+ - type: created_at
7
+ - type: updated_at
8
+ ifNotExists: true
@@ -0,0 +1,20 @@
1
+ columns:
2
+ - name: screen_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: screen
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: locale_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: locale
14
+ column: id
15
+ onDelete: CASCADE
16
+ - name: name
17
+ - name: description
18
+ - type: created_at
19
+ - type: updated_at
20
+ ifNotExists: true
@@ -0,0 +1,27 @@
1
+ columns:
2
+ - type: pk
3
+ - name: group_id
4
+ type: fk
5
+ references:
6
+ table: setting_group
7
+ column: id
8
+ onDelete: CASCADE
9
+ - type: slug
10
+ - name: type
11
+ type: enum
12
+ enum:
13
+ - string
14
+ - array
15
+ - number
16
+ - boolean
17
+ - json
18
+ default: string
19
+ - name: value
20
+ length: 1023
21
+ isNullable: true
22
+ - name: user_override
23
+ type: boolean
24
+ default: false
25
+ - type: created_at
26
+ - type: updated_at
27
+ ifNotExists: true
@@ -0,0 +1,8 @@
1
+ columns:
2
+ - type: pk
3
+ - name: icon
4
+ length: 31
5
+ - type: slug
6
+ - type: created_at
7
+ - type: updated_at
8
+ ifNotExists: true
@@ -0,0 +1,23 @@
1
+ columns:
2
+ - name: locale_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: locale
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: group_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: setting_group
14
+ column: id
15
+ onDelete: CASCADE
16
+ - name: name
17
+ length: 63
18
+ - name: description
19
+ length: 255
20
+ isNullable: true
21
+ - type: created_at
22
+ - type: updated_at
23
+ ifNotExists: true
@@ -0,0 +1,24 @@
1
+ columns:
2
+ - name: locale_id
3
+ type: fk
4
+ isPrimary: true
5
+ references:
6
+ table: locale
7
+ column: id
8
+ onDelete: CASCADE
9
+ - name: setting_id
10
+ type: fk
11
+ isPrimary: true
12
+ references:
13
+ table: setting
14
+ column: id
15
+ onDelete: CASCADE
16
+ - name: description
17
+ length: 255
18
+ isNullable: true
19
+ - name: name
20
+ length: 63
21
+ isNullable: true
22
+ - type: created_at
23
+ - type: updated_at
24
+ ifNotExists: true