Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
Innoveria Bachelor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Daniel Høyland
Innoveria Bachelor
Commits
f5803a89
Commit
f5803a89
authored
1 year ago
by
Odin Aas
Browse files
Options
Downloads
Patches
Plain Diff
fixed commands file to include a real user
parent
50338f59
Branches
Branches containing commit
No related tags found
1 merge request
!100
Dev branch
Pipeline
#27064
passed
1 year ago
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Backend/commands.sql
+1
-23
1 addition, 23 deletions
Backend/commands.sql
with
1 addition
and
23 deletions
Backend/commands.sql
+
1
−
23
View file @
f5803a89
...
...
@@ -114,26 +114,4 @@ ALTER TABLE `sensorData` ADD FOREIGN KEY (`eui`) REFERENCES `machine` (`eui`);
ALTER
TABLE
`processes`
ADD
FOREIGN
KEY
(
`company_id`
)
REFERENCES
`company`
(
`id`
);
INSERT
INTO
company
(
`name`
)
VALUES
(
'Test'
);
INSERT
INTO
company
(
`name`
)
VALUES
(
'Vyrk'
);
INSERT
INTO
company
(
`name`
)
VALUES
(
'Innoveria'
);
INSERT
INTO
company
(
`name`
)
VALUES
(
'Monitor'
);
INSERT
INTO
users
(
`email`
,
`first_name`
,
`last_name`
,
`password`
,
`permission`
,
`company_id`
)
VALUES
(
'admin@admin.no'
,
'admin'
,
'admin'
,
'admin'
,
0
,
1
);
INSERT
INTO
session
VALUES
(
'0321412'
,
1
,
'2024-02-01 15:30:45'
,
'2024-07-09 15:30:45'
);
INSERT
INTO
building
(
`company_id`
,
`name`
)
VALUES
(
1
,
'A'
);
INSERT
INTO
building
(
`company_id`
,
`name`
)
VALUES
(
1
,
'B'
);
INSERT
INTO
building
(
`company_id`
,
`name`
)
VALUES
(
1
,
'C'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
1
,
'AA'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
1
,
'AB'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
1
,
'AC'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
2
,
'BA'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
2
,
'BB'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
2
,
'BC'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
3
,
'CA'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
3
,
'CB'
);
INSERT
INTO
department
(
`building_id`
,
`name`
)
VALUES
(
3
,
'CC'
);
INSERT
INTO
processes
(
`name`
,
`description`
,
`company_id`
)
VALUES
(
'WINDOW'
,
'Make window for houses'
,
1
);
INSERT
INTO
enoek_suggestion_measures
(
`header`
,
`description`
,
`author`
,
`start_date`
,
`stop_date`
,
`active`
,
`approved`
,
`process_id`
)
VALUES
(
'Oven'
,
'Oven burn more stuff'
,
1
,
'2024-02-01 15:30:45'
,
'2024-07-09 15:30:45'
,
0
,
NULL
,
1
);
INSERT
INTO
machine_processes
(
`machine_id`
,
`processes_id`
)
VALUES
(
'E890E1CC8CF44B49'
,
1
);
INSERT
INTO
sensorData
(
`eui`
,
`Acumulation`
,
`AVG_current`
,
`Offset_max`
,
`Offset_min`
,
`Voltage`
,
`Temprature`
,
`date_time`
)
VALUES
(
'E890E1CC8CF44B49'
,
0
,
0
,
0
,
0
,
0
,
0
,
'2024-02-11 15:30:45'
);
\ No newline at end of file
INSERT
INTO
users
(
`email`
,
`first_name`
,
`last_name`
,
`password`
,
`permission`
)
VALUES
(
'admin@admin.no'
,
'admin'
,
'admin'
,
'$2a$14$6Yh.j0gD9HCnqNwrxwAftePBWUze3x.sy7Ls5h7yWA6S79V5nm3jG'
,
-
1
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment