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 { UserIdentity } from '@activepieces/shared'
import { EntitySchema } from 'typeorm'
import { ApIdSchema, BaseColumnSchemaPart } from '../../database/database-common'
export const UserIdentityEntity = new EntitySchema<UserIdentity>({
name: 'user_identity',
columns: {
...BaseColumnSchemaPart,
email: {
type: String,
nullable: false,
unique: true,
},
password: {
type: String,
},
trackEvents: {
type: Boolean,
nullable: true,
},
newsLetter: {
type: Boolean,
nullable: true,
},
verified: {
type: Boolean,
nullable: false,
default: false,
},
firstName: {
type: String,
nullable: false,
},
lastName: {
type: String,
nullable: false,
},
tokenVersion: {
type: String,
nullable: true,
},
provider: {
type: String,
nullable: false,
},
imageUrl: {
type: String,
nullable: true,
},
lastLoggedInPlatformId: {
...ApIdSchema,
nullable: true,
},
},
indices: [
{
name: 'idx_user_identity_email',
columns: ['email'],
unique: true,
},
],
})