parent
2c5275d857
commit
b15d9e6790
@ -1,4 +1,6 @@
|
|||||||
import { defineCollection } from '@tachybase/database';
|
import { defineCollection } from '@tachybase/database';
|
||||||
|
|
||||||
export default defineCollection({
|
export default defineCollection({
|
||||||
name: 'departmentsRoles',
|
name: 'departmentsRoles',
|
||||||
|
dumpRules: 'required',
|
||||||
});
|
});
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import { defineCollection } from '@tachybase/database';
|
import { defineCollection } from '@tachybase/database';
|
||||||
|
|
||||||
export const ownersField = {
|
export const ownersField = {
|
||||||
interface: 'm2m',
|
interface: 'm2m',
|
||||||
type: 'belongsToMany',
|
type: 'belongsToMany',
|
||||||
@ -29,6 +30,7 @@ export const ownersField = {
|
|||||||
export default defineCollection({
|
export default defineCollection({
|
||||||
name: 'departments',
|
name: 'departments',
|
||||||
title: '{{t("Departments")}}',
|
title: '{{t("Departments")}}',
|
||||||
|
dumpRules: 'required',
|
||||||
tree: 'adjacency-list',
|
tree: 'adjacency-list',
|
||||||
template: 'tree',
|
template: 'tree',
|
||||||
shared: true,
|
shared: true,
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
import { defineCollection } from '@tachybase/database';
|
import { defineCollection } from '@tachybase/database';
|
||||||
|
|
||||||
export default defineCollection({
|
export default defineCollection({
|
||||||
name: 'departmentsUsers',
|
name: 'departmentsUsers',
|
||||||
|
dumpRules: 'required',
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
type: 'boolean',
|
type: 'boolean',
|
||||||
|
Loading…
Reference in New Issue
Block a user