Tabla de inventario agregada

This commit is contained in:
2025-06-20 14:43:35 -04:00
parent 0a65946a8a
commit ed2a1da038
33 changed files with 3272 additions and 10 deletions

View File

@@ -0,0 +1,13 @@
CREATE TABLE "products" (
"id" serial PRIMARY KEY NOT NULL,
"title" text NOT NULL,
"description" text NOT NULL,
"price" numeric NOT NULL,
"stock" integer NOT NULL,
"url_img" text NOT NULL,
"user_id" integer,
"created_at" timestamp DEFAULT now() NOT NULL,
"updated_at" timestamp (3)
);
--> statement-breakpoint
ALTER TABLE "products" ADD CONSTRAINT "products_user_id_users_id_fk" FOREIGN KEY ("user_id") REFERENCES "auth"."users"("id") ON DELETE cascade ON UPDATE no action;

File diff suppressed because it is too large Load Diff

View File

@@ -15,6 +15,13 @@
"when": 1747665408016,
"tag": "0001_massive_kylun",
"breakpoints": true
},
{
"idx": 2,
"version": "7",
"when": 1750442271575,
"tag": "0002_polite_franklin_richards",
"breakpoints": true
}
]
}