This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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)");
|
||||||
|
|||||||
Reference in New Issue
Block a user