@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.
- package/dist/admin.module.d.ts.map +1 -1
- package/dist/admin.module.js +4 -1
- package/dist/admin.module.js.map +1 -1
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts +29 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js +38 -0
- package/dist/dashboard/dashboard-core/dashboard-core.controller.js.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts +3 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.js +26 -0
- package/dist/dashboard/dashboard-core/dashboard-core.module.js.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts +29 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.d.ts.map +1 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.js +33 -0
- package/dist/dashboard/dashboard-core/dashboard-core.service.js.map +1 -0
- package/dist/dashboard/dashboard.module.d.ts.map +1 -1
- package/dist/dashboard/dashboard.module.js +5 -3
- package/dist/dashboard/dashboard.module.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/setting/dto/create.dto.d.ts +9 -0
- package/dist/setting/dto/create.dto.d.ts.map +1 -0
- package/dist/setting/dto/create.dto.js +40 -0
- package/dist/setting/dto/create.dto.js.map +1 -0
- package/dist/setting/dto/delete.dto.d.ts +4 -0
- package/dist/setting/dto/delete.dto.d.ts.map +1 -0
- package/dist/setting/dto/delete.dto.js +23 -0
- package/dist/setting/dto/delete.dto.js.map +1 -0
- package/dist/setting/dto/setting-user.dto.d.ts +4 -0
- package/dist/setting/dto/setting-user.dto.d.ts.map +1 -0
- package/dist/setting/dto/setting-user.dto.js +21 -0
- package/dist/setting/dto/setting-user.dto.js.map +1 -0
- package/dist/setting/dto/setting.dto.d.ts +9 -0
- package/dist/setting/dto/setting.dto.d.ts.map +1 -0
- package/dist/setting/dto/setting.dto.js +34 -0
- package/dist/setting/dto/setting.dto.js.map +1 -0
- package/dist/setting/dto/update.dto.d.ts +6 -0
- package/dist/setting/dto/update.dto.d.ts.map +1 -0
- package/dist/setting/dto/update.dto.js +9 -0
- package/dist/setting/dto/update.dto.js.map +1 -0
- package/dist/setting/setting.controller.d.ts +102 -0
- package/dist/setting/setting.controller.d.ts.map +1 -0
- package/dist/setting/setting.controller.js +160 -0
- package/dist/setting/setting.controller.js.map +1 -0
- package/dist/setting/setting.module.d.ts +3 -0
- package/dist/setting/setting.module.d.ts.map +1 -0
- package/dist/setting/setting.module.js +31 -0
- package/dist/setting/setting.module.js.map +1 -0
- package/dist/setting/setting.service.d.ts +103 -0
- package/dist/setting/setting.service.d.ts.map +1 -0
- package/dist/setting/setting.service.js +333 -0
- package/dist/setting/setting.service.js.map +1 -0
- package/frontend/dashboard/components/create-panel.tsx.ejs +63 -63
- package/frontend/dashboard/components/dashboard.screen.tsx.ejs +116 -116
- package/frontend/dashboard/components/update-panel.tsx.ejs +80 -80
- package/frontend/dashboard/locales/en/dashboard.dashboard.json +11 -11
- package/frontend/dashboard/locales/pt/dashboard.dashboard.json +11 -11
- package/frontend/dashboard/react-query/handlers.ts.ejs +28 -28
- package/frontend/dashboard/react-query/requests.ts.ejs +56 -56
- package/frontend/dashboard-component/components/create-panel.tsx.ejs +130 -130
- package/frontend/dashboard-component/components/update-panel.tsx.ejs +164 -164
- package/frontend/dashboard-component/locales/en/dashboard.dashboard-component.json +11 -11
- package/frontend/dashboard-component/locales/pt/dashboard.dashboard-component.json +11 -11
- package/frontend/dashboard-component/react-query/handlers.ts.ejs +28 -28
- package/frontend/dashboard-component/react-query/requests.ts.ejs +61 -61
- package/frontend/dashboard-item/components/create-panel.tsx.ejs +108 -108
- package/frontend/dashboard-item/components/update-panel.tsx.ejs +141 -141
- package/frontend/dashboard-item/locales/en/dashboard.dashboard-item.json +11 -11
- package/frontend/dashboard-item/locales/pt/dashboard.dashboard-item.json +11 -11
- package/frontend/dashboard-item/react-query/handlers.ts.ejs +28 -28
- package/frontend/dashboard-item/react-query/requests.ts.ejs +58 -58
- package/frontend/dashboard-user/components/create-panel.tsx.ejs +108 -108
- package/frontend/dashboard-user/components/update-panel.tsx.ejs +137 -137
- package/frontend/dashboard-user/locales/en/dashboard.dashboard-user.json +11 -11
- package/frontend/dashboard-user/locales/pt/dashboard.dashboard-user.json +11 -11
- package/frontend/dashboard-user/react-query/handlers.ts.ejs +28 -28
- package/frontend/dashboard-user/react-query/requests.ts.ejs +58 -58
- package/hedhog/tables/dashboard.yaml +9 -0
- package/hedhog/tables/dashboard_component.yaml +34 -0
- package/hedhog/tables/dashboard_component_locale.yaml +24 -0
- package/hedhog/tables/dashboard_item.yaml +25 -0
- package/hedhog/tables/dashboard_locale.yaml +24 -0
- package/hedhog/tables/dashboard_user.yaml +25 -0
- package/hedhog/tables/menu.yaml +18 -0
- package/hedhog/tables/menu_locale.yaml +19 -0
- package/hedhog/tables/menu_screen.yaml +16 -0
- package/hedhog/tables/multifactor.yaml +6 -0
- package/hedhog/tables/multifactor_locale.yaml +19 -0
- package/hedhog/tables/role.yaml +6 -0
- package/hedhog/tables/role_locale.yaml +20 -0
- package/hedhog/tables/role_menu.yaml +18 -0
- package/hedhog/tables/role_route.yaml +18 -0
- package/hedhog/tables/role_screen.yaml +18 -0
- package/hedhog/tables/role_user.yaml +18 -0
- package/hedhog/tables/route.yaml +23 -0
- package/hedhog/tables/route_screen.yaml +18 -0
- package/hedhog/tables/screen.yaml +8 -0
- package/hedhog/tables/screen_locale.yaml +20 -0
- package/hedhog/tables/setting.yaml +27 -0
- package/hedhog/tables/setting_group.yaml +8 -0
- package/hedhog/tables/setting_group_locale.yaml +23 -0
- package/hedhog/tables/setting_locale.yaml +24 -0
- package/hedhog/tables/setting_user.yaml +21 -0
- package/hedhog/tables/translation.yaml +25 -0
- package/hedhog/tables/translation_namespace.yaml +6 -0
- package/hedhog/tables/user.yaml +18 -0
- package/hedhog/tables/user_activity.yaml +14 -0
- package/hedhog.yaml +142 -473
- package/isabelli.json +0 -0
- package/isabelli.xml +0 -0
- package/isabelli.yaml +0 -0
- package/package.json +1 -1
- package/src/admin.module.ts +4 -1
- package/src/dashboard/dashboard-component/dashboard-component.controller.ts +55 -55
- package/src/dashboard/dashboard-component/dto/create.dto.ts +36 -36
- package/src/dashboard/dashboard-component/dto/update.dto.ts +4 -4
- package/src/dashboard/dashboard-core/dashboard-core.controller.ts +12 -0
- package/src/dashboard/dashboard-core/dashboard-core.module.ts +14 -0
- package/src/dashboard/dashboard-core/dashboard-core.service.ts +16 -0
- package/src/dashboard/dashboard-item/dto/update.dto.ts +4 -4
- package/src/dashboard/dashboard-user/dto/update.dto.ts +4 -4
- package/src/dashboard/dashboard.module.ts +5 -3
- package/src/dashboard/index.ts +1 -1
- package/src/index.ts +2 -0
- package/src/setting/dto/create.dto.ts +21 -0
- package/src/setting/dto/delete.dto.ts +8 -0
- package/src/setting/dto/setting-user.dto.ts +6 -0
- package/src/setting/dto/setting.dto.ts +17 -0
- package/src/setting/dto/update.dto.ts +4 -0
- package/src/setting/setting.controller.ts +105 -0
- package/src/setting/setting.module.ts +18 -0
- 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,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,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,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,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,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
|