text: "use strict";
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
      var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
      if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
      else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
      return c > 3 && r && Object.defineProperty(target, key, r), r;
  };
  var __metadata = (this && this.__metadata) || function (k, v) {
      if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  };
  var __importDefault = (this && this.__importDefault) || function (mod) {
      return (mod && mod.__esModule) ? mod : { "default": mod };
  };
  Object.defineProperty(exports, "__esModule", { value: true });
  const sequelize_typescript_1 = require("sequelize-typescript");
  const ContactCustomField_1 = __importDefault(require("./ContactCustomField"));
  const Ticket_1 = __importDefault(require("./Ticket"));
  let Contact = class Contact extends sequelize_typescript_1.Model {
  };
  __decorate([
      sequelize_typescript_1.PrimaryKey,
      sequelize_typescript_1.AutoIncrement,
      sequelize_typescript_1.Column,
      __metadata("design:type", Number)
  ], Contact.prototype, "id", void 0);
  __decorate([
      sequelize_typescript_1.Column,
      __metadata("design:type", String)
  ], Contact.prototype, "name", void 0);
  __decorate([
      sequelize_typescript_1.AllowNull(false),
      sequelize_typescript_1.Unique,
      sequelize_typescript_1.Column,
      __metadata("design:type", String)
  ], Contact.prototype, "number", void 0);
  __decorate([
      sequelize_typescript_1.AllowNull(false),
      sequelize_typescript_1.Default(""),
      sequelize_typescript_1.Column,
      __metadata("design:type", String)
  ], Contact.prototype, "email", void 0);
  __decorate([
      sequelize_typescript_1.Column,
      __metadata("design:type", String)
  ], Contact.prototype, "profilePicUrl", void 0);
  __decorate([
      sequelize_typescript_1.Default(false),
      sequelize_typescript_1.Column,
      __metadata("design:type", Boolean)
  ], Contact.prototype, "isGroup", void 0);
  __decorate([
      sequelize_typescript_1.CreatedAt,
      __metadata("design:type", Date)
  ], Contact.prototype, "createdAt", void 0);
  __decorate([
      sequelize_typescript_1.UpdatedAt,
      __metadata("design:type", Date)
  ], Contact.prototype, "updatedAt", void 0);
  __decorate([
      sequelize_typescript_1.HasMany(() => Ticket_1.default),
      __metadata("design:type", Array)
  ], Contact.prototype, "tickets", void 0);
  __decorate([
      sequelize_typescript_1.HasMany(() => ContactCustomField_1.default),
      __metadata("design:type", Array)
  ], Contact.prototype, "extraInfo", void 0);
  Contact = __decorate([
      sequelize_typescript_1.Table
  ], Contact);
  exports.default = Contact;
  