summaryrefslogtreecommitdiffstats
path: root/drizzle/meta/0001_snapshot.json
diff options
context:
space:
mode:
authorAlberto Duarte Delgado <alberto@albertoduarte.com>2026-03-25 15:32:20 +0000
committerAlberto Duarte Delgado <alberto@albertoduarte.com>2026-03-25 15:32:20 +0000
commit7809ccbba56be8c5377f94cf2d287a0e1521fdc1 (patch)
tree1c590049df5546f141eeb3bf58ad5ea9d1e0fbf6 /drizzle/meta/0001_snapshot.json
parentd071a19fdeb0fc369e356004118f59a7fe4fed91 (diff)
Initial commit: App Oficina base project
Diffstat (limited to 'drizzle/meta/0001_snapshot.json')
-rw-r--r--drizzle/meta/0001_snapshot.json148
1 files changed, 148 insertions, 0 deletions
diff --git a/drizzle/meta/0001_snapshot.json b/drizzle/meta/0001_snapshot.json
new file mode 100644
index 0000000..db0cea6
--- /dev/null
+++ b/drizzle/meta/0001_snapshot.json
@@ -0,0 +1,148 @@
+{
+ "version": "6",
+ "dialect": "sqlite",
+ "id": "5ae3a6d7-6e57-40ba-846c-1f66fceb7e00",
+ "prevId": "d8e12abb-238e-41bb-9928-c817d6d92575",
+ "tables": {
+ "categorias": {
+ "name": "categorias",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "integer",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "nombre": {
+ "name": "nombre",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "categorias_nombre_unique": {
+ "name": "categorias_nombre_unique",
+ "columns": [
+ "nombre"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "personas": {
+ "name": "personas",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "integer",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "nombre": {
+ "name": "nombre",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "edad": {
+ "name": "edad",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {},
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ },
+ "productos": {
+ "name": "productos",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "integer",
+ "primaryKey": true,
+ "notNull": true,
+ "autoincrement": true
+ },
+ "nombre": {
+ "name": "nombre",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true,
+ "autoincrement": false
+ },
+ "stock": {
+ "name": "stock",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "precio": {
+ "name": "precio",
+ "type": "real",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ },
+ "categoria_id": {
+ "name": "categoria_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false,
+ "autoincrement": false
+ }
+ },
+ "indexes": {
+ "productos_nombre_unique": {
+ "name": "productos_nombre_unique",
+ "columns": [
+ "nombre"
+ ],
+ "isUnique": true
+ }
+ },
+ "foreignKeys": {
+ "productos_categoria_id_categorias_id_fk": {
+ "name": "productos_categoria_id_categorias_id_fk",
+ "tableFrom": "productos",
+ "tableTo": "categorias",
+ "columnsFrom": [
+ "categoria_id"
+ ],
+ "columnsTo": [
+ "id"
+ ],
+ "onDelete": "no action",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "checkConstraints": {}
+ }
+ },
+ "views": {},
+ "enums": {},
+ "_meta": {
+ "schemas": {},
+ "tables": {},
+ "columns": {}
+ },
+ "internal": {
+ "indexes": {}
+ }
+} \ No newline at end of file