This commit is contained in:
2026-03-10 19:18:46 +00:00
parent d8ee723dae
commit 33044fae23
14 changed files with 173 additions and 173 deletions
+14
View File
@@ -39,6 +39,20 @@ const schema = {
},
],
},
{
tableName: "users_ports",
fields: [
{
fieldName: "user_id",
dataType: "INTEGER",
},
{
fieldName: "port",
dataType: "INTEGER",
unique: true,
},
],
},
],
};
+19 -1
View File
@@ -1,5 +1,6 @@
export const NSQLiteTables = [
"users",
"users_ports",
] as const
export type NSQLITE_TEST_DB_USERS = {
@@ -24,4 +25,21 @@ export type NSQLITE_TEST_DB_USERS = {
is_super_admin?: number;
}
export type NSQLITE_TEST_DB_ALL_TYPEDEFS = NSQLITE_TEST_DB_USERS
export type NSQLITE_TEST_DB_USERS_PORTS = {
/**
* The unique identifier of the record.
*/
id?: number;
/**
* The time when the record was created. (Unix Timestamp)
*/
created_at?: number;
/**
* The time when the record was updated. (Unix Timestamp)
*/
updated_at?: number;
user_id?: number;
port?: number;
}
export type NSQLITE_TEST_DB_ALL_TYPEDEFS = NSQLITE_TEST_DB_USERS & NSQLITE_TEST_DB_USERS_PORTS