feat(0.2.1): M1 数据库迁移 PostgreSQL —— schema 切 pg, 任务域六表加 uuid, 项目 code/任务 number, db.js 切 adapter-pg, 重建 PG 基线迁移; 附实施方案文档
This commit is contained in:
@@ -246,7 +246,6 @@ export type OilPriceHistoryOrderByWithRelationInput = {
|
||||
price?: Prisma.SortOrder
|
||||
source?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
_relevance?: Prisma.OilPriceHistoryOrderByRelevanceInput
|
||||
}
|
||||
|
||||
export type OilPriceHistoryWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -358,12 +357,6 @@ export type OilPriceHistoryUncheckedUpdateManyInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type OilPriceHistoryOrderByRelevanceInput = {
|
||||
fields: Prisma.OilPriceHistoryOrderByRelevanceFieldEnum | Prisma.OilPriceHistoryOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
search: string
|
||||
}
|
||||
|
||||
export type OilPriceHistoryDateProvinceFuelCompoundUniqueInput = {
|
||||
date: Date | string
|
||||
province: string
|
||||
@@ -422,7 +415,25 @@ export type OilPriceHistorySelect<ExtArgs extends runtime.Types.Extensions.Inter
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["oilPriceHistory"]>
|
||||
|
||||
export type OilPriceHistorySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
date?: boolean
|
||||
province?: boolean
|
||||
fuel?: boolean
|
||||
price?: boolean
|
||||
source?: boolean
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["oilPriceHistory"]>
|
||||
|
||||
export type OilPriceHistorySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
date?: boolean
|
||||
province?: boolean
|
||||
fuel?: boolean
|
||||
price?: boolean
|
||||
source?: boolean
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["oilPriceHistory"]>
|
||||
|
||||
export type OilPriceHistorySelectScalar = {
|
||||
id?: boolean
|
||||
@@ -564,6 +575,30 @@ export interface OilPriceHistoryDelegate<ExtArgs extends runtime.Types.Extension
|
||||
*/
|
||||
createMany<T extends OilPriceHistoryCreateManyArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
/**
|
||||
* Create many OilPriceHistories and returns the data saved in the database.
|
||||
* @param {OilPriceHistoryCreateManyAndReturnArgs} args - Arguments to create many OilPriceHistories.
|
||||
* @example
|
||||
* // Create many OilPriceHistories
|
||||
* const oilPriceHistory = await prisma.oilPriceHistory.createManyAndReturn({
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
* // Create many OilPriceHistories and only return the `id`
|
||||
* const oilPriceHistoryWithIdOnly = await prisma.oilPriceHistory.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 OilPriceHistoryCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OilPriceHistoryCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
/**
|
||||
* Delete a OilPriceHistory.
|
||||
* @param {OilPriceHistoryDeleteArgs} args - Arguments to delete one OilPriceHistory.
|
||||
@@ -628,6 +663,36 @@ export interface OilPriceHistoryDelegate<ExtArgs extends runtime.Types.Extension
|
||||
*/
|
||||
updateMany<T extends OilPriceHistoryUpdateManyArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
/**
|
||||
* Update zero or more OilPriceHistories and returns the data updated in the database.
|
||||
* @param {OilPriceHistoryUpdateManyAndReturnArgs} args - Arguments to update many OilPriceHistories.
|
||||
* @example
|
||||
* // Update many OilPriceHistories
|
||||
* const oilPriceHistory = await prisma.oilPriceHistory.updateManyAndReturn({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* },
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
* // Update zero or more OilPriceHistories and only return the `id`
|
||||
* const oilPriceHistoryWithIdOnly = await prisma.oilPriceHistory.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 OilPriceHistoryUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OilPriceHistoryUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OilPriceHistoryPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
/**
|
||||
* Create or update one OilPriceHistory.
|
||||
* @param {OilPriceHistoryUpsertArgs} args - Arguments to update or create a OilPriceHistory.
|
||||
@@ -1036,6 +1101,25 @@ export type OilPriceHistoryCreateManyArgs<ExtArgs extends runtime.Types.Extensio
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* OilPriceHistory createManyAndReturn
|
||||
*/
|
||||
export type OilPriceHistoryCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the OilPriceHistory
|
||||
*/
|
||||
select?: Prisma.OilPriceHistorySelectCreateManyAndReturn<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the OilPriceHistory
|
||||
*/
|
||||
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
|
||||
/**
|
||||
* The data used to create many OilPriceHistories.
|
||||
*/
|
||||
data: Prisma.OilPriceHistoryCreateManyInput | Prisma.OilPriceHistoryCreateManyInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* OilPriceHistory update
|
||||
*/
|
||||
@@ -1076,6 +1160,32 @@ export type OilPriceHistoryUpdateManyArgs<ExtArgs extends runtime.Types.Extensio
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* OilPriceHistory updateManyAndReturn
|
||||
*/
|
||||
export type OilPriceHistoryUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the OilPriceHistory
|
||||
*/
|
||||
select?: Prisma.OilPriceHistorySelectUpdateManyAndReturn<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the OilPriceHistory
|
||||
*/
|
||||
omit?: Prisma.OilPriceHistoryOmit<ExtArgs> | null
|
||||
/**
|
||||
* The data used to update OilPriceHistories.
|
||||
*/
|
||||
data: Prisma.XOR<Prisma.OilPriceHistoryUpdateManyMutationInput, Prisma.OilPriceHistoryUncheckedUpdateManyInput>
|
||||
/**
|
||||
* Filter which OilPriceHistories to update
|
||||
*/
|
||||
where?: Prisma.OilPriceHistoryWhereInput
|
||||
/**
|
||||
* Limit how many OilPriceHistories to update.
|
||||
*/
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* OilPriceHistory upsert
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user