From 665ba0f9ae078c2859209451a163d10515171d11 Mon Sep 17 00:00:00 2001
From: wangzhibo <wangzhibo@shsening.com>
Date: 星期四, 13 八月 2026 12:05:48 +0800
Subject: [PATCH] add 预约和回收订单

---
 src/modules/user/entity/info.ts |   43 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/src/modules/user/entity/info.ts b/src/modules/user/entity/info.ts
index 7f0e127..3e0a40e 100644
--- a/src/modules/user/entity/info.ts
+++ b/src/modules/user/entity/info.ts
@@ -1,10 +1,10 @@
 import { BaseEntity } from '../../base/entity/base';
-import { Column, Entity, Index } from 'typeorm';
+import { Column, Entity, Index,BeforeInsert } from 'typeorm';
 
 /**
  * 鐢ㄦ埛淇℃伅
  */
-@Entity('user_info')
+@Entity('t_school_user_info')
 export class UserInfoEntity extends BaseEntity {
   @Index({ unique: true })
   @Column({ comment: '鐧诲綍鍞竴ID', nullable: true })
@@ -20,8 +20,46 @@
   @Column({ comment: '鎵嬫満鍙�', nullable: true })
   phone: string;
 
+  @Column({ comment: '鐢熸棩', type: 'date', nullable: true })
+  birthday: Date;
+
   @Column({ comment: '鎬у埆', dict: ['鏈煡', '鐢�', '濂�'], default: 0 })
   gender: number;
+
+  @Index()
+  @Column({ comment: '瑙掕壊', dict: ['鑰佸笀', '瀛︾敓', '鍏朵粬'], default: '瀛︾敓' })
+  role: string;
+
+  @Index()
+  @Column({ comment: '瀛︽牎ID' })   // 浣跨敤褰掑睘閮ㄩ棬锛岃繖閲屽缓璁�夐《灞傚鏍�
+  departmentId: number;
+
+  departmentName: string;
+
+  @Index()
+  @Column({ comment: '纰崇Н鍒�', default: 0 })
+  carbonBalance: number;
+
+  @Index()
+  @Column({ comment: '瀛﹂櫌ID', nullable: true })
+  collegeId: number;
+
+  @Column({ comment: '瀛﹂櫌鍚嶇О', nullable: true })
+  collegeName: string;
+
+  @Index()
+  @Column({ comment: '涓撲笟ID', nullable: true })
+  majorId: number;
+
+  @Column({ comment: '涓撲笟鍚嶇О', nullable: true })
+  majorName: string;
+
+  @Index()
+  @Column({ comment: '鐝骇ID', nullable: true })
+  classId: number;
+
+  @Column({ comment: '鐝骇鍚嶇О', nullable: true })
+  className: string;
 
   @Column({ comment: '鐘舵��', dict: ['绂佺敤', '姝e父', '宸叉敞閿�'], default: 1 })
   status: number;
@@ -34,4 +72,5 @@
 
   @Column({ comment: '浠嬬粛', type: 'text', nullable: true })
   description: string;
+
 }

--
Gitblit v1.9.1