codekingpro/portable-devtools
114k
1/////////////////////////////////////////////////////////////2//3// pgAdmin 4 - PostgreSQL Tools4//5// Copyright (C) 2013 - 2024, The pgAdmin Development Team6// This software is released under the PostgreSQL Licence7//8//////////////////////////////////////////////////////////////9 10import gettext from 'sources/gettext';11import BaseUISchema from 'sources/SchemaView/base_schema.ui';12 13export default class ServerGroupSchema extends BaseUISchema {14 constructor() {15 super({16 id: undefined,17 name: null,18 user_id: undefined,19 });20 }21 22 get baseFields() {23 return [24 {25 id: 'id', label: gettext('ID'), type: 'int', group: null,26 mode: ['properties'], visible: true,27 },{28 id: 'name', label: gettext('Name'), type: 'text', group: null,29 mode: ['properties', 'edit', 'create'], noEmpty: true,30 disabled: false,31 }32 ];33 }34}35 