"use strict";
// import {Entity, model, property} from '@loopback/repository';
Object.defineProperty(exports, "__esModule", { value: true });
exports.BuyerMaster = void 0;
const tslib_1 = require("tslib");
// @model({
//   settings: {idInjection: false, mysql: {schema: 'lelloproperty', table: 'buyer_master'}}
// })
// export class BuyerMaster extends Entity {
//   @property({
//     type: 'string',
//     // required: true,
//     jsonSchema: {nullable: false},
//     length: 255,
//     generated: false,
//     mysql: {columnName: 'buyerGender', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   buyerGender: string;
//   @property({
//     type: 'number',
//     // required: true,
//     jsonSchema: {nullable: false},
//     length: 255,
//     generated: false,
//     mysql: {columnName: 'buyerMobile', dataType: 'bigint', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   buyerMobile: number;
//   @property({
//     type: 'string',
//     // required: true,
//     jsonSchema: {nullable: false},
//     length: 255,
//     generated: false,
//     mysql: {columnName: 'buyerGmail', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'y', generated: false},
//   })
//   buyerGmail: string;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: false},
//     precision: 10,
//     scale: 0,
//     generated: 1,
//     id: 1,
//     mysql: {columnName: 'buyerId', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'N', generated: 1},
//   })
//   buyerId?: number;
//   @property({
//     type: 'string',
//     // required: true,
//     jsonSchema: {nullable: false},
//     length: 255,
//     generated: false,
//     mysql: {columnName: 'buyerLocation', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'y', generated: false},
//   })
//   buyerLocation: string;
//   @property({
//     type: 'string',
//     // required: true,
//     jsonSchema: {nullable: false},
//     length: 255,
//     generated: false,
//     mysql: {columnName: 'buyerName', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'y', generated: false},
//   })
//   buyerName: string;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 10,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'created_by', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   createdBy?: number;
//   @property({
//     type: 'date',
//     jsonSchema: {nullable: true},
//     generated: false,
//     mysql: {columnName: 'created_date', dataType: 'datetime', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   createdDate?: string;
//   @property({
//     type: 'string',
//     jsonSchema: {nullable: true},
//     length: 200,
//     generated: false,
//     mysql: {columnName: 'delete_remark', dataType: 'varchar', dataLength: 200, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   deleteRemark?: string;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 10,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'deleted_by', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   deletedBy?: number;
//   @property({
//     type: 'date',
//     jsonSchema: {nullable: true},
//     generated: false,
//     mysql: {columnName: 'deleted_date', dataType: 'datetime', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   deletedDate?: string;
//   @property({
//     type: 'number',
//     // required: true,
//     jsonSchema: {nullable: false},
//     precision: 10,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'fkcityId', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'y', generated: false},
//   })
//   fkcityId: number;
//   // @belongsTo(() => CityMaster)
//   // fkcityId: number;
//   @property({
//     type: 'number',
//     // required: true,
//     jsonSchema: {nullable: false},
//     precision: 10,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'fkusertypeId', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'N', generated: false},
//   })
//   fkusertypeId: number;
//   // @belongsTo(() => Usertype)
//   // fkusertypeId: number;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 3,
//     scale: 0,
//     generated: false,
//     default: 0,
//     mysql: {columnName: 'is_active', dataType: 'tinyint', dataLength: null, dataPrecision: 3, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   isActive?: number;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 3,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'is_default', dataType: 'tinyint', dataLength: null, dataPrecision: 3, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   isDefault?: number;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 3,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'is_on', dataType: 'tinyint', dataLength: null, dataPrecision: 3, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   isOn?: number;
//   @property({
//     type: 'date',
//     // required: true,
//     jsonSchema: {nullable: false},
//     generated: false,
//     mysql: {columnName: 'last_changed', dataType: 'timestamp', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'N', generated: false},
//   })
//   lastChanged: string;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 10,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'modified_by', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   modifiedBy?: number;
//   @property({
//     type: 'date',
//     jsonSchema: {nullable: true},
//     generated: false,
//     mysql: {columnName: 'modified_date', dataType: 'datetime', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   modifiedDate?: string;
//   @property({
//     type: 'string',
//     // required: true,
//     jsonSchema: {nullable: false},
//     length: 255,
//     generated: false,
//     mysql: {columnName: 'profilePhoto', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'N', generated: false},
//   })
//   profilePhoto: string;
//   // Define well-known properties here
//   // Indexer property to allow additional data
//   // eslint-disable-next-line @typescript-eslint/no-explicit-any
//   [prop: string]: any;
//   constructor(data?: Partial<BuyerMaster>) {
//     super(data);
//   }
// }
// export interface BuyerMasterRelations {
//   // describe navigational properties here
// }
// export type BuyerMasterWithRelations = BuyerMaster & BuyerMasterRelations;
//new code
const repository_1 = require("@loopback/repository");
const city_master_model_1 = require("./city-master.model");
const gender_master_model_1 = require("./gender-master.model");
const usertype_model_1 = require("./usertype.model");
let BuyerMaster = class BuyerMaster extends repository_1.Entity {
    constructor(data) {
        super(data);
    }
};
exports.BuyerMaster = BuyerMaster;
tslib_1.__decorate([
    (0, repository_1.belongsTo)(() => city_master_model_1.CityMaster, { name: 'city' }, { keyFrom: 'fkcityId', keyTo: 'cityId' }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "fkcityId", void 0);
tslib_1.__decorate([
    (0, repository_1.belongsTo)(() => gender_master_model_1.GenderMaster, { name: 'gender' }, { keyFrom: 'buyerGender', keyTo: 'genderId' }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "buyerGender", void 0);
tslib_1.__decorate([
    (0, repository_1.belongsTo)(() => usertype_model_1.Usertype, { name: 'usertype' }, { keyFrom: 'fkusertypeId', keyTo: 'userId' }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "fkusertypeId", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        // required: true,
        jsonSchema: { nullable: false },
        length: 255,
        generated: false,
        mysql: { columnName: 'buyerMobile', dataType: 'bigint', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "buyerMobile", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'string',
        // required: true,
        jsonSchema: { nullable: false },
        length: 255,
        generated: false,
        mysql: { columnName: 'buyerGmail', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "buyerGmail", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: false },
        precision: 10,
        scale: 0,
        generated: 1,
        id: true,
        mysql: { columnName: 'buyerId', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'N', generated: 1 },
    }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "buyerId", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'string',
        // required: true,
        jsonSchema: { nullable: false },
        length: 255,
        generated: false,
        mysql: { columnName: 'buyerLocation', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "buyerLocation", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'string',
        // required: true,
        jsonSchema: { nullable: false },
        length: 255,
        generated: false,
        mysql: { columnName: 'buyerName', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "buyerName", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 10,
        scale: 0,
        generated: false,
        mysql: { columnName: 'created_by', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "createdBy", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'date',
        jsonSchema: { nullable: true },
        generated: false,
        mysql: { columnName: 'created_date', dataType: 'datetime', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "createdDate", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'string',
        jsonSchema: { nullable: true },
        length: 200,
        generated: false,
        mysql: { columnName: 'delete_remark', dataType: 'varchar', dataLength: 200, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "deleteRemark", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 10,
        scale: 0,
        generated: false,
        mysql: { columnName: 'deleted_by', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "deletedBy", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'date',
        jsonSchema: { nullable: true },
        generated: false,
        mysql: { columnName: 'deleted_date', dataType: 'datetime', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "deletedDate", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 3,
        scale: 0,
        generated: false,
        default: 0,
        mysql: { columnName: 'is_active', dataType: 'tinyint', dataLength: null, dataPrecision: 3, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "isActive", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 3,
        scale: 0,
        generated: false,
        mysql: { columnName: 'is_default', dataType: 'tinyint', dataLength: null, dataPrecision: 3, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "isDefault", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 3,
        scale: 0,
        generated: false,
        mysql: { columnName: 'is_on', dataType: 'tinyint', dataLength: null, dataPrecision: 3, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "isOn", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'date',
        // required: true,
        jsonSchema: { nullable: false },
        generated: false,
        mysql: { columnName: 'last_changed', dataType: 'timestamp', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'N', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "lastChanged", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 10,
        scale: 0,
        generated: false,
        mysql: { columnName: 'modified_by', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], BuyerMaster.prototype, "modifiedBy", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'date',
        jsonSchema: { nullable: true },
        generated: false,
        mysql: { columnName: 'modified_date', dataType: 'datetime', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "modifiedDate", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'string',
        // required: true,
        jsonSchema: { nullable: false },
        length: 255,
        generated: false,
        mysql: { columnName: 'profilePhoto', dataType: 'varchar', dataLength: 255, dataPrecision: null, dataScale: null, nullable: 'N', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], BuyerMaster.prototype, "profilePhoto", void 0);
exports.BuyerMaster = BuyerMaster = tslib_1.__decorate([
    (0, repository_1.model)({
        settings: { idInjection: false, mysql: { schema: 'lelloproperty', table: 'buyer_master' } }
    }),
    tslib_1.__metadata("design:paramtypes", [Object])
], BuyerMaster);
//# sourceMappingURL=buyer-master.model.js.map