"use strict";
// import {Entity, model, property} from '@loopback/repository';
Object.defineProperty(exports, "__esModule", { value: true });
exports.Usertype = void 0;
const tslib_1 = require("tslib");
// @model({
//   settings: {idInjection: false, mysql: {schema: 'lelloproperty', table: 'usertype'}}
// })
// export class Usertype extends Entity {
//   @property({
//     type: 'date',
//     required: true,
//     jsonSchema: {nullable: false},
//     generated: false,
//     mysql: {columnName: 'created_at', dataType: 'timestamp', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'N', generated: false},
//   })
//   createdAt: 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: 'date', 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: 'date', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   deletedDate?: string;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 10,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'is_active', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   isActive?: number;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 10,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'is_default', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   isDefault?: number;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: true},
//     precision: 10,
//     scale: 0,
//     generated: false,
//     mysql: {columnName: 'is_on', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false},
//   })
//   isOn?: number;
//   @property({
//     type: 'date',
//     required: true,
//     jsonSchema: {nullable: false},
//     generated: false,
//     mysql: {columnName: 'last_changed', dataType: 'datetime', 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: 'date', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   modifiedDate?: string;
//   @property({
//     type: 'number',
//     jsonSchema: {nullable: false},
//     precision: 10,
//     scale: 0,
//     generated: 1,
//     id: 1,
//     mysql: {columnName: 'userId', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'N', generated: 1},
//   })
//   userId?: number;
//   @property({
//     type: 'string',
//     jsonSchema: {nullable: true},
//     length: 100,
//     generated: false,
//     mysql: {columnName: 'username', dataType: 'varchar', dataLength: 100, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false},
//   })
//   username?: 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<Usertype>) {
//     super(data);
//   }
// }
// export interface UsertypeRelations {
//   // describe navigational properties here
// }
// export type UsertypeWithRelations = Usertype & UsertypeRelations;
const repository_1 = require("@loopback/repository");
const buyer_master_model_1 = require("./buyer-master.model");
const seller_master_model_1 = require("./seller-master.model");
let Usertype = class Usertype extends repository_1.Entity {
    constructor(data) {
        super(data);
    }
};
exports.Usertype = Usertype;
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'date',
        required: true,
        jsonSchema: { nullable: false },
        generated: false,
        mysql: { columnName: 'created_at', dataType: 'timestamp', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'N', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], Usertype.prototype, "createdAt", 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)
], Usertype.prototype, "createdBy", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'date',
        jsonSchema: { nullable: true },
        generated: false,
        mysql: { columnName: 'created_date', dataType: 'date', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], Usertype.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)
], Usertype.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)
], Usertype.prototype, "deletedBy", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'date',
        jsonSchema: { nullable: true },
        generated: false,
        mysql: { columnName: 'deleted_date', dataType: 'date', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], Usertype.prototype, "deletedDate", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 10,
        scale: 0,
        generated: false,
        mysql: { columnName: 'is_active', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], Usertype.prototype, "isActive", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 10,
        scale: 0,
        generated: false,
        mysql: { columnName: 'is_default', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], Usertype.prototype, "isDefault", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: true },
        precision: 10,
        scale: 0,
        generated: false,
        mysql: { columnName: 'is_on', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", Number)
], Usertype.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: 'datetime', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'N', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], Usertype.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)
], Usertype.prototype, "modifiedBy", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'date',
        jsonSchema: { nullable: true },
        generated: false,
        mysql: { columnName: 'modified_date', dataType: 'date', dataLength: null, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], Usertype.prototype, "modifiedDate", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'number',
        jsonSchema: { nullable: false },
        precision: 10,
        scale: 0,
        generated: 1,
        id: 1,
        mysql: { columnName: 'userId', dataType: 'int', dataLength: null, dataPrecision: 10, dataScale: 0, nullable: 'N', generated: 1 },
    }),
    tslib_1.__metadata("design:type", Number)
], Usertype.prototype, "userId", void 0);
tslib_1.__decorate([
    (0, repository_1.property)({
        type: 'string',
        jsonSchema: { nullable: true },
        length: 100,
        generated: false,
        mysql: { columnName: 'username', dataType: 'varchar', dataLength: 100, dataPrecision: null, dataScale: null, nullable: 'Y', generated: false },
    }),
    tslib_1.__metadata("design:type", String)
], Usertype.prototype, "username", void 0);
tslib_1.__decorate([
    (0, repository_1.hasMany)(() => seller_master_model_1.SellerMaster, { keyTo: 'fkuserId' }),
    tslib_1.__metadata("design:type", Array)
], Usertype.prototype, "sellers", void 0);
tslib_1.__decorate([
    (0, repository_1.hasMany)(() => buyer_master_model_1.BuyerMaster, { keyTo: 'fkusertypeId' }),
    tslib_1.__metadata("design:type", Array)
], Usertype.prototype, "buyers", void 0);
exports.Usertype = Usertype = tslib_1.__decorate([
    (0, repository_1.model)({
        settings: { idInjection: false, mysql: { schema: 'lelloproperty', table: 'usertype' } }
    }),
    tslib_1.__metadata("design:paramtypes", [Object])
], Usertype);
//# sourceMappingURL=usertype.model.js.map