perf: 优化饮食记录代码
This commit is contained in:
@@ -8,6 +8,7 @@ export enum ActivityEntityType {
|
||||
CHECKIN = 'CHECKIN',
|
||||
TRAINING_PLAN = 'TRAINING_PLAN',
|
||||
WORKOUT = 'WORKOUT',
|
||||
DIET_RECORD = 'DIET_RECORD',
|
||||
|
||||
}
|
||||
|
||||
@@ -38,7 +39,7 @@ export class ActivityLog extends Model {
|
||||
declare user?: User;
|
||||
|
||||
@Column({
|
||||
type: DataType.ENUM('USER', 'USER_PROFILE', 'USER_WEIGHT_HISTORY', 'CHECKIN', 'TRAINING_PLAN', 'WORKOUT'),
|
||||
type: DataType.ENUM('USER', 'USER_PROFILE', 'USER_WEIGHT_HISTORY', 'CHECKIN', 'TRAINING_PLAN', 'WORKOUT', 'DIET_RECORD'),
|
||||
allowNull: false,
|
||||
comment: '实体类型',
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user