1
0
forked from poc/pds

Merge branch 'master' of ssh://172.31.31.31:2222/poc/pds

This commit is contained in:
dhanabalan
2025-03-25 16:54:21 +05:30
8 changed files with 86 additions and 87 deletions

View File

@@ -14,9 +14,9 @@ return new class extends Migration
CREATE TABLE plants (
id BIGINT GENERATED always AS IDENTITY PRIMARY KEY,
code INT NOT NULL CHECK (code >= 1000) UNIQUE,
company_id BIGINT NOT NULL,
code INT NOT NULL CHECK (code >= 1000) UNIQUE,
name TEXT NOT NULL UNIQUE, -- CITEXT use extension
address TEXT NOT NULL,