Files
n8n_Demo/n8n-n8n-1.109.2/packages/@n8n/db/src/entities/scope.ts
2025-09-08 04:48:28 +08:00

28 lines
451 B
TypeScript
Executable File

import type { Scope as ScopeType } from '@n8n/permissions';
import { Column, Entity, PrimaryColumn } from '@n8n/typeorm';
@Entity({
name: 'scope',
})
export class Scope {
@PrimaryColumn({
type: String,
name: 'slug',
})
slug: ScopeType;
@Column({
type: String,
nullable: true,
name: 'displayName',
})
displayName: string | null;
@Column({
type: String,
nullable: true,
name: 'description',
})
description: string | null;
}