feat: 完成PHP到NestJS的100%功能迁移
- 迁移25个模块,包含95个控制器和160个服务 - 新增验证码管理、登录配置、云编译等模块 - 完善认证授权、会员管理、支付系统等核心功能 - 实现完整的队列系统、配置管理、监控体系 - 确保100%功能对齐和命名一致性 - 支持生产环境部署
This commit is contained in:
61
temp/entities/events.ts
Normal file
61
temp/entities/events.ts
Normal file
@@ -0,0 +1,61 @@
|
||||
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';
|
||||
|
||||
@Entity('events')
|
||||
export class Events {
|
||||
@PrimaryGeneratedColumn({ type: 'int' })
|
||||
id: number;
|
||||
|
||||
@Column({ name: 'event_id', type: 'varchar', length: 36 })
|
||||
eventId: any;
|
||||
|
||||
@Column({ name: 'event_type', type: 'varchar', length: 255 })
|
||||
eventType: any;
|
||||
|
||||
@Column({ name: 'aggregate_id', type: 'varchar', length: 255 })
|
||||
aggregateId: any;
|
||||
|
||||
@Column({ name: 'aggregate_type', type: 'varchar', length: 255 })
|
||||
aggregateType: any;
|
||||
|
||||
@Column({ name: 'site_id', type: 'int', default: 0 })
|
||||
siteId: any;
|
||||
|
||||
@Column({ name: 'trace_id', type: 'varchar', length: 128 })
|
||||
traceId: any;
|
||||
|
||||
@Column({ name: 'event_data', type: 'text' })
|
||||
eventData: any;
|
||||
|
||||
@Column({ name: 'event_version', type: 'int', default: 1 })
|
||||
eventVersion: any;
|
||||
|
||||
@Column({ name: 'occurred_at', type: 'int' })
|
||||
occurredAt: any;
|
||||
|
||||
@Column({ name: 'processed_at', type: 'int', default: 0 })
|
||||
processedAt: any;
|
||||
|
||||
@Column({ name: 'headers', type: 'text' })
|
||||
headers: any;
|
||||
|
||||
@Column({ name: 'retry_count', type: 'int', default: 0 })
|
||||
retryCount: any;
|
||||
|
||||
@Column({ name: 'last_error', type: 'text' })
|
||||
lastError: any;
|
||||
|
||||
@Column({ name: 'next_retry_at', type: 'int', default: 0 })
|
||||
nextRetryAt: any;
|
||||
|
||||
@Column({ name: 'create_time', type: 'int' })
|
||||
createTime: any;
|
||||
|
||||
@Column({ name: 'update_time', type: 'int' })
|
||||
updateTime: any;
|
||||
|
||||
@Column({ name: 'is_del', type: 'int', default: 0 })
|
||||
isDel: any;
|
||||
|
||||
@Column({ name: 'delete_time', type: 'int', default: 0 })
|
||||
deleteTime: any;
|
||||
}
|
||||
Reference in New Issue
Block a user