chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:10:05 +08:00
commit d37d8d293b
1388 changed files with 484182 additions and 0 deletions
@@ -0,0 +1,7 @@
CREATE TABLE `userstest` (
`id` serial PRIMARY KEY,
`name` text NOT NULL,
`verified` boolean NOT NULL DEFAULT false,
`jsonb` json,
`created_at` timestamp NOT NULL DEFAULT now()
);
@@ -0,0 +1,60 @@
{
"version": "5",
"dialect": "mysql",
"id": "8e8c8378-0496-40f6-88e3-98aab8282b1f",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"userstest": {
"name": "userstest",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": false,
"autoincrement": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"verified": {
"name": "verified",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false,
"autoincrement": false
},
"jsonb": {
"name": "jsonb",
"type": "json",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "timestamp",
"primaryKey": false,
"notNull": true,
"default": "now()",
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,13 @@
{
"version": "5",
"dialect": "mysql",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1680270921944,
"tag": "0000_nostalgic_carnage",
"breakpoints": true
}
]
}
@@ -0,0 +1,7 @@
CREATE TABLE `userstest` (
`id` serial PRIMARY KEY,
`name` text NOT NULL,
`verified` boolean NOT NULL DEFAULT false,
`jsonb` json,
`created_at` timestamp NOT NULL DEFAULT now()
);
@@ -0,0 +1,5 @@
CREATE TABLE `users12` (
`id` serial AUTO_INCREMENT PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL
);
@@ -0,0 +1,60 @@
{
"version": "5",
"dialect": "mysql",
"id": "8e8c8378-0496-40f6-88e3-98aab8282b1f",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"userstest": {
"name": "userstest",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": false,
"autoincrement": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"verified": {
"name": "verified",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false,
"autoincrement": false
},
"jsonb": {
"name": "jsonb",
"type": "json",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "timestamp",
"primaryKey": false,
"notNull": true,
"default": "now()",
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,96 @@
{
"version": "5",
"dialect": "mysql",
"id": "47362df0-c353-4bd1-8107-fcc36f0e61bd",
"prevId": "8e8c8378-0496-40f6-88e3-98aab8282b1f",
"tables": {
"userstest": {
"name": "userstest",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": false,
"autoincrement": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"verified": {
"name": "verified",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false,
"autoincrement": false
},
"jsonb": {
"name": "jsonb",
"type": "json",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"created_at": {
"name": "created_at",
"type": "timestamp",
"primaryKey": false,
"notNull": true,
"default": "now()",
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"users12": {
"name": "users12",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"my_unique_index": {
"name": "my_unique_index",
"columns": ["name"],
"isUnique": true,
"using": "btree"
}
},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,20 @@
{
"version": "5",
"dialect": "mysql",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1680270921944,
"tag": "0000_nostalgic_carnage",
"breakpoints": true
},
{
"idx": 1,
"version": "5",
"when": 1680270921945,
"tag": "0001_test",
"breakpoints": true
}
]
}
@@ -0,0 +1,20 @@
CREATE TABLE `cities_migration` (
`id` int,
`fullname_name` text,
`state` text
);
--> statement-breakpoint
CREATE TABLE `users_migration` (
`id` int PRIMARY KEY NOT NULL,
`full_name` text,
`phone` int,
`invited_by` int,
`city_id` int,
`date` timestamp DEFAULT (now())
);
--> statement-breakpoint
CREATE TABLE `users12` (
`id` serial AUTO_INCREMENT PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL
);
@@ -0,0 +1,132 @@
{
"version": "5",
"dialect": "mysql",
"id": "8e8c8378-0496-40f6-88e3-98aab8282b1f",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"cities_migration": {
"name": "cities_migration",
"columns": {
"id": {
"name": "id",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"fullname_name": {
"name": "fullname_name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"state": {
"name": "state",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"users_migration": {
"name": "users_migration",
"columns": {
"id": {
"name": "id",
"type": "int",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"full_name": {
"name": "full_name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"phone": {
"name": "phone",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"invited_by": {
"name": "invited_by",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"city_id": {
"name": "city_id",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"date": {
"name": "date",
"type": "timestamp",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(now())"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"users12": {
"name": "users12",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"my_unique_index": {
"name": "my_unique_index",
"columns": [
"name"
],
"isUnique": true,
"using": "btree"
}
},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,13 @@
{
"version": "5",
"dialect": "mysql",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1680270921944,
"tag": "0000_nostalgic_carnage",
"breakpoints": true
}
]
}
@@ -0,0 +1,7 @@
CREATE TABLE "users" (
id serial PRIMARY KEY,
name text NOT NULL,
verified boolean NOT NULL DEFAULT false,
jsonb jsonb,
created_at timestamptz NOT NULL DEFAULT now()
);
@@ -0,0 +1,56 @@
{
"version": "5",
"dialect": "pg",
"id": "cb1644bb-c5da-465a-8d70-f63d81e34514",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"users": {
"name": "users",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"verified": {
"name": "verified",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"jsonb": {
"name": "jsonb",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamptz",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"enums": {},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,13 @@
{
"version": "5",
"dialect": "pg",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1680271923328,
"tag": "0000_puzzling_flatman",
"breakpoints": true
}
]
}
@@ -0,0 +1,7 @@
CREATE TABLE "users" (
id serial PRIMARY KEY,
name text NOT NULL,
verified boolean NOT NULL DEFAULT false,
jsonb jsonb,
created_at timestamptz NOT NULL DEFAULT now()
);
@@ -0,0 +1,5 @@
CREATE TABLE "users12" (
"id" serial PRIMARY KEY NOT NULL,
"name" text NOT NULL,
"email" text NOT NULL
);
@@ -0,0 +1,56 @@
{
"version": "5",
"dialect": "pg",
"id": "cb1644bb-c5da-465a-8d70-f63d81e34514",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"users": {
"name": "users",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"verified": {
"name": "verified",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"jsonb": {
"name": "jsonb",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamptz",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"enums": {},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,56 @@
{
"version": "5",
"dialect": "pg",
"id": "f2a88b25-f2da-4973-879e-60b57f24e7b9",
"prevId": "cb1644bb-c5da-465a-8d70-f63d81e34514",
"tables": {
"users": {
"name": "users",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"verified": {
"name": "verified",
"type": "boolean",
"primaryKey": false,
"notNull": true,
"default": false
},
"jsonb": {
"name": "jsonb",
"type": "jsonb",
"primaryKey": false,
"notNull": false
},
"created_at": {
"name": "created_at",
"type": "timestamptz",
"primaryKey": false,
"notNull": true,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"enums": {},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,20 @@
{
"version": "5",
"dialect": "pg",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1680271923328,
"tag": "0000_puzzling_flatman",
"breakpoints": true
},
{
"idx": 1,
"version": "5",
"when": 1680271923329,
"tag": "0001_test",
"breakpoints": true
}
]
}
@@ -0,0 +1,37 @@
CREATE TABLE IF NOT EXISTS "all_columns" (
"smallint" smallint,
"smallint_def" smallint DEFAULT 10,
"integer" integer,
"integer_def" integer DEFAULT 10,
"numeric" numeric,
"numeric3" numeric,
"numeric4" numeric(7, 7),
"numeridef" numeric DEFAULT '100',
"bigint" bigint,
"bigintdef" bigint DEFAULT 100,
"boolean" boolean,
"boolean_def" boolean DEFAULT true,
"text" text,
"textdef" text DEFAULT 'text',
"varchar" varchar,
"varchardef" varchar DEFAULT 'text',
"serial" serial NOT NULL,
"bigserial" bigserial NOT NULL,
"decimal" numeric(100, 2),
"decimaldef" numeric(100, 2) DEFAULT '100.0',
"doublePrecision" double precision,
"doublePrecisiondef" double precision DEFAULT 100,
"real" real,
"realdef" real DEFAULT 100,
"time2" time(6) with time zone,
"timedefnow" time DEFAULT now(),
"timestamp" timestamp,
"timestamp2" timestamp (6) with time zone,
"timestamp3" timestamp with time zone,
"timestamp4" timestamp (4),
"timestampdef" timestamp DEFAULT now(),
"date" date,
"datedef" date DEFAULT now(),
"interval" interval,
"intervaldef" interval DEFAULT '10 days'
);
@@ -0,0 +1,5 @@
CREATE TABLE IF NOT EXISTS "users12" (
"id" serial PRIMARY KEY NOT NULL,
"name" text NOT NULL,
"email" text NOT NULL
);
@@ -0,0 +1,275 @@
{
"version": "5",
"dialect": "pg",
"id": "cb1644bb-c5da-465a-8d70-f63d81e34514",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"all_columns": {
"name": "all_columns",
"schema": "",
"columns": {
"smallint": {
"name": "smallint",
"type": "smallint",
"primaryKey": false,
"notNull": false
},
"smallint_def": {
"name": "smallint_def",
"type": "smallint",
"primaryKey": false,
"notNull": false,
"default": 10
},
"integer": {
"name": "integer",
"type": "integer",
"primaryKey": false,
"notNull": false
},
"integer_def": {
"name": "integer_def",
"type": "integer",
"primaryKey": false,
"notNull": false,
"default": 10
},
"numeric": {
"name": "numeric",
"type": "numeric",
"primaryKey": false,
"notNull": false
},
"numeric3": {
"name": "numeric3",
"type": "numeric",
"primaryKey": false,
"notNull": false
},
"numeric4": {
"name": "numeric4",
"type": "numeric(7, 7)",
"primaryKey": false,
"notNull": false
},
"numeridef": {
"name": "numeridef",
"type": "numeric",
"primaryKey": false,
"notNull": false,
"default": "'100'"
},
"bigint": {
"name": "bigint",
"type": "bigint",
"primaryKey": false,
"notNull": false
},
"bigintdef": {
"name": "bigintdef",
"type": "bigint",
"primaryKey": false,
"notNull": false,
"default": 100
},
"boolean": {
"name": "boolean",
"type": "boolean",
"primaryKey": false,
"notNull": false
},
"boolean_def": {
"name": "boolean_def",
"type": "boolean",
"primaryKey": false,
"notNull": false,
"default": true
},
"text": {
"name": "text",
"type": "text",
"primaryKey": false,
"notNull": false
},
"textdef": {
"name": "textdef",
"type": "text",
"primaryKey": false,
"notNull": false,
"default": "'text'"
},
"varchar": {
"name": "varchar",
"type": "varchar",
"primaryKey": false,
"notNull": false
},
"varchardef": {
"name": "varchardef",
"type": "varchar",
"primaryKey": false,
"notNull": false,
"default": "'text'"
},
"serial": {
"name": "serial",
"type": "serial",
"primaryKey": false,
"notNull": true
},
"bigserial": {
"name": "bigserial",
"type": "bigserial",
"primaryKey": false,
"notNull": true
},
"decimal": {
"name": "decimal",
"type": "numeric(100, 2)",
"primaryKey": false,
"notNull": false
},
"decimaldef": {
"name": "decimaldef",
"type": "numeric(100, 2)",
"primaryKey": false,
"notNull": false,
"default": "'100.0'"
},
"doublePrecision": {
"name": "doublePrecision",
"type": "double precision",
"primaryKey": false,
"notNull": false
},
"doublePrecisiondef": {
"name": "doublePrecisiondef",
"type": "double precision",
"primaryKey": false,
"notNull": false,
"default": 100
},
"real": {
"name": "real",
"type": "real",
"primaryKey": false,
"notNull": false
},
"realdef": {
"name": "realdef",
"type": "real",
"primaryKey": false,
"notNull": false,
"default": 100
},
"time2": {
"name": "time2",
"type": "time(6) with time zone",
"primaryKey": false,
"notNull": false
},
"timedefnow": {
"name": "timedefnow",
"type": "time",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"timestamp": {
"name": "timestamp",
"type": "timestamp",
"primaryKey": false,
"notNull": false
},
"timestamp2": {
"name": "timestamp2",
"type": "timestamp (6) with time zone",
"primaryKey": false,
"notNull": false
},
"timestamp3": {
"name": "timestamp3",
"type": "timestamp with time zone",
"primaryKey": false,
"notNull": false
},
"timestamp4": {
"name": "timestamp4",
"type": "timestamp (4)",
"primaryKey": false,
"notNull": false
},
"timestampdef": {
"name": "timestampdef",
"type": "timestamp",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"date": {
"name": "date",
"type": "date",
"primaryKey": false,
"notNull": false
},
"datedef": {
"name": "datedef",
"type": "date",
"primaryKey": false,
"notNull": false,
"default": "now()"
},
"interval": {
"name": "interval",
"type": "interval",
"primaryKey": false,
"notNull": false
},
"intervaldef": {
"name": "intervaldef",
"type": "interval",
"primaryKey": false,
"notNull": false,
"default": "'10 days'"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"users12": {
"name": "users12",
"schema": "",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"enums": {},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,20 @@
{
"version": "5",
"dialect": "pg",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1680271923328,
"tag": "0000_puzzling_flatman",
"breakpoints": true
},
{
"idx": 1,
"version": "5",
"when": 1680271923329,
"tag": "0001_test",
"breakpoints": true
}
]
}
@@ -0,0 +1,20 @@
CREATE TABLE `drizzle_tests_cities_migration` (
`id` int,
`fullname_name` text,
`state` text
);
--> statement-breakpoint
CREATE TABLE `drizzle_tests_users_migration` (
`id` int PRIMARY KEY NOT NULL,
`full_name` text,
`phone` int,
`invited_by` int,
`city_id` int,
`date` timestamp DEFAULT (now())
);
--> statement-breakpoint
CREATE TABLE `drizzle_tests_users12` (
`id` serial AUTO_INCREMENT PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL
);
@@ -0,0 +1,132 @@
{
"version": "5",
"dialect": "mysql",
"id": "8e8c8378-0496-40f6-88e3-98aab8282b1f",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"drizzle_tests_cities_migration": {
"name": "drizzle_tests_cities_migration",
"columns": {
"id": {
"name": "id",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"fullname_name": {
"name": "fullname_name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"state": {
"name": "state",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"drizzle_tests_users_migration": {
"name": "drizzle_tests_users_migration",
"columns": {
"id": {
"name": "id",
"type": "int",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"full_name": {
"name": "full_name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"phone": {
"name": "phone",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"invited_by": {
"name": "invited_by",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"city_id": {
"name": "city_id",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"date": {
"name": "date",
"type": "timestamp",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(now())"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"drizzle_tests_users12": {
"name": "drizzle_tests_users12",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"my_unique_index": {
"name": "my_unique_index",
"columns": [
"name"
],
"isUnique": true,
"using": "btree"
}
},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,13 @@
{
"version": "5",
"dialect": "mysql",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1680270921944,
"tag": "0000_nostalgic_carnage",
"breakpoints": true
}
]
}
@@ -0,0 +1,20 @@
CREATE TABLE `cities_migration` (
`id` int,
`fullname_name` text,
`state` text
);
--> statement-breakpoint
CREATE TABLE `users_migration` (
`id` int PRIMARY KEY NOT NULL,
`full_name` text,
`phone` int,
`invited_by` int,
`city_id` int,
`date` timestamp DEFAULT now()
);
--> statement-breakpoint
CREATE TABLE `users12` (
`id` serial AUTO_INCREMENT PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL
);
@@ -0,0 +1,132 @@
{
"version": "1",
"dialect": "singlestore",
"id": "8e8c8378-0496-40f6-88e3-98aab8282b1f",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"cities_migration": {
"name": "cities_migration",
"columns": {
"id": {
"name": "id",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"fullname_name": {
"name": "fullname_name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"state": {
"name": "state",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"users_migration": {
"name": "users_migration",
"columns": {
"id": {
"name": "id",
"type": "int",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"full_name": {
"name": "full_name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"phone": {
"name": "phone",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"invited_by": {
"name": "invited_by",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"city_id": {
"name": "city_id",
"type": "int",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"date": {
"name": "date",
"type": "timestamp",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "now()"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"users12": {
"name": "users12",
"columns": {
"id": {
"name": "id",
"type": "serial",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"my_unique_index": {
"name": "my_unique_index",
"columns": [
"name"
],
"isUnique": true,
"using": "btree"
}
},
"foreignKeys": {},
"compositePrimaryKeys": {}
}
},
"schemas": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,13 @@
{
"version": "1",
"dialect": "singlestore",
"entries": [
{
"idx": 0,
"version": "1",
"when": 1680270921944,
"tag": "0000_nostalgic_carnage",
"breakpoints": true
}
]
}
@@ -0,0 +1,11 @@
CREATE TABLE another_users (
`id` integer PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL
);
--> statement-breakpoint
CREATE TABLE users12 (
`id` integer PRIMARY KEY NOT NULL,
`name` text NOT NULL,
`email` text NOT NULL
);
@@ -0,0 +1,123 @@
{
"version": "5",
"dialect": "sqlite",
"id": "b6793a90-b553-4a5d-9d2f-b48e56ef2a2a",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"cities": {
"name": "cities",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"fullname_name": {
"name": "fullname_name",
"type": "text",
"primaryKey": false,
"notNull": false
},
"state": {
"name": "state",
"type": "text",
"primaryKey": false,
"notNull": false
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {
"cities_id_fullname_name_pk": {
"columns": [
"id",
"fullname_name"
]
}
}
},
"test_get": {
"name": "test_get",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"full_name": {
"name": "full_name",
"type": "text",
"primaryKey": false,
"notNull": true
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {}
},
"users": {
"name": "users",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"full_name": {
"name": "full_name",
"type": "text",
"primaryKey": false,
"notNull": true
},
"phone": {
"name": "phone",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"invited_by": {
"name": "invited_by",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
},
"city_id": {
"name": "city_id",
"type": "integer",
"primaryKey": false,
"notNull": false,
"autoincrement": false
}
},
"indexes": {},
"foreignKeys": {
"users_city_id_cities_id_fk": {
"name": "users_city_id_cities_id_fk",
"tableFrom": "users",
"tableTo": "cities",
"columnsFrom": [
"city_id"
],
"columnsTo": [
"id"
]
}
},
"compositePrimaryKeys": {}
}
},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
}
}
@@ -0,0 +1,13 @@
{
"version": "5",
"dialect": "sqlite",
"entries": [
{
"idx": 0,
"version": "5",
"when": 1680202256473,
"tag": "0000_fancy_bug",
"breakpoints": true
}
]
}