feat(0.2.1): M1 数据库迁移 PostgreSQL —— schema 切 pg, 任务域六表加 uuid, 项目 code/任务 number, db.js 切 adapter-pg, 重建 PG 基线迁移; 附实施方案文档
This commit is contained in:
@@ -319,7 +319,6 @@ export type ServerNodeHistoryOrderByWithRelationInput = {
|
||||
process?: Prisma.SortOrder
|
||||
connections?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
_relevance?: Prisma.ServerNodeHistoryOrderByRelevanceInput
|
||||
}
|
||||
|
||||
export type ServerNodeHistoryWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -481,12 +480,6 @@ export type ServerNodeHistoryUncheckedUpdateManyInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type ServerNodeHistoryOrderByRelevanceInput = {
|
||||
fields: Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum | Prisma.ServerNodeHistoryOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
search: string
|
||||
}
|
||||
|
||||
export type ServerNodeHistoryUuidPeriodCompoundUniqueInput = {
|
||||
uuid: string
|
||||
period: Date | string
|
||||
@@ -578,7 +571,35 @@ export type ServerNodeHistorySelect<ExtArgs extends runtime.Types.Extensions.Int
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["serverNodeHistory"]>
|
||||
|
||||
export type ServerNodeHistorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
uuid?: boolean
|
||||
period?: boolean
|
||||
cpu?: boolean
|
||||
ram?: boolean
|
||||
load?: boolean
|
||||
disk?: boolean
|
||||
netIn?: boolean
|
||||
netOut?: boolean
|
||||
process?: boolean
|
||||
connections?: boolean
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["serverNodeHistory"]>
|
||||
|
||||
export type ServerNodeHistorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
uuid?: boolean
|
||||
period?: boolean
|
||||
cpu?: boolean
|
||||
ram?: boolean
|
||||
load?: boolean
|
||||
disk?: boolean
|
||||
netIn?: boolean
|
||||
netOut?: boolean
|
||||
process?: boolean
|
||||
connections?: boolean
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["serverNodeHistory"]>
|
||||
|
||||
export type ServerNodeHistorySelectScalar = {
|
||||
id?: boolean
|
||||
@@ -730,6 +751,30 @@ export interface ServerNodeHistoryDelegate<ExtArgs extends runtime.Types.Extensi
|
||||
*/
|
||||
createMany<T extends ServerNodeHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
/**
|
||||
* Create many ServerNodeHistories and returns the data saved in the database.
|
||||
* @param {ServerNodeHistoryCreateManyAndReturnArgs} args - Arguments to create many ServerNodeHistories.
|
||||
* @example
|
||||
* // Create many ServerNodeHistories
|
||||
* const serverNodeHistory = await prisma.serverNodeHistory.createManyAndReturn({
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
* // Create many ServerNodeHistories and only return the `id`
|
||||
* const serverNodeHistoryWithIdOnly = await prisma.serverNodeHistory.createManyAndReturn({
|
||||
* select: { id: true },
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
*
|
||||
*/
|
||||
createManyAndReturn<T extends ServerNodeHistoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, ServerNodeHistoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
/**
|
||||
* Delete a ServerNodeHistory.
|
||||
* @param {ServerNodeHistoryDeleteArgs} args - Arguments to delete one ServerNodeHistory.
|
||||
@@ -794,6 +839,36 @@ export interface ServerNodeHistoryDelegate<ExtArgs extends runtime.Types.Extensi
|
||||
*/
|
||||
updateMany<T extends ServerNodeHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
/**
|
||||
* Update zero or more ServerNodeHistories and returns the data updated in the database.
|
||||
* @param {ServerNodeHistoryUpdateManyAndReturnArgs} args - Arguments to update many ServerNodeHistories.
|
||||
* @example
|
||||
* // Update many ServerNodeHistories
|
||||
* const serverNodeHistory = await prisma.serverNodeHistory.updateManyAndReturn({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* },
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
* // Update zero or more ServerNodeHistories and only return the `id`
|
||||
* const serverNodeHistoryWithIdOnly = await prisma.serverNodeHistory.updateManyAndReturn({
|
||||
* select: { id: true },
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* },
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
* Note, that providing `undefined` is treated as the value not being there.
|
||||
* Read more here: https://pris.ly/d/null-undefined
|
||||
*
|
||||
*/
|
||||
updateManyAndReturn<T extends ServerNodeHistoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, ServerNodeHistoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$ServerNodeHistoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
/**
|
||||
* Create or update one ServerNodeHistory.
|
||||
* @param {ServerNodeHistoryUpsertArgs} args - Arguments to update or create a ServerNodeHistory.
|
||||
@@ -1207,6 +1282,25 @@ export type ServerNodeHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extens
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* ServerNodeHistory createManyAndReturn
|
||||
*/
|
||||
export type ServerNodeHistoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the ServerNodeHistory
|
||||
*/
|
||||
select?: Prisma.ServerNodeHistorySelectCreateManyAndReturn<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the ServerNodeHistory
|
||||
*/
|
||||
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
||||
/**
|
||||
* The data used to create many ServerNodeHistories.
|
||||
*/
|
||||
data: Prisma.ServerNodeHistoryCreateManyInput | Prisma.ServerNodeHistoryCreateManyInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* ServerNodeHistory update
|
||||
*/
|
||||
@@ -1247,6 +1341,32 @@ export type ServerNodeHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extens
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* ServerNodeHistory updateManyAndReturn
|
||||
*/
|
||||
export type ServerNodeHistoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the ServerNodeHistory
|
||||
*/
|
||||
select?: Prisma.ServerNodeHistorySelectUpdateManyAndReturn<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the ServerNodeHistory
|
||||
*/
|
||||
omit?: Prisma.ServerNodeHistoryOmit<ExtArgs> | null
|
||||
/**
|
||||
* The data used to update ServerNodeHistories.
|
||||
*/
|
||||
data: Prisma.XOR<Prisma.ServerNodeHistoryUpdateManyMutationInput, Prisma.ServerNodeHistoryUncheckedUpdateManyInput>
|
||||
/**
|
||||
* Filter which ServerNodeHistories to update
|
||||
*/
|
||||
where?: Prisma.ServerNodeHistoryWhereInput
|
||||
/**
|
||||
* Limit how many ServerNodeHistories to update.
|
||||
*/
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* ServerNodeHistory upsert
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user