Add database

This commit is contained in:
2024-08-22 18:21:37 +02:00
parent fb8d9b450e
commit 8b3de3291e
3 changed files with 77 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
CREATE TABLE `users`
(
`id` integer PRIMARY KEY NOT NULL,
`name` text DEFAULT '',
`email` text DEFAULT '',
`created_at` text DEFAULT (CURRENT_DATE)
);

View File

@@ -0,0 +1,57 @@
{
"version": "6",
"dialect": "sqlite",
"id": "a30470ea-8de9-4ff0-b0c9-d6b8a6264726",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"users": {
"name": "users",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": false
},
"name": {
"name": "name",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "''"
},
"created_at": {
"name": "created_at",
"type": "text",
"primaryKey": false,
"notNull": false,
"autoincrement": false,
"default": "(CURRENT_DATE)"
}
},
"indexes": {},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {}
}
},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
}
}

View File

@@ -0,0 +1,13 @@
{
"version": "7",
"dialect": "sqlite",
"entries": [
{
"idx": 0,
"version": "6",
"when": 1724341642346,
"tag": "0000_salty_thena",
"breakpoints": true
}
]
}