mirror of
https://github.com/nocobase/nocobase
synced 2024-11-16 21:26:31 +00:00
chore: restore file
This commit is contained in:
parent
88de3b6b82
commit
476d0b869c
@ -0,0 +1,35 @@
|
||||
import { defineCollection } from '@nocobase/database';
|
||||
|
||||
export default defineCollection({
|
||||
name: 'databaseConnections',
|
||||
duplicator: 'required',
|
||||
model: 'DatabaseConnectionModel',
|
||||
autoGenId: false,
|
||||
fields: [
|
||||
{
|
||||
type: 'string',
|
||||
name: 'name',
|
||||
primaryKey: true,
|
||||
},
|
||||
{
|
||||
type: 'string',
|
||||
name: 'description',
|
||||
},
|
||||
{
|
||||
type: 'json',
|
||||
name: 'options',
|
||||
},
|
||||
{
|
||||
type: 'hasMany',
|
||||
name: 'collections',
|
||||
target: 'remoteCollections',
|
||||
foreignKey: 'connectionName',
|
||||
},
|
||||
{
|
||||
type: 'hasMany',
|
||||
name: 'connectionsRolesResourcesScopes',
|
||||
target: 'connectionsRolesResourcesScopes',
|
||||
foreignKey: 'connectionName',
|
||||
},
|
||||
],
|
||||
});
|
Loading…
Reference in New Issue
Block a user