@@ -14,10 +14,10 @@ export default {
// username: 'root',
// password: 'admin',
host: '127.0.0.1',
- port: 3306,
+ port: 3390,
username: 'root',
- password: '12345678',
- database: 'va',
+ password: '123456',
+ database: 'va_test',
// 自动建表 注意:线上部署的时候不要使用,有可能导致数据丢失
synchronize: true,
// 打印日志
@@ -26,7 +26,7 @@ export class BusinessEntity extends BaseEntity {
@Column({ comment: '地址' })
address_line!: string;
- @Column({ comment: '邮编' })
+ @Column({ comment: '邮编', default: '' })
post_code!: string;
@Column({ comment: '邮箱' })
@@ -22,7 +22,7 @@ export class IndividualEntity extends BaseEntity {