Skip to content

Commit a38e81d

Browse files
authored
Merge pull request #125 from codeit-moving/release
Release -> Main 20250106 15:18 update_date
2 parents 8d10a4f + 7ab5d57 commit a38e81d

File tree

18 files changed

+325
-138
lines changed

18 files changed

+325
-138
lines changed

prisma/ERD.md

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ erDiagram
1313
String password "nullable"
1414
String phoneNumber UK "nullable"
1515
Boolean isOAuth
16-
DateTime createAt
17-
DateTime updateAt
16+
DateTime createdAt
17+
DateTime updatedAt
1818
String userType
1919
}
2020
"Customer" {
2121
Int id PK
2222
Int services
2323
Int regions
24-
DateTime createAt
25-
DateTime updateAt
24+
DateTime createdAt
25+
DateTime updatedAt
2626
Int userId FK
2727
}
2828
"Mover" {
@@ -34,24 +34,24 @@ erDiagram
3434
String description
3535
String introduction
3636
Int userId FK
37-
DateTime createAt
38-
DateTime updateAt
37+
DateTime createdAt
38+
DateTime updatedAt
3939
}
4040
"Service" {
4141
Int id PK
4242
String value
4343
Int code UK
4444
Boolean status
45-
DateTime createAt
46-
DateTime updateAt
45+
DateTime createdAt
46+
DateTime updatedAt
4747
}
4848
"Region" {
4949
Int id PK
5050
String value
5151
Int code
5252
Boolean status
53-
DateTime createAt
54-
DateTime updateAt
53+
DateTime createdAt
54+
DateTime updatedAt
5555
}
5656
"MovingRequest" {
5757
Int id PK
@@ -63,23 +63,23 @@ erDiagram
6363
Int requestCount
6464
Int designateCount
6565
Boolean isDesignated
66-
DateTime createAt
67-
DateTime updateAt
66+
DateTime createdAt
67+
DateTime updatedAt
6868
Int customerId FK
6969
}
7070
"Quote" {
7171
Int id PK
7272
Int cost
7373
String comment
74-
DateTime createAt
75-
DateTime updateAt
74+
DateTime createdAt
75+
DateTime updatedAt
7676
Int movingRequestId FK
7777
Int moverId FK
7878
}
7979
"ConfirmedQuote" {
8080
Int id PK
81-
DateTime createAt
82-
DateTime updateAt
81+
DateTime createdAt
82+
DateTime updatedAt
8383
Int movingRequestId FK
8484
Int quoteId FK
8585
Int customerId FK
@@ -90,8 +90,8 @@ erDiagram
9090
String content
9191
Int rating
9292
String imageUrl
93-
DateTime createAt
94-
DateTime updateAt
93+
DateTime createdAt
94+
DateTime updatedAt
9595
Int confirmedQuoteId FK
9696
Int customerId FK
9797
Int moverId FK
@@ -100,24 +100,24 @@ erDiagram
100100
Int id PK
101101
String content
102102
Boolean isRead
103-
DateTime createAt
104-
DateTime updateAt
103+
DateTime createdAt
104+
DateTime updatedAt
105105
Int userId FK
106106
}
107107
"ReviewComment" {
108108
Int id PK
109109
String content
110-
DateTime createAt
111-
DateTime updateAt
110+
DateTime createdAt
111+
DateTime updatedAt
112112
Int reviewId FK
113113
Int moverId FK
114114
}
115115
"ProfileImage" {
116116
Int id PK
117117
String imageUrl
118118
Boolean status
119-
DateTime createAt
120-
DateTime updateAt
119+
DateTime createdAt
120+
DateTime updatedAt
121121
Int customerId FK "nullable"
122122
Int moverId FK "nullable"
123123
}
@@ -161,8 +161,8 @@ erDiagram
161161
- `password`:
162162
- `phoneNumber`:
163163
- `isOAuth`:
164-
- `createAt`:
165-
- `updateAt`:
164+
- `createdAt`:
165+
- `updatedAt`:
166166
- `userType`:
167167

168168
### `Customer`
@@ -171,8 +171,8 @@ erDiagram
171171
- `id`:
172172
- `services`:
173173
- `regions`:
174-
- `createAt`:
175-
- `updateAt`:
174+
- `createdAt`:
175+
- `updatedAt`:
176176
- `userId`:
177177

178178
### `Mover`
@@ -186,8 +186,8 @@ erDiagram
186186
- `description`:
187187
- `introduction`:
188188
- `userId`:
189-
- `createAt`:
190-
- `updateAt`:
189+
- `createdAt`:
190+
- `updatedAt`:
191191

192192
### `Service`
193193

@@ -196,8 +196,8 @@ erDiagram
196196
- `value`:
197197
- `code`:
198198
- `status`:
199-
- `createAt`:
200-
- `updateAt`:
199+
- `createdAt`:
200+
- `updatedAt`:
201201

202202
### `Region`
203203

@@ -206,8 +206,8 @@ erDiagram
206206
- `value`:
207207
- `code`:
208208
- `status`:
209-
- `createAt`:
210-
- `updateAt`:
209+
- `createdAt`:
210+
- `updatedAt`:
211211

212212
### `MovingRequest`
213213

@@ -221,8 +221,8 @@ erDiagram
221221
- `requestCount`:
222222
- `designateCount`:
223223
- `isDesignated`:
224-
- `createAt`:
225-
- `updateAt`:
224+
- `createdAt`:
225+
- `updatedAt`:
226226
- `customerId`:
227227

228228
### `Quote`
@@ -231,17 +231,17 @@ erDiagram
231231
- `id`:
232232
- `cost`:
233233
- `comment`:
234-
- `createAt`:
235-
- `updateAt`:
234+
- `createdAt`:
235+
- `updatedAt`:
236236
- `movingRequestId`:
237237
- `moverId`:
238238

239239
### `ConfirmedQuote`
240240

241241
**Properties**
242242
- `id`:
243-
- `createAt`:
244-
- `updateAt`:
243+
- `createdAt`:
244+
- `updatedAt`:
245245
- `movingRequestId`:
246246
- `quoteId`:
247247
- `customerId`:
@@ -254,8 +254,8 @@ erDiagram
254254
- `content`:
255255
- `rating`:
256256
- `imageUrl`:
257-
- `createAt`:
258-
- `updateAt`:
257+
- `createdAt`:
258+
- `updatedAt`:
259259
- `confirmedQuoteId`:
260260
- `customerId`:
261261
- `moverId`:
@@ -266,17 +266,17 @@ erDiagram
266266
- `id`:
267267
- `content`:
268268
- `isRead`:
269-
- `createAt`:
270-
- `updateAt`:
269+
- `createdAt`:
270+
- `updatedAt`:
271271
- `userId`:
272272

273273
### `ReviewComment`
274274

275275
**Properties**
276276
- `id`:
277277
- `content`:
278-
- `createAt`:
279-
- `updateAt`:
278+
- `createdAt`:
279+
- `updatedAt`:
280280
- `reviewId`:
281281
- `moverId`:
282282

@@ -286,8 +286,8 @@ erDiagram
286286
- `id`:
287287
- `imageUrl`:
288288
- `status`:
289-
- `createAt`:
290-
- `updateAt`:
289+
- `createdAt`:
290+
- `updatedAt`:
291291
- `customerId`:
292292
- `moverId`:
293293

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
/*
2+
Warnings:
3+
4+
- You are about to drop the column `createAt` on the `ConfirmedQuote` table. All the data in the column will be lost.
5+
- You are about to drop the column `updateAt` on the `ConfirmedQuote` table. All the data in the column will be lost.
6+
- You are about to drop the column `createAt` on the `Customer` table. All the data in the column will be lost.
7+
- You are about to drop the column `updateAt` on the `Customer` table. All the data in the column will be lost.
8+
- You are about to drop the column `createAt` on the `Mover` table. All the data in the column will be lost.
9+
- You are about to drop the column `updateAt` on the `Mover` table. All the data in the column will be lost.
10+
- You are about to drop the column `createAt` on the `MovingRequest` table. All the data in the column will be lost.
11+
- You are about to drop the column `updateAt` on the `MovingRequest` table. All the data in the column will be lost.
12+
- You are about to drop the column `createAt` on the `ProfileImage` table. All the data in the column will be lost.
13+
- You are about to drop the column `updateAt` on the `ProfileImage` table. All the data in the column will be lost.
14+
- You are about to drop the column `createAt` on the `Quote` table. All the data in the column will be lost.
15+
- You are about to drop the column `updateAt` on the `Quote` table. All the data in the column will be lost.
16+
- You are about to drop the column `createAt` on the `Region` table. All the data in the column will be lost.
17+
- You are about to drop the column `updateAt` on the `Region` table. All the data in the column will be lost.
18+
- You are about to drop the column `createAt` on the `Review` table. All the data in the column will be lost.
19+
- You are about to drop the column `updateAt` on the `Review` table. All the data in the column will be lost.
20+
- You are about to drop the column `createAt` on the `ReviewComment` table. All the data in the column will be lost.
21+
- You are about to drop the column `updateAt` on the `ReviewComment` table. All the data in the column will be lost.
22+
- You are about to drop the column `createAt` on the `Service` table. All the data in the column will be lost.
23+
- You are about to drop the column `updateAt` on the `Service` table. All the data in the column will be lost.
24+
- You are about to drop the column `createAt` on the `User` table. All the data in the column will be lost.
25+
- You are about to drop the column `updateAt` on the `User` table. All the data in the column will be lost.
26+
- You are about to drop the column `createAt` on the `notification` table. All the data in the column will be lost.
27+
- You are about to drop the column `updateAt` on the `notification` table. All the data in the column will be lost.
28+
- Added the required column `updatedAt` to the `ConfirmedQuote` table without a default value. This is not possible if the table is not empty.
29+
- Added the required column `updatedAt` to the `Customer` table without a default value. This is not possible if the table is not empty.
30+
- Added the required column `updatedAt` to the `Mover` table without a default value. This is not possible if the table is not empty.
31+
- Added the required column `updatedAt` to the `MovingRequest` table without a default value. This is not possible if the table is not empty.
32+
- Added the required column `updatedAt` to the `ProfileImage` table without a default value. This is not possible if the table is not empty.
33+
- Added the required column `updatedAt` to the `Quote` table without a default value. This is not possible if the table is not empty.
34+
- Added the required column `updatedAt` to the `Region` table without a default value. This is not possible if the table is not empty.
35+
- Added the required column `updatedAt` to the `Review` table without a default value. This is not possible if the table is not empty.
36+
- Added the required column `updatedAt` to the `ReviewComment` table without a default value. This is not possible if the table is not empty.
37+
- Added the required column `updatedAt` to the `Service` table without a default value. This is not possible if the table is not empty.
38+
- Added the required column `updatedAt` to the `User` table without a default value. This is not possible if the table is not empty.
39+
- Added the required column `updatedAt` to the `notification` table without a default value. This is not possible if the table is not empty.
40+
41+
*/
42+
-- AlterTable
43+
ALTER TABLE "ConfirmedQuote" DROP COLUMN "createAt",
44+
DROP COLUMN "updateAt",
45+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
46+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
47+
48+
-- AlterTable
49+
ALTER TABLE "Customer" DROP COLUMN "createAt",
50+
DROP COLUMN "updateAt",
51+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
52+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
53+
54+
-- AlterTable
55+
ALTER TABLE "Mover" DROP COLUMN "createAt",
56+
DROP COLUMN "updateAt",
57+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
58+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
59+
60+
-- AlterTable
61+
ALTER TABLE "MovingRequest" DROP COLUMN "createAt",
62+
DROP COLUMN "updateAt",
63+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
64+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
65+
66+
-- AlterTable
67+
ALTER TABLE "ProfileImage" DROP COLUMN "createAt",
68+
DROP COLUMN "updateAt",
69+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
70+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
71+
72+
-- AlterTable
73+
ALTER TABLE "Quote" DROP COLUMN "createAt",
74+
DROP COLUMN "updateAt",
75+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
76+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
77+
78+
-- AlterTable
79+
ALTER TABLE "Region" DROP COLUMN "createAt",
80+
DROP COLUMN "updateAt",
81+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
82+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
83+
84+
-- AlterTable
85+
ALTER TABLE "Review" DROP COLUMN "createAt",
86+
DROP COLUMN "updateAt",
87+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
88+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
89+
90+
-- AlterTable
91+
ALTER TABLE "ReviewComment" DROP COLUMN "createAt",
92+
DROP COLUMN "updateAt",
93+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
94+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
95+
96+
-- AlterTable
97+
ALTER TABLE "Service" DROP COLUMN "createAt",
98+
DROP COLUMN "updateAt",
99+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
100+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
101+
102+
-- AlterTable
103+
ALTER TABLE "User" DROP COLUMN "createAt",
104+
DROP COLUMN "updateAt",
105+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
106+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
107+
108+
-- AlterTable
109+
ALTER TABLE "notification" DROP COLUMN "createAt",
110+
DROP COLUMN "updateAt",
111+
ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
112+
ADD COLUMN "updatedAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;

0 commit comments

Comments
 (0)