Skip to content

Instantly share code, notes, and snippets.

@thePunderWoman
Created October 1, 2012 14:03
Show Gist options
  • Save thePunderWoman/3811972 to your computer and use it in GitHub Desktop.
Save thePunderWoman/3811972 to your computer and use it in GitHub Desktop.
Vehicle Part
CREATE TABLE vcdb_VehiclePart (
ID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
BaseVehicleID int NOT NULL FOREIGN KEY REFERENCES BaseVehicle (ID),
SubmodelID int NOT NULL FOREIGN KEY REFERENCES Submodel (ID),
PartNumber int NOT NULL,
VehicleConfigID int NULL FOREIGN KEY REFERENCES VehicleConfig (ID)
)
GO
CREATE TABLE VehicleConfig (
ID int IDENTITY(1,1) PRIMARY KEY NOT NULL,
AAIAVehicleConfigID int NOT NULL,
differentiator varchar(250) NULL
)
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment