parent
							
								
									2c5275d857
								
							
						
					
					
						commit
						b15d9e6790
					
				@ -1,4 +1,6 @@
 | 
			
		||||
import { defineCollection } from '@tachybase/database';
 | 
			
		||||
 | 
			
		||||
export default defineCollection({
 | 
			
		||||
  name: 'departmentsRoles',
 | 
			
		||||
  dumpRules: 'required',
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
@ -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,
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,8 @@
 | 
			
		||||
import { defineCollection } from '@tachybase/database';
 | 
			
		||||
 | 
			
		||||
export default defineCollection({
 | 
			
		||||
  name: 'departmentsUsers',
 | 
			
		||||
  dumpRules: 'required',
 | 
			
		||||
  fields: [
 | 
			
		||||
    {
 | 
			
		||||
      type: 'boolean',
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user