Files
NexaDash/apps/api/src/schemas/secret.py
T
nessi d694c8b8e3 Add project scaffolding and documentation
Add .env.example with configuration for database, Redis, security, SMTP, workers, and plugins. Add .gitignore for Python, Node.js, Next.js, Docker volumes, and IDE files. Add MIT License. Update README.md with feature overview, quick start guide, architecture description, plugin system documentation, security details, backup/restore instructions, and developer setup. Add Alembic configuration files and placeholder directories for API, web, worker, and plugin components
2026-06-21 09:31:47 +02:00

32 lines
548 B
Python

import uuid
from datetime import datetime
from typing import Any
from pydantic import BaseModel
class SecretBase(BaseModel):
name: str
secret_type: str
scope: str
metadata: dict[str, Any] = {}
class SecretCreate(SecretBase):
value: str
class SecretUpdate(BaseModel):
name: str | None = None
value: str | None = None
metadata: dict[str, Any] | None = None
class SecretResponse(SecretBase):
id: uuid.UUID
created_at: datetime
updated_at: datetime
class Config:
from_attributes = True