working on absence

This commit is contained in:
2025-05-19 15:10:05 +02:00
parent 5f8bb1514b
commit d3026ae72e
5 changed files with 35 additions and 3 deletions

22
Backend/models/absence.go Normal file
View File

@@ -0,0 +1,22 @@
package models
import "time"
type Absence struct {
CounterId int
CardUID string
AbwesenheitTyp int8
Datum time.Time
}
func NewAbsence(card_uid string, abwesenheit_typ int8, datum time.Time) Absence {
return Absence{
CardUID: card_uid,
AbwesenheitTyp: abwesenheit_typ,
Datum: datum,
}
}
func (a *Absence) Insert() {
// qStr, err := DB.Prepare(`INSERT INTO`)
}