Przeglądaj źródła

♻️ refactor(database): 调整数据库相关配置

- 将用户实体表名从 `users` 更改为 `users2`
- 将示例环境变量中的默认数据库名称从 `d8dai` 更改为 `postgres`
yourname 5 dni temu
rodzic
commit
32c0d0fc3a

+ 1 - 1
packages/core-module/user-module/src/entities/user.entity.ts

@@ -3,7 +3,7 @@ import { Role } from './role.entity';
 import { DeleteStatus, DisabledStatus } from '@d8d/shared-types';
 import { File } from '../../../file-module/src/entities';
 
-@Entity({ name: 'users' })
+@Entity({ name: 'users2' })
 export class UserEntity {
   @PrimaryGeneratedColumn({ unsigned: true, comment: '用户ID' })
   id!: number;

+ 1 - 1
web/.env.example

@@ -13,7 +13,7 @@ BASE=/
 # 数据库配置 (PostgreSQL)
 DB_HOST=localhost
 DB_PORT=5432
-DB_DATABASE=d8dai
+DB_DATABASE=postgres
 DB_USERNAME=postgres
 DB_PASSWORD=your_password_here