import {
  BaseEntity,
  Column,
  Entity,
  PrimaryGeneratedColumn,
} from "typeorm";

@Entity({ name: "Testimonials" })
export class Testimonials extends BaseEntity {
  @PrimaryGeneratedColumn("uuid")
  id: string;

  @Column({ name: "name" })
  name: string;

  @Column({ name: "designation" })
  designation: string;

  @Column({ name: "testimonial", type: "text" })
  testimonial: string;



  @Column({ name: "userImage",type: "text", nullable: true })
  userImage: string;

  @Column({ name: "backgroundImage",type: "text", nullable: true })
  backgroundImage: string;

  @Column({ name: "order", type: "int", default: 0 })
  order: number;
  @Column({ name: "isActive", default: true })
   isActive: boolean;
  @Column({
    name: "created_at",
    type: "timestamp",
    default: () => "CURRENT_TIMESTAMP"
  })
  created_at: Date;

  @Column({
    name: "updated_at",
    type: "timestamp",
    default: () => "CURRENT_TIMESTAMP"
  })
  updated_at: Date;
}