mirror of
https://github.com/vastxie/99AI.git
synced 2024-11-16 11:42:25 +08:00
81 lines
4.1 KiB
JavaScript
81 lines
4.1 KiB
JavaScript
"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);
|
||
};
|
||
Object.defineProperty(exports, "__esModule", { value: true });
|
||
exports.UserBalanceEntity = void 0;
|
||
const typeorm_1 = require("typeorm");
|
||
const baseEntity_1 = require("../../common/entity/baseEntity");
|
||
let UserBalanceEntity = class UserBalanceEntity extends baseEntity_1.BaseEntity {
|
||
};
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '用户ID' }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "userId", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '充值的套餐包含的模型3次数', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "model3Count", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '充值的套餐包含的模型4次数', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "model4Count", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '充值的套餐包含的MJ绘画次数', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "drawMjCount", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '当前使用的套餐ID', default: 0, nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "packageId", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '会员模型3额度', default: 0, nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "memberModel3Count", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '会员模型4额度', default: 0, nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "memberModel4Count", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '会员MJ绘画额度', default: 0, nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "memberDrawMjCount", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '已经使用的对话3的模型次数', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "useModel3Count", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '已经使用的对话4的模型次数', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "useModel4Count", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '已经使用的对话3的模型Token', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "useModel3Token", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '已经使用的对话4的模型Token', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "useModel4Token", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '已经使用的MJ绘画Token', nullable: true }),
|
||
__metadata("design:type", Number)
|
||
], UserBalanceEntity.prototype, "useDrawMjToken", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '扩展字段', nullable: true }),
|
||
__metadata("design:type", String)
|
||
], UserBalanceEntity.prototype, "extent", void 0);
|
||
__decorate([
|
||
(0, typeorm_1.Column)({ comment: '会员到期时间 0:不是 1:是', nullable: true }),
|
||
__metadata("design:type", Date)
|
||
], UserBalanceEntity.prototype, "expirationTime", void 0);
|
||
UserBalanceEntity = __decorate([
|
||
(0, typeorm_1.Entity)({ name: 'user_balances' })
|
||
], UserBalanceEntity);
|
||
exports.UserBalanceEntity = UserBalanceEntity;
|