element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
NexGen Flight Simuator NexGen: Aircraft Data Base (Universal)
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: phoenixcomm
  • Date Created: 11 Aug 2020 7:12 PM Date Created
  • Views 549 views
  • Likes 1 like
  • Comments 0 comments
  • flight simulator
  • nexgen
  • database
  • parts database
  • mysql
  • software
Related
Recommended

NexGen: Aircraft Data Base (Universal)

phoenixcomm
phoenixcomm
11 Aug 2020

The question is how can you put ALL the parts into one database? And then make some sense of the thing. I designed my database similar to the one we used at Interdata in the late '70s. So why do I call this universal?image

Well, I have separated parts by a Category and given each Category a unique number for its ID and a Name.

image So now you have a table Categorys (CatID int, CatName). It really does not need anything else.

image The next table will hold the Manufactures' Names, CAGE code, and IDs.

imageThe next table must describe the parts: Info( Cat1D, ManID, InfoID, Type, Part, NSN, Description) where the column ManID is configured to Auto Increment.

The next group of tables is CATxx which holds each Category list of parts.

image  CATxxx (CATxx int, InfoID int auto increment, MLID int, Rev int). The MLID column is reserved and is Manufacturing Level.

Lastly, we need to track serial numbers, and this will be the last table.

image Serials(CATxx int, CatID int, MLID int, Rev int, Serial varchar (20))

So how does this work in real life?

Well here it is:

~~Cris

afterthought: here is an example of the Seeed Studio Network Sheild. As there are two of them with two different manufacturers part numbers. So who is on first? The 2 part numbers would be as follows:

  • 35-1-M0-R0
  • 35-1-M1-R0

using this method there is no doubt which to use.

 

Categorys
ID Number Description
19 TTL, Digital
35 PCB, Assembled
50 Avionics
Info
CatID ManID InfoID* Type Part NSN Description
19 1 1 74LS138N Decoder 3:7
50 2 2 JB678 N1234-L02 Instrument, Fan Speed, N1
19 1 3 74LS373N Octal Transparent Latch
35 3 4 Ethernet Shield V1.0
35 3 5 W5500 Ethernet Shield V2.0

Note: Column marked with a * are auto-increment.

CAT19
CatNum Base* MLID REV InfoID
19 1 0 0 0
19 2 0 0 3
CAT35
CatNum Base* MLID REV InfoID
35 1 0 0 4
35 1 1 0 5

 

CAT50
CatNum Base* MLID REV InfoID
50 1 0 0 3
Serials
CatNum Base MLID REV SN
50 1 0 0 G-123
50 1 0 0 G-234
Manufacture
ManID* CAGE ManName
1 Texas Instruments
2 General Electric, Aircraft Instrument Division
3 Seeed Studio
  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube