23 lines
413 B
Go
23 lines
413 B
Go
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`)
|
|
}
|