feat(0.2.1): M1 数据库迁移 PostgreSQL —— schema 切 pg, 任务域六表加 uuid, 项目 code/任务 number, db.js 切 adapter-pg, 重建 PG 基线迁移; 附实施方案文档
This commit is contained in:
@@ -270,7 +270,6 @@ export type CheckListItemOrderByWithRelationInput = {
|
||||
createdAt?: Prisma.SortOrder
|
||||
updatedAt?: Prisma.SortOrder
|
||||
list?: Prisma.CheckListOrderByWithRelationInput
|
||||
_relevance?: Prisma.CheckListItemOrderByRelevanceInput
|
||||
}
|
||||
|
||||
export type CheckListItemWhereUniqueInput = Prisma.AtLeast<{
|
||||
@@ -411,12 +410,6 @@ export type CheckListItemOrderByRelationAggregateInput = {
|
||||
_count?: Prisma.SortOrder
|
||||
}
|
||||
|
||||
export type CheckListItemOrderByRelevanceInput = {
|
||||
fields: Prisma.CheckListItemOrderByRelevanceFieldEnum | Prisma.CheckListItemOrderByRelevanceFieldEnum[]
|
||||
sort: Prisma.SortOrder
|
||||
search: string
|
||||
}
|
||||
|
||||
export type CheckListItemCountOrderByAggregateInput = {
|
||||
id?: Prisma.SortOrder
|
||||
listId?: Prisma.SortOrder
|
||||
@@ -627,7 +620,31 @@ export type CheckListItemSelect<ExtArgs extends runtime.Types.Extensions.Interna
|
||||
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["checkListItem"]>
|
||||
|
||||
export type CheckListItemSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
listId?: boolean
|
||||
title?: boolean
|
||||
note?: boolean
|
||||
done?: boolean
|
||||
doneAt?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["checkListItem"]>
|
||||
|
||||
export type CheckListItemSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
||||
id?: boolean
|
||||
listId?: boolean
|
||||
title?: boolean
|
||||
note?: boolean
|
||||
done?: boolean
|
||||
doneAt?: boolean
|
||||
sortOrder?: boolean
|
||||
createdAt?: boolean
|
||||
updatedAt?: boolean
|
||||
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||
}, ExtArgs["result"]["checkListItem"]>
|
||||
|
||||
export type CheckListItemSelectScalar = {
|
||||
id?: boolean
|
||||
@@ -645,6 +662,12 @@ export type CheckListItemOmit<ExtArgs extends runtime.Types.Extensions.InternalA
|
||||
export type CheckListItemInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type CheckListItemIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||
}
|
||||
export type CheckListItemIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
list?: boolean | Prisma.CheckListDefaultArgs<ExtArgs>
|
||||
}
|
||||
|
||||
export type $CheckListItemPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
name: "CheckListItem"
|
||||
@@ -778,6 +801,30 @@ export interface CheckListItemDelegate<ExtArgs extends runtime.Types.Extensions.
|
||||
*/
|
||||
createMany<T extends CheckListItemCreateManyArgs>(args?: Prisma.SelectSubset<T, CheckListItemCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
/**
|
||||
* Create many CheckListItems and returns the data saved in the database.
|
||||
* @param {CheckListItemCreateManyAndReturnArgs} args - Arguments to create many CheckListItems.
|
||||
* @example
|
||||
* // Create many CheckListItems
|
||||
* const checkListItem = await prisma.checkListItem.createManyAndReturn({
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
* // Create many CheckListItems and only return the `id`
|
||||
* const checkListItemWithIdOnly = await prisma.checkListItem.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 CheckListItemCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, CheckListItemCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListItemPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
/**
|
||||
* Delete a CheckListItem.
|
||||
* @param {CheckListItemDeleteArgs} args - Arguments to delete one CheckListItem.
|
||||
@@ -842,6 +889,36 @@ export interface CheckListItemDelegate<ExtArgs extends runtime.Types.Extensions.
|
||||
*/
|
||||
updateMany<T extends CheckListItemUpdateManyArgs>(args: Prisma.SelectSubset<T, CheckListItemUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
||||
|
||||
/**
|
||||
* Update zero or more CheckListItems and returns the data updated in the database.
|
||||
* @param {CheckListItemUpdateManyAndReturnArgs} args - Arguments to update many CheckListItems.
|
||||
* @example
|
||||
* // Update many CheckListItems
|
||||
* const checkListItem = await prisma.checkListItem.updateManyAndReturn({
|
||||
* where: {
|
||||
* // ... provide filter here
|
||||
* },
|
||||
* data: [
|
||||
* // ... provide data here
|
||||
* ]
|
||||
* })
|
||||
*
|
||||
* // Update zero or more CheckListItems and only return the `id`
|
||||
* const checkListItemWithIdOnly = await prisma.checkListItem.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 CheckListItemUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, CheckListItemUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$CheckListItemPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
||||
|
||||
/**
|
||||
* Create or update one CheckListItem.
|
||||
* @param {CheckListItemUpsertArgs} args - Arguments to update or create a CheckListItem.
|
||||
@@ -1277,6 +1354,29 @@ export type CheckListItemCreateManyArgs<ExtArgs extends runtime.Types.Extensions
|
||||
skipDuplicates?: boolean
|
||||
}
|
||||
|
||||
/**
|
||||
* CheckListItem createManyAndReturn
|
||||
*/
|
||||
export type CheckListItemCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the CheckListItem
|
||||
*/
|
||||
select?: Prisma.CheckListItemSelectCreateManyAndReturn<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the CheckListItem
|
||||
*/
|
||||
omit?: Prisma.CheckListItemOmit<ExtArgs> | null
|
||||
/**
|
||||
* The data used to create many CheckListItems.
|
||||
*/
|
||||
data: Prisma.CheckListItemCreateManyInput | Prisma.CheckListItemCreateManyInput[]
|
||||
skipDuplicates?: boolean
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CheckListItemIncludeCreateManyAndReturn<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
* CheckListItem update
|
||||
*/
|
||||
@@ -1321,6 +1421,36 @@ export type CheckListItemUpdateManyArgs<ExtArgs extends runtime.Types.Extensions
|
||||
limit?: number
|
||||
}
|
||||
|
||||
/**
|
||||
* CheckListItem updateManyAndReturn
|
||||
*/
|
||||
export type CheckListItemUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
||||
/**
|
||||
* Select specific fields to fetch from the CheckListItem
|
||||
*/
|
||||
select?: Prisma.CheckListItemSelectUpdateManyAndReturn<ExtArgs> | null
|
||||
/**
|
||||
* Omit specific fields from the CheckListItem
|
||||
*/
|
||||
omit?: Prisma.CheckListItemOmit<ExtArgs> | null
|
||||
/**
|
||||
* The data used to update CheckListItems.
|
||||
*/
|
||||
data: Prisma.XOR<Prisma.CheckListItemUpdateManyMutationInput, Prisma.CheckListItemUncheckedUpdateManyInput>
|
||||
/**
|
||||
* Filter which CheckListItems to update
|
||||
*/
|
||||
where?: Prisma.CheckListItemWhereInput
|
||||
/**
|
||||
* Limit how many CheckListItems to update.
|
||||
*/
|
||||
limit?: number
|
||||
/**
|
||||
* Choose, which related nodes to fetch as well
|
||||
*/
|
||||
include?: Prisma.CheckListItemIncludeUpdateManyAndReturn<ExtArgs> | null
|
||||
}
|
||||
|
||||
/**
|
||||
* CheckListItem upsert
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user