Skip to main content
Glama

mcp-google-sheets

file.entity.ts1.87 kB
import { File, FileCompression, FileType, Project } from '@activepieces/shared' import { EntitySchema } from 'typeorm' import { ApIdSchema, BaseColumnSchemaPart, BLOB_COLUMN_TYPE, JSONB_COLUMN_TYPE, } from '../database/database-common' type FileSchema = File & { project: Project } export const FileEntity = new EntitySchema<FileSchema>({ name: 'file', columns: { ...BaseColumnSchemaPart, projectId: { ...ApIdSchema, nullable: true }, platformId: { ...ApIdSchema, nullable: true }, data: { type: BLOB_COLUMN_TYPE, nullable: true, }, location: { type: String, nullable: false, }, fileName: { type: String, nullable: true, }, size: { type: Number, nullable: true, }, metadata: { type: JSONB_COLUMN_TYPE, nullable: true, }, s3Key: { type: String, nullable: true, }, type: { type: String, default: FileType.UNKNOWN, nullable: false, }, compression: { type: String, default: FileCompression.NONE, nullable: false, }, }, indices: [ { name: 'idx_file_project_id', columns: ['projectId'], }, { name: 'idx_file_type_created_desc', columns: ['type', 'created'], }, ], relations: { project: { type: 'many-to-one', target: 'project', cascade: true, onDelete: 'CASCADE', joinColumn: { name: 'projectId', foreignKeyConstraintName: 'fk_file_project_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