✓
throw err; // Rethrow non-MySQL errors
^
Error: ER_NO_DEFAULT_FOR_FIELD: Field 'USER_PAY_SYSTEM' doesn't have a default value
at Query.Sequence._packetToError (C:\happycash\node_modules\mysql\lib\protocol\sequences\Sequence.js:47:14)
at Query.ErrorPacket (C:\happycash\node_modules\mysql\lib\protocol\sequences\Query.js:77:18)
at Protocol._parsePacket (C:\happycash\node_modules\mysql\lib\protocol\Protocol.js:291:23)
at Parser._parsePacket (C:\happycash\node_modules\mysql\lib\protocol\Parser.js:433:10)
at Parser.write (C:\happycash\node_modules\mysql\lib\protocol\Parser.js:43:10)
at Protocol.write (C:\happycash\node_modules\mysql\lib\protocol\Protocol.js:38:16)
at Socket.<anonymous> (C:\happycash\node_modules\mysql\lib\Connection.js:91:28)
at Socket.<anonymous> (C:\happycash\node_modules\mysql\lib\Connection.js:525:10)
at Socket.emit (events.js:315:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at Socket.Readable.push (_stream_readable.js:212:10)
at TCP.onStreamRead (internal/stream_base_commons.js:186:23)
--------------------
at Protocol._enqueue (C:\happycash\node_modules\mysql\lib\protocol\Protocol.js:144:48)
at Connection.query (C:\happycash\node_modules\mysql\lib\Connection.js:201:25)
at Query.<anonymous> (C:\happycash\index.js:1897:26)
at Query.<anonymous> (C:\happycash\node_modules\mysql\lib\Connection.js:525:10)
at Query._callback (C:\happycash\node_modules\mysql\lib\Connection.js:491:16)
at Query.Sequence.end (C:\happycash\node_modules\mysql\lib\protocol\sequences\Sequence.js:83:24)
at Query._handleFinalResultPacket (C:\happycash\node_modules\mysql\lib\protocol\sequences\Query.js:139:8)
at Query.EofPacket (C:\happycash\node_modules\mysql\lib\protocol\sequences\Query.js:123:8)
at Protocol._parsePacket (C:\happycash\node_modules\mysql\lib\protocol\Protocol.js:291:23)
at Parser._parsePacket (C:\happycash\node_modules\mysql\lib\protocol\Parser.js:433:10)
at Parser.write (C:\happycash\node_modules\mysql\lib\protocol\Parser.js:43:10)
at Protocol.write (C:\happycash\node_modules\mysql\lib\protocol\Protocol.js:38:16)
at Socket.<anonymous> (C:\happycash\node_modules\mysql\lib\Connection.js:91:28)
at Socket.<anonymous> (C:\happycash\node_modules\mysql\lib\Connection.js:525:10)
at Socket.emit (events.js:315:20)
at addChunk (_stream_readable.js:295:12)
at readableAddChunk (_stream_readable.js:271:9)
at Socket.Readable.push (_stream_readable.js:212:10)
at TCP.onStreamRead (internal/stream_base_commons.js:186:23) {
code: 'ER_NO_DEFAULT_FOR_FIELD',
errno: 1364,
sqlMessage: "Field 'USER_PAY_SYSTEM' doesn't have a default value",
sqlState: 'HY000',
index: 0,
sql: "INSERT INTO users SET
TG_ID = 915599823, USER_NAME = 'klad_fun_masters', USER_FIRST_NAME = 'Klad', USER_REF = 0, USER_REG_DATE = '11/9/2020'" }






