This commit is contained in:
2021-01-13 01:12:30 +00:00
parent e0d8aaf8c7
commit 2cf173a663
2 changed files with 3 additions and 3 deletions

View File

@@ -36,7 +36,7 @@ namespace AyaNova.Models
public decimal Cost { get; set; } public decimal Cost { get; set; }
[Required] [Required]
public decimal Retail { get; set; } public decimal Retail { get; set; }
public long? UnitOfMeasureId { get; set; } public string UnitOfMeasure { get; set; }
public string UPC { get; set; } public string UPC { get; set; }
[Required] [Required]
public bool TrackSerialNumber { get; set; } public bool TrackSerialNumber { get; set; }
@@ -80,7 +80,7 @@ CREATE TABLE [dbo].[APART](
[AALTERNATIVEWHOLESALERNUMBER] [nvarchar](255) NULL, [AALTERNATIVEWHOLESALERNUMBER] [nvarchar](255) NULL,
[ACOST] [decimal](19, 5) NULL, [ACOST] [decimal](19, 5) NULL,
[ARETAIL] [decimal](19, 5) NULL, [ARETAIL] [decimal](19, 5) NULL,
[AUNITOFMEASUREID] [uniqueidentifier] NULL, [AUNITOFMEASUREID] [uniqueidentifier] NULL,//convert to text and store inside the part instead of in another table to reduce join dependencies
[APARTASSEMBLYID] [uniqueidentifier] NULL,//DROP, Migrate into new partassemblyitem [APARTASSEMBLYID] [uniqueidentifier] NULL,//DROP, Migrate into new partassemblyitem
[AUPC] [nvarchar](255) NULL, [AUPC] [nvarchar](255) NULL,
[ATRACKSERIALNUMBER] [bit] NOT NULL, [ATRACKSERIALNUMBER] [bit] NOT NULL,

View File

@@ -684,7 +684,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
"notes text, wiki text, customfields text, tags varchar(255) ARRAY, " + "notes text, wiki text, customfields text, tags varchar(255) ARRAY, " +
"partnumber text not null unique, popupnotes text, manufacturerid bigint REFERENCES avendor, manufacturernumber text, "+ "partnumber text not null unique, popupnotes text, manufacturerid bigint REFERENCES avendor, manufacturernumber text, "+
"wholesalerid bigint REFERENCES avendor, wholesalernumber text, alternativewholesalerid bigint REFERENCES avendor, alternativewholesalernumber text, " + "wholesalerid bigint REFERENCES avendor, wholesalernumber text, alternativewholesalerid bigint REFERENCES avendor, alternativewholesalernumber text, " +
"cost decimal(19,4) not null, retail decimal(19,4) not null, unitofmeasureid REFERENCES aunitofmeasure, upc text, trackserialnumber bool not null " + "cost decimal(19,4) not null, retail decimal(19,4) not null, unitofmeasure text, upc text, trackserialnumber bool not null " +
" )"); " )");
await ExecQueryAsync("CREATE UNIQUE INDEX apart_name_id_idx ON apart (id, name);"); await ExecQueryAsync("CREATE UNIQUE INDEX apart_name_id_idx ON apart (id, name);");
await ExecQueryAsync("CREATE INDEX apart_tags ON apart using GIN(tags)"); await ExecQueryAsync("CREATE INDEX apart_tags ON apart using GIN(tags)");