|
|
@@ -17,10 +17,10 @@ export enum OrderType {
|
|
|
}
|
|
|
|
|
|
@Entity()
|
|
|
-@Index('idx_agent_date_type', ['agentId', 'createdAt', 'incomeType'])
|
|
|
-@Index('idx_user_date', ['userId', 'createdAt'])
|
|
|
-@Index('idx_agent_date_del_type', ['agentId', 'createdAt', 'delFlag', 'incomeType'])
|
|
|
-@Index('idx_user_date_del', ['userId', 'createdAt', 'delFlag'])
|
|
|
+@Index('idx_status_del_created', ['status', 'delFlag', 'createdAt'])
|
|
|
+@Index('idx_agent_status_del_created', ['agentId', 'status', 'delFlag', 'createdAt'])
|
|
|
+@Index('idx_user_status_del_created', ['userId', 'status', 'delFlag', 'createdAt'])
|
|
|
+@Index('idx_order_no', ['orderNo'])
|
|
|
export class IncomeRecords {
|
|
|
@PrimaryGeneratedColumn()
|
|
|
id: number
|
|
|
@@ -62,7 +62,7 @@ export class IncomeRecords {
|
|
|
})
|
|
|
orderPrice: number
|
|
|
|
|
|
- @Column()
|
|
|
+ @Column({ length: 50 })
|
|
|
orderNo: string
|
|
|
|
|
|
@Column()
|