diff --git a/packages/api/migrations/0003_hot_ultragirl.sql b/packages/api/migrations/0003_hot_ultragirl.sql new file mode 100644 index 000000000..6500dc0eb --- /dev/null +++ b/packages/api/migrations/0003_hot_ultragirl.sql @@ -0,0 +1,16 @@ +CREATE TABLE `Car` ( + `id` text PRIMARY KEY NOT NULL, + `make` text NOT NULL, + `model` text NOT NULL, + `year` integer NOT NULL, + `color` text NOT NULL, + `price` real NOT NULL, + `mileage` integer NOT NULL, + `fuelType` text NOT NULL, + `transmission` text NOT NULL +); +--> statement-breakpoint +CREATE TABLE `User` ( + `id` text PRIMARY KEY NOT NULL, + `email` text NOT NULL +); diff --git a/packages/api/migrations/meta/0003_snapshot.json b/packages/api/migrations/meta/0003_snapshot.json new file mode 100644 index 000000000..f1ea4bd3c --- /dev/null +++ b/packages/api/migrations/meta/0003_snapshot.json @@ -0,0 +1,109 @@ +{ + "version": "5", + "dialect": "sqlite", + "id": "48283c30-3c21-4114-9533-2235c17d08b9", + "prevId": "4dc9ecc7-da6d-4edc-841b-2d44a349d363", + "tables": { + "Car": { + "name": "Car", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "make": { + "name": "make", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "model": { + "name": "model", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "year": { + "name": "year", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "color": { + "name": "color", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "price": { + "name": "price", + "type": "real", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "mileage": { + "name": "mileage", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "fuelType": { + "name": "fuelType", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "transmission": { + "name": "transmission", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + }, + "User": { + "name": "User", + "columns": { + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {} + } + }, + "enums": {}, + "_meta": { + "schemas": {}, + "tables": {}, + "columns": {} + } +} \ No newline at end of file diff --git a/packages/api/migrations/meta/_journal.json b/packages/api/migrations/meta/_journal.json index 39784829a..daeeb72e9 100644 --- a/packages/api/migrations/meta/_journal.json +++ b/packages/api/migrations/meta/_journal.json @@ -22,6 +22,13 @@ "when": 1699066590780, "tag": "0002_faithful_gravity", "breakpoints": true + }, + { + "idx": 3, + "version": "5", + "when": 1699079033736, + "tag": "0003_hot_ultragirl", + "breakpoints": true } ] } \ No newline at end of file