Files
pos-system/services/_template_nodejs/prisma/schema.prisma
Ho Ngoc Hai 4e595d0746 feat(docs): Remove outdated service templates and enhance Vietnamese architecture documentation
- Deleted obsolete service architecture templates in both English and Vietnamese to streamline content.
- Updated the Vietnamese architecture documentation with improved Mermaid diagrams for better visual clarity.
- Enhanced color coding in diagrams to improve readability and consistency across documentation.
- Added a new section detailing visual indicators for better understanding of architecture components.
2026-01-10 21:00:02 +07:00

48 lines
1.4 KiB
Plaintext

// EN: Prisma schema for microservice template
// VI: Schema Prisma cho template microservice
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
}
// EN: Feature model - represents a configurable feature in the system
// VI: Model Feature - đại diện cho một tính năng có thể cấu hình trong hệ thống
model Feature {
// EN: Primary key / Khóa chính
id String @id @default(cuid())
// EN: Feature name (unique identifier) / Tên tính năng (mã định danh duy nhất)
name String @unique
// EN: Human-readable title / Tiêu đề dễ đọc
title String?
// EN: Detailed description / Mô tả chi tiết
description String?
// EN: Feature configuration as JSON / Cấu hình tính năng dạng JSON
config Json?
// EN: Whether the feature is enabled / Tính năng có được bật không
enabled Boolean @default(true)
// EN: Feature version for migration purposes / Phiên bản tính năng cho mục đích migration
version String? @default("1.0.0")
// EN: Timestamps / Dấu thời gian
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
// EN: Optional tags for categorization / Tags tùy chọn để phân loại
tags String[]
// EN: Metadata for extensibility / Metadata để mở rộng
metadata Json?
@@map("features")
}