summaryrefslogtreecommitdiffstats
path: root/internal/models/operation.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Operations list shows ESs for each entityMatthew Lemon2024-02-121-5/+6
| | | | | | | | | | This was about two hours of learning, and getting confused - and it needs to be refactored. We need to be able to generate the list of EPs for the Operation also. At the moment this only prints the object representation. More work to be done writing a method that gives us the id and textual representation for the link in the table.
* Adds an operations html templateMatthew Lemon2024-02-111-1/+3
| | | | | Does not contain any dynamic data at this point, i.e. does not actually list the operations from the database - just dummy data at this point.
* Have added a listAll handler for new operation modelMatthew Lemon2024-02-111-5/+38
| | | | | | | This is the first attempt at querying a table with a foreign key relation and returning the result to be used in Go code. Learned quite a bit! Including getting a null pointer error because I forgot to initialise the sql.DB in the application structure.
* Started the Operation modelMatthew Lemon2024-02-111-0/+16