没编译appdomain

This commit is contained in:
Xu Chang 2023-04-14 20:10:05 +08:00
parent fed8575563
commit 6c96f6a331
8 changed files with 23 additions and 32 deletions

View File

@ -11,17 +11,17 @@ export declare type OpSchema = EntityShape & {
type: 'image' | 'video' | 'audio' | 'file';
bucket: String<16>;
objectId: String<64>;
tag1: String<16>;
tag2: String<16>;
tag1?: String<32> | null;
tag2?: String<32> | null;
filename: String<256>;
md5: Text;
md5?: Text | null;
entity: "article" | "user" | string;
entityId: String<64>;
extra1?: Text | null;
extension: String<16>;
size?: Int<4> | null;
sort?: Int<4> | null;
fileType: String<128>;
fileType?: String<128> | null;
};
export declare type OpAttr = keyof OpSchema;
export declare type Schema = EntityShape & {
@ -29,17 +29,17 @@ export declare type Schema = EntityShape & {
type: 'image' | 'video' | 'audio' | 'file';
bucket: String<16>;
objectId: String<64>;
tag1: String<16>;
tag2: String<16>;
tag1?: String<32> | null;
tag2?: String<32> | null;
filename: String<256>;
md5: Text;
md5?: Text | null;
entity: "article" | "user" | string;
entityId: String<64>;
extra1?: Text | null;
extension: String<16>;
size?: Int<4> | null;
sort?: Int<4> | null;
fileType: String<128>;
fileType?: String<128> | null;
article?: Article.Schema;
user?: User.Schema;
} & {

View File

@ -29,17 +29,15 @@ exports.desc = {
}
},
tag1: {
notNull: true,
type: "varchar",
params: {
length: 16
length: 32
}
},
tag2: {
notNull: true,
type: "varchar",
params: {
length: 16
length: 32
}
},
filename: {
@ -50,7 +48,6 @@ exports.desc = {
}
},
md5: {
notNull: true,
type: "text"
},
entity: {
@ -93,7 +90,6 @@ exports.desc = {
}
},
fileType: {
notNull: true,
type: "varchar",
params: {
length: 128

View File

@ -9,15 +9,15 @@ import * as User from "../User/Schema";
import * as Token from "../Token/Schema";
export declare type OpSchema = EntityShape & {
mobile: String<16>;
userId: ForeignKey<"user">;
userId?: ForeignKey<"user"> | null;
ableState?: AbleState | null;
};
export declare type OpAttr = keyof OpSchema;
export declare type Schema = EntityShape & {
mobile: String<16>;
userId: ForeignKey<"user">;
userId?: ForeignKey<"user"> | null;
ableState?: AbleState | null;
user: User.Schema;
user?: User.Schema | null;
token$entity?: Array<Token.Schema>;
token$entity$$aggr?: AggregationResult<Token.Schema>;
} & {
@ -87,12 +87,12 @@ export declare type Selection<P extends Object = Projection> = Omit<SelectOperat
export declare type Aggregation = DeduceAggregation<Projection, Filter, Sorter>;
export declare type CreateOperationData = FormCreateData<Omit<OpSchema, "userId">> & (({
userId?: never;
user: User.CreateSingleOperation;
user?: User.CreateSingleOperation;
} | {
userId: String<64>;
user?: User.UpdateOperation;
} | {
userId: String<64>;
userId?: String<64>;
})) & {
token$entity?: OakOperation<Token.UpdateOperation["action"], Omit<Token.UpdateOperationData, "entity" | "entityId">, Token.Filter> | OakOperation<"create", Omit<Token.CreateOperationData, "entity" | "entityId">[]> | Array<OakOperation<"create", Omit<Token.CreateOperationData, "entity" | "entityId">> | OakOperation<Token.UpdateOperation["action"], Omit<Token.UpdateOperationData, "entity" | "entityId">, Token.Filter>>;
};

View File

@ -12,7 +12,6 @@ exports.desc = {
}
},
userId: {
notNull: true,
type: "ref",
ref: "user"
},

View File

@ -13,18 +13,18 @@ export declare type OpSchema = EntityShape & {
entity: String<32>;
entityId: String<64>;
name: String<32>;
description: Text;
config: WechatPublicConfig;
offset: Int<4>;
description?: Text | null;
config?: WechatPublicConfig | null;
offset?: Int<4> | null;
};
export declare type OpAttr = keyof OpSchema;
export declare type Schema = EntityShape & {
entity: String<32>;
entityId: String<64>;
name: String<32>;
description: Text;
config: WechatPublicConfig;
offset: Int<4>;
description?: Text | null;
config?: WechatPublicConfig | null;
offset?: Int<4> | null;
} & {
[A in ExpressionKey]?: any;
};

View File

@ -26,15 +26,12 @@ exports.desc = {
}
},
description: {
notNull: true,
type: "text"
},
config: {
notNull: true,
type: "object"
},
offset: {
notNull: true,
type: "int",
params: {
width: 4,

View File

@ -27,7 +27,7 @@ export declare type OpSchema = EntityShape & {
expired?: Boolean | null;
ticket?: Text | null;
url?: String<64> | null;
permanent: Boolean;
permanent?: Boolean | null;
buffer?: Text | null;
applicationId: ForeignKey<"application">;
props: WechatQrCodeProps;
@ -44,7 +44,7 @@ export declare type Schema = EntityShape & {
expired?: Boolean | null;
ticket?: Text | null;
url?: String<64> | null;
permanent: Boolean;
permanent?: Boolean | null;
buffer?: Text | null;
applicationId: ForeignKey<"application">;
props: WechatQrCodeProps;

View File

@ -56,7 +56,6 @@ exports.desc = {
}
},
permanent: {
notNull: true,
type: "boolean"
},
buffer: {