fix: required tables (#1063)

Reviewed-on: daoyoucloud/tachybase#1063
This commit is contained in:
sealday 2024-05-29 13:24:31 +08:00
parent 2c5275d857
commit b15d9e6790
3 changed files with 6 additions and 0 deletions

View File

@ -1,4 +1,6 @@
import { defineCollection } from '@tachybase/database';
export default defineCollection({
name: 'departmentsRoles',
dumpRules: 'required',
});

View File

@ -1,4 +1,5 @@
import { defineCollection } from '@tachybase/database';
export const ownersField = {
interface: 'm2m',
type: 'belongsToMany',
@ -29,6 +30,7 @@ export const ownersField = {
export default defineCollection({
name: 'departments',
title: '{{t("Departments")}}',
dumpRules: 'required',
tree: 'adjacency-list',
template: 'tree',
shared: true,

View File

@ -1,6 +1,8 @@
import { defineCollection } from '@tachybase/database';
export default defineCollection({
name: 'departmentsUsers',
dumpRules: 'required',
fields: [
{
type: 'boolean',