AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { ApEdition } from '@activepieces/shared'
import { EntitySchemaColumnOptions } from 'typeorm'
import { system } from '../helper/system/system'
import { AppSystemProp } from '../helper/system/system-props'
import { DatabaseType } from './database-type'
const databaseType = system.get(AppSystemProp.DB_TYPE)
export const COLLATION = databaseType === DatabaseType.PGLITE ? undefined : 'en_natural'
export const ApIdSchema = {
type: String,
length: 21,
} as EntitySchemaColumnOptions
export const BaseColumnSchemaPart = {
id: {
...ApIdSchema,
primary: true,
} as EntitySchemaColumnOptions,
created: {
name: 'created',
type: 'timestamp with time zone',
createDate: true,
} as EntitySchemaColumnOptions,
updated: {
name: 'updated',
type: 'timestamp with time zone',
updateDate: true,
} as EntitySchemaColumnOptions,
}
export function isNotOneOfTheseEditions(editions: ApEdition[]): boolean {
return !editions.includes(system.getEdition())
}