vona-module-test-vona 5.0.18 → 5.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.metadata/index.d.ts +2 -3
- package/dist/index.js +2 -2
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import type { IDecoratorAopOptions } from 'vona-module-a-aspect';
|
|
|
3
3
|
import type { IDecoratorBroadcastOptions } from 'vona-module-a-broadcast';
|
|
4
4
|
import type { IDecoratorCacheMemOptions } from 'vona-module-a-cache';
|
|
5
5
|
import type { IDecoratorCacheRedisOptions } from 'vona-module-a-cache';
|
|
6
|
+
import type { TypeMetaEntity } from 'vona-module-a-database';
|
|
6
7
|
import type { IDecoratorModelOptions } from 'vona-module-a-database';
|
|
7
8
|
import type { EventOn } from 'vona-module-a-event';
|
|
8
9
|
import type { IDecoratorEventListenerOptions } from 'vona-module-a-event';
|
|
@@ -137,15 +138,13 @@ declare module 'vona-module-a-database' {
|
|
|
137
138
|
declare module 'vona-module-test-vona' {
|
|
138
139
|
}
|
|
139
140
|
export interface IModuleEntity {
|
|
140
|
-
test: EntityTest
|
|
141
|
+
test: TypeMetaEntity<EntityTest>;
|
|
141
142
|
}
|
|
142
143
|
/** entity: end */
|
|
143
144
|
/** entity: begin */
|
|
144
145
|
declare module 'vona-module-test-vona' {
|
|
145
146
|
interface EntityTest {
|
|
146
147
|
get $table(): 'testVona';
|
|
147
|
-
$column: <K extends keyof Omit<EntityTest, '$column' | '$columns' | '$table'>>(column: K) => K;
|
|
148
|
-
$columns: <K extends keyof Omit<EntityTest, '$column' | '$columns' | '$table'>>(...columns: K[]) => K[];
|
|
149
148
|
}
|
|
150
149
|
interface IEntityOptionsTest {
|
|
151
150
|
fields?: TypeEntityOptionsFields<EntityTest, IEntityOptionsTest['_fieldsMore_']>;
|
package/dist/index.js
CHANGED
|
@@ -284,8 +284,8 @@ let MetaVersion = (_dec$q = Meta(), _dec2$q = BeanInfo({
|
|
|
284
284
|
const entity = this.scope.entity.test;
|
|
285
285
|
await this.bean.model.createTable(entity.$table, table => {
|
|
286
286
|
table.basicFields();
|
|
287
|
-
table.string(entity
|
|
288
|
-
table.string(entity
|
|
287
|
+
table.string(entity.title, 255);
|
|
288
|
+
table.string(entity.description, 255);
|
|
289
289
|
});
|
|
290
290
|
}
|
|
291
291
|
}
|