Skip to content

Commit

Permalink
feat: add glamps search to my resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikzita committed Feb 13, 2024
1 parent d029836 commit 78073c2
Show file tree
Hide file tree
Showing 19 changed files with 583 additions and 174 deletions.
4 changes: 0 additions & 4 deletions drizzle/0000_flawless_russian.sql

This file was deleted.

24 changes: 24 additions & 0 deletions drizzle/0000_parched_mandroid.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
CREATE TABLE `deal` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`title` text,
`description` text,
`isActive` integer
);
--> statement-breakpoint
CREATE TABLE `glamp` (
`id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,
`title` text,
`description` text,
`type` text,
`price` real,
`available_from` text,
`available_to` text,
`adult_capacity` integer,
`child_capacity` integer,
`isLuxury` integer
);
--> statement-breakpoint
CREATE TABLE `users` (
`id` text,
`name` text
);
5 changes: 0 additions & 5 deletions drizzle/0001_burly_mister_sinister.sql

This file was deleted.

1 change: 0 additions & 1 deletion drizzle/0002_conscious_rachel_grey.sql

This file was deleted.

118 changes: 117 additions & 1 deletion drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,125 @@
{
"version": "5",
"dialect": "sqlite",
"id": "f8921c19-f0a0-4333-b33e-e2a5b21f8d05",
"id": "47e4144c-cfb4-4322-b044-26e66004cc62",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"deal": {
"name": "deal",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"isActive": {
"name": "isActive",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"glamp": {
"name": "glamp",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"type": {
"name": "type",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"price": {
"name": "price",
"type": "real",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"available_from": {
"name": "available_from",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"available_to": {
"name": "available_to",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"adult_capacity": {
"name": "adult_capacity",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"child_capacity": {
"name": "child_capacity",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"isLuxury": {
"name": "isLuxury",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"users": {
"name": "users",
"columns": {
Expand Down
67 changes: 0 additions & 67 deletions drizzle/meta/0001_snapshot.json

This file was deleted.

74 changes: 0 additions & 74 deletions drizzle/meta/0002_snapshot.json

This file was deleted.

18 changes: 2 additions & 16 deletions drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,8 @@
{
"idx": 0,
"version": "5",
"when": 1703493410904,
"tag": "0000_flawless_russian",
"breakpoints": true
},
{
"idx": 1,
"version": "5",
"when": 1704553290895,
"tag": "0001_burly_mister_sinister",
"breakpoints": true
},
{
"idx": 2,
"version": "5",
"when": 1704621273333,
"tag": "0002_conscious_rachel_grey",
"when": 1707588316049,
"tag": "0000_parched_mandroid",
"breakpoints": true
}
]
Expand Down
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
"lint": "next lint",
"codegen": "graphql-codegen",
"drizzle-studio": "drizzle-kit studio",
"db-migration": "drizzle-kit generate:sqlite",
"db-migration": "drizzle-kit generate:sqlite --config=drizzle.config.ts",
"db-push": "drizzle-kit push:sqlite",
"knip": "knip",
"ts-coverage": "typescript-coverage-report"
"ts-coverage": "typescript-coverage-report",
"migrations:drop": "drizzle-kit drop --config=drizzle.config.ts"
},
"dependencies": {
"@apollo/client": "^3.8.8",
Expand Down Expand Up @@ -51,6 +52,7 @@
"@graphql-codegen/typescript": "^4.0.1",
"@graphql-codegen/typescript-operations": "^4.0.1",
"@graphql-codegen/typescript-react-apollo": "^4.1.0",
"@types/better-sqlite3": "^7.6.9",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
Expand Down
Binary file modified sqlite.db
Binary file not shown.
Loading

0 comments on commit 78073c2

Please sign in to comment.