Updates
This commit is contained in:
@@ -39,6 +39,20 @@ const schema = {
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
tableName: "users_ports",
|
||||
fields: [
|
||||
{
|
||||
fieldName: "user_id",
|
||||
dataType: "INTEGER",
|
||||
},
|
||||
{
|
||||
fieldName: "port",
|
||||
dataType: "INTEGER",
|
||||
unique: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
+19
-1
@@ -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
|
||||
Reference in New Issue
Block a user