Fix small details

This commit is contained in:
2024-08-22 18:34:05 +02:00
parent 8b3de3291e
commit 240427261a
10 changed files with 94 additions and 12 deletions

View File

@@ -0,0 +1,2 @@
ALTER TABLE `users`
ADD `description` text DEFAULT '';

View File

@@ -0,0 +1,65 @@
{
"version": "6",
"dialect": "sqlite",
"id": "77aafe70-876c-4c45-84d6-5261fa288bae",
"prevId": "a30470ea-8de9-4ff0-b0c9-d6b8a6264726",
"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": "''"
},
"description": {
"name": "description",
"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

@@ -8,6 +8,13 @@
"when": 1724341642346,
"tag": "0000_salty_thena",
"breakpoints": true
},
{
"idx": 1,
"version": "6",
"when": 1724343948344,
"tag": "0001_medical_joshua_kane",
"breakpoints": true
}
]
}
}

View File

@@ -5,5 +5,6 @@ export const users = sqliteTable('users', {
id: integer('id').primaryKey(),
name: text('name').default(''),
email: text('email').default(''),
description: text('description').default(''),
createdAt: text('created_at').default(sql`(CURRENT_DATE)`),
})