File tree Expand file tree Collapse file tree 3 files changed +27
-1
lines changed
migrations/20241031160035_ Expand file tree Collapse file tree 3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1+ -- AlterTable
2+ ALTER TABLE " User" ALTER COLUMN " budget" SET DEFAULT 1100000 ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ generator client {
1010
1111model User {
1212 id Int @id @default (autoincrement () )
13- budget Int @default (2000000 ) // 2M In OP
13+ budget Int @default (1100000 ) // 1.1M In OP
1414 address String @unique ()
1515 smartaddress String ? @unique ()
1616 ballotSuccess Int ? @map (" ballot_success " )
Original file line number Diff line number Diff line change @@ -1277,5 +1277,29 @@ export class FlowController {
12771277 await this . prismaService . projectCoI . deleteMany ( {
12781278 where : { userId : userId } ,
12791279 } ) ;
1280+ await this . prismaService . budgetDelegation . findUnique ( {
1281+ where : { userId : userId } ,
1282+ } ) ;
1283+ await this . prismaService . collectionDelegation . deleteMany ( {
1284+ where : { userId : userId } ,
1285+ } ) ;
1286+ await this . prismaService . farcasterConnection . deleteMany ( {
1287+ where : { userId : userId } ,
1288+ } ) ;
1289+ await this . prismaService . share . deleteMany ( {
1290+ where : { userId : userId } ,
1291+ } ) ;
1292+ await this . prismaService . userAttestation . deleteMany ( {
1293+ where : { userId : userId } ,
1294+ } ) ;
1295+ await this . prismaService . userBudgetAttestation . deleteMany ( {
1296+ where : { userId : userId } ,
1297+ } ) ;
1298+ await this . prismaService . userCollectionFinish . deleteMany ( {
1299+ where : { userId : userId } ,
1300+ } ) ;
1301+ await this . prismaService . user . deleteMany ( {
1302+ where : { id : userId } ,
1303+ } ) ;
12801304 }
12811305}
You can’t perform that action at this time.
0 commit comments