The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
/*
* Copyright 2025 Daytona Platforms Inc.
* Modified by BoxLite AI, 2025-2026
* SPDX-License-Identifier: AGPL-3.0
*/
import { Column, CreateDateColumn, Entity, PrimaryColumn } from 'typeorm'
import { SystemRole } from './enums/system-role.enum'
export interface UserPublicKey {
key: string
name: string
}
@Entity()
export class User {
@PrimaryColumn()
id: string
@Column()
name: string
@Column({
default: '',
})
email: string
@Column({
default: false,
})
emailVerified: boolean
@Column('simple-json')
publicKeys: UserPublicKey[]
@Column({
type: 'enum',
enum: SystemRole,
default: SystemRole.USER,
})
role: SystemRole
@CreateDateColumn({
type: 'timestamp with time zone',
})
createdAt: Date
}