|
|
@@ -44,8 +44,8 @@ export class Linkman {
|
|
|
@Column({ name: 'description', type: 'text', nullable: true })
|
|
|
description?: string;
|
|
|
|
|
|
- @Column({ name: 'created_user_id', type: 'varchar', length: 50, nullable: true })
|
|
|
- createdUserId?: string;
|
|
|
+ @Column({ name: 'created_user_id', type: 'int', unsigned: true, nullable: true })
|
|
|
+ createdUserId?: number;
|
|
|
|
|
|
@Column({ name: 'created_time', type: 'datetime' })
|
|
|
createdTime!: Date;
|
|
|
@@ -115,9 +115,9 @@ export const LinkmanSchema = z.object({
|
|
|
description: '详细信息',
|
|
|
example: '负责技术选型与合作洽谈'
|
|
|
}),
|
|
|
- createdUserId: z.string().max(50).nullable().openapi({
|
|
|
+ createdUserId: z.number().int().positive().nullable().openapi({
|
|
|
description: '创建用户ID',
|
|
|
- example: 'U1001'
|
|
|
+ example: 1001
|
|
|
}),
|
|
|
createdTime: z.date().openapi({
|
|
|
description: '创建时间',
|