Files
pos-system/services/_template/prisma/schema.prisma
Ho Ngoc Hai ab44954bd6 Update project configuration and enhance service template with new features
- Updated `.gitignore` to clarify environment variable handling.
- Enhanced `pnpm-lock.yaml` with new dependencies for Jest and Supertest, including type definitions.
- Improved bilingual documentation in `SKILL.md` files for better clarity on comment patterns and project rules.
- Refined `docker-compose.yml` for local development, adding detailed instructions and access points.
- Updated environment variable example in `env.local.example` for better guidance on configuration.
- Removed outdated architecture documentation from the service template.
- Enhanced Dockerfile for improved security and performance during builds.
- Added Swagger documentation setup in the service template for better API documentation.
- Improved error handling and logging middleware for enhanced debugging capabilities.
2025-12-27 13:54:09 +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"
url = env("DATABASE_URL")
}
// 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")
}