Skip to main content
Glama
user.entity.ts806 B
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, OneToMany, } from 'typeorm'; import { ApiKey } from './api-key.entity'; export enum UserTier { FREE = 'free', PRO = 'pro', ENTERPRISE = 'enterprise', } @Entity('users') export class User { @PrimaryGeneratedColumn('uuid') id: string; @Column({ type: 'varchar', length: 255, unique: true }) email: string; @Column({ type: 'varchar', length: 255 }) password_hash: string; @Column({ type: 'varchar', length: 20, default: UserTier.FREE, enum: UserTier, }) tier: UserTier; @CreateDateColumn() created_at: Date; @UpdateDateColumn() updated_at: Date; // Relations @OneToMany(() => ApiKey, (apiKey) => apiKey.user, { cascade: true }) api_keys: ApiKey[]; }

Latest Blog Posts

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/aiatamai/atamai-mcp'

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