Masters and Transaction changes

This commit is contained in:
dhanabalan
2025-03-24 17:23:01 +05:30
parent 04ee0cadd5
commit c631f1f2c0
123 changed files with 6935 additions and 32 deletions

View File

@@ -15,10 +15,10 @@ return new class extends Migration
id BIGINT GENERATED always AS IDENTITY PRIMARY KEY,
code INT NOT NULL CHECK (code >= 1000) UNIQUE,
company_id INT NOT NULL,
company_id BIGINT NOT NULL,
name TEXT NOT NULL UNIQUE, -- CITEXT use extension
address TEXT NOT NULL,
name CITEXT NOT NULL UNIQUE, -- CITEXT use extension
address CITEXT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
updated_at TIMESTAMP NOT NULL DEFAULT NOW(),
@@ -26,7 +26,6 @@ return new class extends Migration
FOREIGN KEY (company_id) REFERENCES companies (id)
);
SQL;
DB::statement($sql);