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 { GitRepo, Project } from '@activepieces/shared'
import { EntitySchema } from 'typeorm'
import { ApIdSchema, BaseColumnSchemaPart } from '../../../../database/database-common'
type GitRepoSchema = GitRepo & {
project: Project
}
export const GitRepoEntity = new EntitySchema<GitRepoSchema>({
name: 'git_repo',
columns: {
...BaseColumnSchemaPart,
projectId: ApIdSchema,
remoteUrl: {
type: String,
nullable: false,
},
branch: {
type: String,
nullable: false,
},
branchType: {
type: String,
nullable: false,
default: 'DEVELOPMENT',
},
sshPrivateKey: {
type: String,
nullable: true,
},
slug: {
type: String,
nullable: false,
},
},
indices: [
{
name: 'idx_git_repo_project_id',
columns: ['projectId'],
unique: true,
},
],
relations: {
project: {
type: 'one-to-one',
target: 'project',
cascade: true,
onDelete: 'CASCADE',
joinColumn: {
name: 'projectId',
referencedColumnName: 'id',
foreignKeyConstraintName: 'fk_git_repo_project_id',
},
},
},
})