Initial commit of the Asset Management System, including project structure, Docker configuration, database migrations, and core application files. Added user authentication, asset management features, and basic UI components.
This commit is contained in:
6
database/seeds/001_seed_users.sql
Normal file
6
database/seeds/001_seed_users.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Insert default admin user
|
||||
-- Password: Admin!234 (will be changed on first login)
|
||||
INSERT INTO users (name, email, role, passhash, active, locale) VALUES
|
||||
('Administrator', 'admin@example.com', 'admin', '$argon2id$v=19$m=65536,t=4,p=1$dXNlcl9zYWx0$hashed_password_here', TRUE, 'de'),
|
||||
('Max Mustermann', 'max.mustermann@example.com', 'auditor', '$argon2id$v=19$m=65536,t=4,p=1$dXNlcl9zYWx0$hashed_password_here', TRUE, 'de'),
|
||||
('Anna Schmidt', 'anna.schmidt@example.com', 'employee', '$argon2id$v=19$m=65536,t=4,p=1$dXNlcl9zYWx0$hashed_password_here', TRUE, 'de');
|
||||
11
database/seeds/002_seed_categories.sql
Normal file
11
database/seeds/002_seed_categories.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
INSERT INTO categories (name, description) VALUES
|
||||
('Computer & Hardware', 'Desktop-Computer, Laptops, Server und Zubehör'),
|
||||
('Netzwerk & Kommunikation', 'Router, Switches, Telefone, WLAN-Geräte'),
|
||||
('Büroausstattung', 'Tische, Stühle, Schränke, Drucker'),
|
||||
('Software & Lizenzen', 'Betriebssysteme, Anwendungssoftware, Lizenzen'),
|
||||
('Fahrzeuge & Transport', 'Firmenwagen, Gabelstapler, Transportgeräte'),
|
||||
('Werkzeuge & Maschinen', 'Handwerkzeuge, Maschinen, Produktionsanlagen'),
|
||||
('Sicherheit & Überwachung', 'Kameras, Alarmanlagen, Zutrittskontrollen'),
|
||||
('Möbel & Einrichtung', 'Büromöbel, Einrichtungsgegenstände'),
|
||||
('Elektronik & Unterhaltung', 'TV-Geräte, Audio-Systeme, Präsentationstechnik'),
|
||||
('Sonstiges', 'Verschiedene andere Anlagen und Gegenstände');
|
||||
6
database/seeds/003_seed_locations.sql
Normal file
6
database/seeds/003_seed_locations.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
INSERT INTO locations (name, address, contact_person, contact_email, contact_phone) VALUES
|
||||
('Hauptsitz - Gebäude A', 'Musterstraße 1, 12345 Musterstadt', 'Peter Müller', 'peter.mueller@example.com', '+49 123 456789'),
|
||||
('Niederlassung - Gebäude B', 'Beispielweg 15, 54321 Beispielort', 'Maria Weber', 'maria.weber@example.com', '+49 987 654321'),
|
||||
('Lager - Gebäude C', 'Industriepark 7, 67890 Industriestadt', 'Hans Schmidt', 'hans.schmidt@example.com', '+49 555 123456'),
|
||||
('Außenstelle Nord', 'Nordstraße 42, 11111 Nordstadt', 'Lisa Fischer', 'lisa.fischer@example.com', '+49 111 222333'),
|
||||
('Außenstelle Süd', 'Südallee 8, 99999 Südstadt', 'Tom Wagner', 'tom.wagner@example.com', '+49 999 888777');
|
||||
11
database/seeds/004_seed_departments.sql
Normal file
11
database/seeds/004_seed_departments.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
INSERT INTO departments (name, cost_center, manager, manager_email) VALUES
|
||||
('Geschäftsführung', 'GF-001', 'Dr. Michael Bauer', 'michael.bauer@example.com'),
|
||||
('IT & Systemadministration', 'IT-001', 'Sarah Klein', 'sarah.klein@example.com'),
|
||||
('Buchhaltung & Finanzen', 'BU-001', 'Frank Meyer', 'frank.meyer@example.com'),
|
||||
('Personal & Verwaltung', 'PE-001', 'Claudia Schulz', 'claudia.schulz@example.com'),
|
||||
('Vertrieb & Marketing', 'VM-001', 'Andreas Wolf', 'andreas.wolf@example.com'),
|
||||
('Produktion & Fertigung', 'PR-001', 'Robert Koch', 'robert.koch@example.com'),
|
||||
('Einkauf & Logistik', 'EL-001', 'Petra Lange', 'petra.lange@example.com'),
|
||||
('Forschung & Entwicklung', 'FE-001', 'Dr. Thomas Richter', 'thomas.richter@example.com'),
|
||||
('Kundenservice', 'KS-001', 'Nina Becker', 'nina.becker@example.com'),
|
||||
('Qualitätssicherung', 'QS-001', 'Markus Hoffmann', 'markus.hoffmann@example.com');
|
||||
11
database/seeds/005_seed_sample_assets.sql
Normal file
11
database/seeds/005_seed_sample_assets.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
INSERT INTO assets (inventarnummer, bezeichnung, kategorie_id, standort_id, abteilung_id, raum, lieferant, seriennummer, anschaffungsdatum, anschaffungspreis, garantie_bis, zustand, status, kostenstelle, notizen, created_by) VALUES
|
||||
('PC-2024-001', 'Dell OptiPlex 7090 Desktop Computer', 1, 1, 2, 'Büro 101', 'Dell Technologies', 'SN123456789', '2024-01-15', 899.00, '2027-01-15', 'neu', 'aktiv', 'IT-001', 'Standard-Arbeitsplatz', 1),
|
||||
('PC-2024-002', 'HP EliteBook 840 G8 Laptop', 1, 1, 2, 'Büro 102', 'HP Inc.', 'SN987654321', '2024-02-01', 1299.00, '2027-02-01', 'neu', 'aktiv', 'IT-001', 'Mobiler Arbeitsplatz', 1),
|
||||
('NET-2024-001', 'Cisco Catalyst 2960 Switch', 2, 1, 2, 'Serverraum', 'Cisco Systems', 'SN456789123', '2024-01-10', 450.00, '2027-01-10', 'neu', 'aktiv', 'IT-001', '24-Port Switch', 1),
|
||||
('BÜRO-2024-001', 'Herman Miller Aeron Bürostuhl', 3, 1, 4, 'Büro 103', 'Herman Miller', 'SN789123456', '2024-03-01', 850.00, '2027-03-01', 'neu', 'aktiv', 'PE-001', 'Ergonomischer Bürostuhl', 1),
|
||||
('SW-2024-001', 'Microsoft Office 365 Business Premium', 4, 1, 2, 'Virtuell', 'Microsoft', 'LIC-2024-001', '2024-01-01', 12.50, '2025-01-01', 'neu', 'aktiv', 'IT-001', 'Jährliche Lizenz', 1),
|
||||
('FAHR-2024-001', 'VW Passat Variant Firmenwagen', 5, 1, 1, 'Parkplatz A1', 'Volkswagen AG', 'SN111222333', '2024-01-20', 35000.00, '2027-01-20', 'neu', 'aktiv', 'GF-001', 'Geschäftsführer', 1),
|
||||
('WERK-2024-001', 'Bosch Professional Bohrmaschine', 6, 3, 6, 'Werkstatt', 'Bosch', 'SN444555666', '2024-02-15', 89.00, '2026-02-15', 'neu', 'aktiv', 'PR-001', 'Werkstattausstattung', 1),
|
||||
('SICH-2024-001', 'Hikvision IP-Kamera', 7, 1, 2, 'Eingang', 'Hikvision', 'SN777888999', '2024-01-05', 120.00, '2027-01-05', 'neu', 'aktiv', 'IT-001', 'Überwachungskamera', 1),
|
||||
('MÖB-2024-001', 'IKEA BEKANT Schreibtisch', 8, 1, 4, 'Büro 104', 'IKEA', 'SN000111222', '2024-03-10', 199.00, '2027-03-10', 'neu', 'aktiv', 'PE-001', 'Standard-Schreibtisch', 1),
|
||||
('ELEK-2024-001', 'Samsung 55" Smart TV', 9, 1, 5, 'Konferenzraum', 'Samsung Electronics', 'SN333444555', '2024-02-20', 599.00, '2027-02-20', 'neu', 'aktiv', 'VM-001', 'Präsentationstechnik', 1);
|
||||
Reference in New Issue
Block a user