wangzhibo
6 天以前 3f249e399659dcd09d3fe58071b146e50e45c17f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { BaseEntity } from '@cool-midway/core';
import { Column, Entity, Index } from 'typeorm';
 
/**
 * 优惠券用户
 */
@Entity('market_coupon_user')
export class MarketCouponUserEntity extends BaseEntity {
  @Index()
  @Column({ comment: '用户ID' })
  userId: number;
 
  @Index()
  @Column({ comment: '优惠券ID' })
  couponId: number;
 
  @Column({ comment: '状态 0-未使用 1-已使用', default: 0 })
  status: number;
 
  @Column({ comment: '使用时间', type: 'datetime', nullable: true })
  useTime: Date;
}