feat(0.2.1): M1 数据库迁移 PostgreSQL —— schema 切 pg, 任务域六表加 uuid, 项目 code/任务 number, db.js 切 adapter-pg, 重建 PG 基线迁移; 附实施方案文档
This commit is contained in:
@@ -217,7 +217,6 @@ export type MihomeHomeOrderByWithRelationInput = {
|
||||
name?: Prisma.SortOrder
|
||||
createdAt?: Prisma.SortOrder
|
||||
devices?: Prisma.MihomeDeviceOrderByRelationAggregateInput
|
||||
_relevance?: Prisma.MihomeHomeOrderByRelevanceInput
|
||||
}
|
||||
|
||||
export type MihomeHomeWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -303,12 +302,6 @@ export type MihomeHomeUncheckedUpdateManyInput = {
|
||||
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
||||
}
|
||||
|
||||
export type MihomeHomeOrderByRelevanceInput = {
|
||||
fields: Prisma.MihomeHomeOrderByRelevanceFieldEnum | Prisma.MihomeHomeOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
search: string
|
||||
}
|
||||
|
||||
export type MihomeHomeCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
homeId?: Prisma.SortOrder
|
||||
@@ -439,7 +432,19 @@ export type MihomeHomeSelect<ExtArgs extends runtime.Types.Extensions.InternalAr
|
||||
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["mihomeHome"]>
|
||||
|
||||
export type MihomeHomeSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
homeId?: boolean
|
||||
name?: boolean
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["mihomeHome"]>
|
||||
|
||||
export type MihomeHomeSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
homeId?: boolean
|
||||
name?: boolean
|
||||
createdAt?: boolean
|
||||
}, ExtArgs["result"]["mihomeHome"]>
|
||||
|
||||
export type MihomeHomeSelectScalar = {
|
||||
id?: boolean
|
||||
@@ -453,6 +458,8 @@ export type MihomeHomeInclude<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
devices?: boolean | Prisma.MihomeHome$devicesArgs<ExtArgs>
|
||||
_count?: boolean | Prisma.MihomeHomeCountOutputTypeDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type MihomeHomeIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||
export type MihomeHomeIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {}
|
||||
|
||||
export type $MihomeHomePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "MihomeHome"
|
||||
@@ -581,6 +588,30 @@ export interface MihomeHomeDelegate<ExtArgs extends runtime.Types.Extensions.Int
|
||||
*/
|
||||
createMany<T extends MihomeHomeCreateManyArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
/**
|
||||
* Create many MihomeHomes and returns the data saved in the database.
|
||||
* @param {MihomeHomeCreateManyAndReturnArgs} args - Arguments to create many MihomeHomes.
|
||||
* @example
|
||||
* // Create many MihomeHomes
|
||||
* const mihomeHome = await prisma.mihomeHome.createManyAndReturn({
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
* // Create many MihomeHomes and only return the `id`
|
||||
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.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 MihomeHomeCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, MihomeHomeCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
/**
|
||||
* Delete a MihomeHome.
|
||||
* @param {MihomeHomeDeleteArgs} args - Arguments to delete one MihomeHome.
|
||||
@@ -645,6 +676,36 @@ export interface MihomeHomeDelegate<ExtArgs extends runtime.Types.Extensions.Int
|
||||
*/
|
||||
updateMany<T extends MihomeHomeUpdateManyArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
/**
|
||||
* Update zero or more MihomeHomes and returns the data updated in the database.
|
||||
* @param {MihomeHomeUpdateManyAndReturnArgs} args - Arguments to update many MihomeHomes.
|
||||
* @example
|
||||
* // Update many MihomeHomes
|
||||
* const mihomeHome = await prisma.mihomeHome.updateManyAndReturn({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* },
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
* // Update zero or more MihomeHomes and only return the `id`
|
||||
* const mihomeHomeWithIdOnly = await prisma.mihomeHome.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 MihomeHomeUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, MihomeHomeUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$MihomeHomePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
/**
|
||||
* Create or update one MihomeHome.
|
||||
* @param {MihomeHomeUpsertArgs} args - Arguments to update or create a MihomeHome.
|
||||
@@ -1075,6 +1136,25 @@ export type MihomeHomeCreateManyArgs<ExtArgs extends runtime.Types.Extensions.In
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* MihomeHome createManyAndReturn
|
||||
*/
|
||||
export type MihomeHomeCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the MihomeHome
|
||||
*/
|
||||
select?: Prisma.MihomeHomeSelectCreateManyAndReturn<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the MihomeHome
|
||||
*/
|
||||
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
|
||||
/**
|
||||
* The data used to create many MihomeHomes.
|
||||
*/
|
||||
data: Prisma.MihomeHomeCreateManyInput | Prisma.MihomeHomeCreateManyInput[]
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* MihomeHome update
|
||||
*/
|
||||
@@ -1119,6 +1199,32 @@ export type MihomeHomeUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.In
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* MihomeHome updateManyAndReturn
|
||||
*/
|
||||
export type MihomeHomeUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the MihomeHome
|
||||
*/
|
||||
select?: Prisma.MihomeHomeSelectUpdateManyAndReturn<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the MihomeHome
|
||||
*/
|
||||
omit?: Prisma.MihomeHomeOmit<ExtArgs> | null
|
||||
/**
|
||||
* The data used to update MihomeHomes.
|
||||
*/
|
||||
data: Prisma.XOR<Prisma.MihomeHomeUpdateManyMutationInput, Prisma.MihomeHomeUncheckedUpdateManyInput>
|
||||
/**
|
||||
* Filter which MihomeHomes to update
|
||||
*/
|
||||
where?: Prisma.MihomeHomeWhereInput
|
||||
/**
|
||||
* Limit how many MihomeHomes to update.
|
||||
*/
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* MihomeHome upsert
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user