Skip to content

Commit

Permalink
feat(all): remove dogs, add deal schema
Browse files Browse the repository at this point in the history
  • Loading branch information
patrikzita committed Jan 6, 2024
1 parent a9d7548 commit 64b7d47
Show file tree
Hide file tree
Showing 18 changed files with 532 additions and 1,638 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ yarn-error.log*
next-env.d.ts


src/generated
src/generated

coverage-ts
5 changes: 5 additions & 0 deletions drizzle/0001_burly_mister_sinister.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CREATE TABLE `deal` (
`id` text PRIMARY KEY NOT NULL,
`title` text,
`description` text
);
67 changes: 67 additions & 0 deletions drizzle/meta/0001_snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"version": "5",
"dialect": "sqlite",
"id": "5ada055f-2a73-4b12-a5cd-8778acb81fd2",
"prevId": "f8921c19-f0a0-4333-b33e-e2a5b21f8d05",
"tables": {
"deal": {
"name": "deal",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"title": {
"name": "title",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"description": {
"name": "description",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
},
"users": {
"name": "users",
"columns": {
"id": {
"name": "id",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
}
},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
7 changes: 7 additions & 0 deletions drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@
"when": 1703493410904,
"tag": "0000_flawless_russian",
"breakpoints": true
},
{
"idx": 1,
"version": "5",
"when": 1704553290895,
"tag": "0001_burly_mister_sinister",
"breakpoints": true
}
]
}
Loading

0 comments on commit 64b7d47

Please sign in to comment.