Skip to content

Commit ab28c76

Browse files
committed
build: migrate db
1 parent 1e77a68 commit ab28c76

File tree

3 files changed

+99
-0
lines changed

3 files changed

+99
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CREATE INDEX IF NOT EXISTS "users_created_at_index" ON "users" USING btree ("created_at");

drizzle/meta/0001_snapshot.json

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"id": "b5aada34-28a3-4e17-a6e2-794451107838",
3+
"prevId": "756654b1-d659-4527-8b6d-0252c72b1fcc",
4+
"version": "7",
5+
"dialect": "postgresql",
6+
"tables": {
7+
"public.users": {
8+
"name": "users",
9+
"schema": "",
10+
"columns": {
11+
"id": {
12+
"name": "id",
13+
"type": "uuid",
14+
"primaryKey": true,
15+
"notNull": true,
16+
"default": "gen_random_uuid()"
17+
},
18+
"name": {
19+
"name": "name",
20+
"type": "varchar",
21+
"primaryKey": false,
22+
"notNull": true
23+
},
24+
"email": {
25+
"name": "email",
26+
"type": "varchar",
27+
"primaryKey": false,
28+
"notNull": true
29+
},
30+
"password": {
31+
"name": "password",
32+
"type": "varchar(72)",
33+
"primaryKey": false,
34+
"notNull": true
35+
},
36+
"created_at": {
37+
"name": "created_at",
38+
"type": "timestamp (3) with time zone",
39+
"primaryKey": false,
40+
"notNull": true,
41+
"default": "CURRENT_TIMESTAMP"
42+
},
43+
"updated_at": {
44+
"name": "updated_at",
45+
"type": "timestamp (3) with time zone",
46+
"primaryKey": false,
47+
"notNull": true,
48+
"default": "CURRENT_TIMESTAMP"
49+
}
50+
},
51+
"indexes": {
52+
"users_created_at_index": {
53+
"name": "users_created_at_index",
54+
"columns": [
55+
{
56+
"expression": "created_at",
57+
"isExpression": false,
58+
"asc": true,
59+
"nulls": "last"
60+
}
61+
],
62+
"isUnique": false,
63+
"concurrently": false,
64+
"method": "btree",
65+
"with": {}
66+
}
67+
},
68+
"foreignKeys": {},
69+
"compositePrimaryKeys": {},
70+
"uniqueConstraints": {
71+
"users_email_unique": {
72+
"name": "users_email_unique",
73+
"nullsNotDistinct": false,
74+
"columns": [
75+
"email"
76+
]
77+
}
78+
},
79+
"checkConstraints": {}
80+
}
81+
},
82+
"enums": {},
83+
"schemas": {},
84+
"sequences": {},
85+
"views": {},
86+
"_meta": {
87+
"columns": {},
88+
"schemas": {},
89+
"tables": {}
90+
}
91+
}

drizzle/meta/_journal.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
"when": 1717555883885,
99
"tag": "0000_hard_mongu",
1010
"breakpoints": true
11+
},
12+
{
13+
"idx": 1,
14+
"version": "7",
15+
"when": 1730376071883,
16+
"tag": "0001_outstanding_jazinda",
17+
"breakpoints": true
1118
}
1219
]
1320
}

0 commit comments

Comments
 (0)