Initial commit

This commit is contained in:
Victor Lacasse-Beaudoin 2025-02-27 14:13:21 -05:00
commit 02947128bc
24 changed files with 1126 additions and 0 deletions

10
queries/queries.go Normal file
View file

@ -0,0 +1,10 @@
package queries
import _ "embed"
//go:embed schema.sql
var sqlSchema string
func SQLSchema() string {
return sqlSchema
}

5
queries/schema.sql Normal file
View file

@ -0,0 +1,5 @@
-- Schema
CREATE TABLE IF NOT EXISTS presences (
at TIMESTAMP DEFAULT current_timestamp,
id VARCHAR(7) PRIMARY KEY CHECK (length(id) > 0)
);