change worker.telegram_id type (INTEGER>>BIGINT)
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
2025-07-28 23:48:33 +03:00
parent 4748127399
commit c0f4be1179

View File

@@ -1,7 +1,7 @@
CREATE TABLE workers
(
id SERIAL PRIMARY KEY,
telegram_id INTEGER UNIQUE NOT NULL,
telegram_id BIGINT UNIQUE NOT NULL,
name VARCHAR NOT NULL,
email VARCHAR(50),
phone_number VARCHAR(20) NOT NULL,
@@ -15,7 +15,7 @@ CREATE TABLE orders
(
id SERIAL PRIMARY KEY,
name VARCHAR,
worker_id INTEGER REFERENCES workers (telegram_id),
worker_id BIGINT REFERENCES workers (telegram_id),
status_id status DEFAULT 'Создано',
counterparty VARCHAR(50),
customer VARCHAR NOT NULL,