From 9d18b9e9d9ab7561deadc867654f7cc4db15d2e1 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 11 Feb 2024 16:49:07 +0000 Subject: Started the Operation model --- internal/models/operation.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 internal/models/operation.go (limited to 'internal/models/operation.go') diff --git a/internal/models/operation.go b/internal/models/operation.go new file mode 100644 index 0000000..8547030 --- /dev/null +++ b/internal/models/operation.go @@ -0,0 +1,16 @@ +package models + +import ( + "database/sql" +) + +type Operation struct { + ID int + Name string + Description string + Organisation Organisation +} + +type OperationMOdel struct { + DB *sql.DB +} -- cgit v1.2.3