mirror of
https://github.com/vastxie/99AI.git
synced 2025-11-13 04:03:45 +08:00
NineAI 2.4.2
This commit is contained in:
64
dist/modules/app/app.entity.js
vendored
Normal file
64
dist/modules/app/app.entity.js
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
"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.AppEntity = void 0;
|
||||
const typeorm_1 = require("typeorm");
|
||||
const baseEntity_1 = require("../../common/entity/baseEntity");
|
||||
let AppEntity = class AppEntity extends baseEntity_1.BaseEntity {
|
||||
};
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ unique: true, comment: 'App应用名称' }),
|
||||
__metadata("design:type", String)
|
||||
], AppEntity.prototype, "name", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App分类Id' }),
|
||||
__metadata("design:type", Number)
|
||||
], AppEntity.prototype, "catId", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App应用描述信息' }),
|
||||
__metadata("design:type", String)
|
||||
], AppEntity.prototype, "des", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App应用预设场景信息', type: 'text' }),
|
||||
__metadata("design:type", String)
|
||||
], AppEntity.prototype, "preset", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App应用封面图片', nullable: true }),
|
||||
__metadata("design:type", String)
|
||||
], AppEntity.prototype, "coverImg", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App应用排序、数字越大越靠前', default: 100 }),
|
||||
__metadata("design:type", Number)
|
||||
], AppEntity.prototype, "order", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App应用是否启用中 0:禁用 1:启用', default: 1 }),
|
||||
__metadata("design:type", Number)
|
||||
], AppEntity.prototype, "status", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App示例数据', nullable: true, type: 'text' }),
|
||||
__metadata("design:type", String)
|
||||
], AppEntity.prototype, "demoData", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App应用角色 system user', default: 'system' }),
|
||||
__metadata("design:type", String)
|
||||
], AppEntity.prototype, "role", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: 'App是否共享到应用广场', default: false }),
|
||||
__metadata("design:type", Boolean)
|
||||
], AppEntity.prototype, "public", void 0);
|
||||
__decorate([
|
||||
(0, typeorm_1.Column)({ comment: '用户Id', nullable: true }),
|
||||
__metadata("design:type", Number)
|
||||
], AppEntity.prototype, "userId", void 0);
|
||||
AppEntity = __decorate([
|
||||
(0, typeorm_1.Entity)({ name: 'app' })
|
||||
], AppEntity);
|
||||
exports.AppEntity = AppEntity;
|
||||
Reference in New Issue
Block a user