17 lines
344 B
TypeScript
17 lines
344 B
TypeScript
import { Entity, Property, ManyToOne, PrimaryKey } from '@mikro-orm/core';
|
|
import { Shop } from ../../..shops/entities/shop.entity';
|
|
|
|
@Entity({ tableName: 'sms_logs' })
|
|
export class SmsLog {
|
|
@PrimaryKey()
|
|
id!: number;
|
|
|
|
@ManyToOne(() => Shop)
|
|
shop!: Shop;
|
|
|
|
@Property()
|
|
phone!: string;
|
|
|
|
@Property()
|
|
createdAt: Date = new Date();
|
|
} |