feat: 初始化 FTB 智能项目管理系统 monorepo 项目结构

包含 Turborepo 配置、Next.js 前端骨架、NestJS 后端骨架、Prisma Schema、
共享类型包、Docker Compose 和环境变量模板。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Script Generator
2026-06-08 10:31:35 +08:00
commit 8de1f93fd3
30 changed files with 1785 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
export enum TaskStatus {
TODO = 'todo',
IN_PROGRESS = 'in_progress',
IN_REVIEW = 'in_review',
DONE = 'done',
CLOSED = 'closed',
}
export enum ProjectRole {
OWNER = 'owner',
ADMIN = 'admin',
MEMBER = 'member',
VIEWER = 'viewer',
}
export enum RequirementStatus {
DRAFT = 'draft',
REVIEWING = 'reviewing',
APPROVED = 'approved',
REJECTED = 'rejected',
DELIVERED = 'delivered',
}

View File

@@ -0,0 +1,2 @@
export * from './enums';
export * from './types';

View File

@@ -0,0 +1,68 @@
import { TaskStatus, ProjectRole, RequirementStatus } from './enums';
export interface Product {
id: string;
name: string;
description: string;
createdAt: Date;
updatedAt: Date;
}
export interface Project {
id: string;
productId: string;
name: string;
description: string;
createdAt: Date;
updatedAt: Date;
}
export interface Task {
id: string;
projectId: string;
sprintId: string | null;
versionId: string | null;
parentId: string | null;
title: string;
description: string;
status: TaskStatus;
assigneeId: string | null;
creatorId: string;
priority: number;
startDate: Date | null;
dueDate: Date | null;
createdAt: Date;
updatedAt: Date;
}
export interface Requirement {
id: string;
productId: string;
title: string;
description: string;
status: RequirementStatus;
priority: number;
creatorId: string;
createdAt: Date;
updatedAt: Date;
}
export interface Version {
id: string;
productId: string;
name: string;
description: string;
releaseDate: Date | null;
createdAt: Date;
updatedAt: Date;
}
export interface Sprint {
id: string;
projectId: string;
name: string;
startDate: Date;
endDate: Date;
createdAt: Date;
updatedAt: Date;
}