Skip to main content
Glama

mcp-google-sheets

user-entity.ts1.63 kB
import { Project, User, UserIdentity } from '@activepieces/shared' import { EntitySchema } from 'typeorm' import { BaseColumnSchemaPart, TIMESTAMP_COLUMN_TYPE } from '../database/database-common' export type UserSchema = User & { projects: Project[] identity: UserIdentity } export const UserEntity = new EntitySchema<UserSchema>({ name: 'user', columns: { ...BaseColumnSchemaPart, status: { type: String, }, lastChangelogDismissed: { type: TIMESTAMP_COLUMN_TYPE, nullable: true, }, platformRole: { type: String, nullable: false, }, identityId: { type: String, nullable: false, }, externalId: { type: String, nullable: true, }, platformId: { type: String, nullable: true, }, }, indices: [ { name: 'idx_user_platform_id_email', columns: ['platformId', 'identityId'], unique: true, }, { name: 'idx_user_platform_id_external_id', columns: ['platformId', 'externalId'], unique: true, }, ], relations: { projects: { type: 'one-to-many', target: 'project', inverseSide: 'owner', }, identity: { type: 'many-to-one', target: 'user_identity', joinColumn: { name: 'identityId', referencedColumnName: 'id', }, }, }, })

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/activepieces/activepieces'

If you have feedback or need assistance with the MCP directory API, please join our Discord server