charset in @cloum's options,==> 添加charset:'utf8mb4'
一套關(guān)于node 基于express 模仿java spring的架構(gòu) Demo
小小東西代碼不多, 也就差不多幾十萬行
@Entity('userentity')
export class UserEntity {
@PrimaryGeneratedColumn()
id: number;
@Column()
user_id: string;
@Column({
charset:'utf8mb4'
})
name: string;
@Column()
age: number;
@Column()
we_uid: string;
@Column()
created_at: string;
@Column()
updated_at: string;
}