Files
dkala-api/src/modules/notifications/entities/smsLogs.entity.ts
T
2026-02-08 09:18:20 +03:30

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();
}