LFMS Database Schema


User

Column NameValueNotes
IdLongPrimary key, Not null, Unique
EmailStringNot null, Unique
UsernameStringNot null, Unique
Passwordin



Item

Column NameValueNotes
IdLongPrimary key, Not null, Unique
Item NameStringNot null, Unique
QuantityInt
StatusString
Purchase DateDate
Bar codeLong
ProjectProject

Foreign Key

Category

LocationLocation


Project
Column NameValueNotes
IdLongPrimary key
Project NameStringNot null, Unique
SubteamString
ItemsItemForeign Key


Personal Loans

Column NameValueNotes
IdLongPrimary key
UserUserForeign Key
ItemItemForeign Key
QuantityInt
Checkout DateDate


Location

Column NameValueNotes
IdLongPrimary key
BuildingString
LocationString