feat: user_rework (todo -> GetAll)
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DROP TABLE IF EXISTS password_reset_requests;
|
||||
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE IF NOT EXISTS password_reset_requests (
|
||||
token bytea PRIMARY KEY,
|
||||
user_id bigint NOT NULL,
|
||||
expiry TIMESTAMP(0)
|
||||
WITH
|
||||
TIME ZONE NOT NULL
|
||||
);
|
||||
@@ -16,6 +16,10 @@ func main() {
|
||||
}
|
||||
defer conn.Close()
|
||||
|
||||
store := store.NewStorage(conn)
|
||||
store, err := store.NewStorage(conn)
|
||||
if err != nil {
|
||||
log.Fatalf("could not create storage: %v", err)
|
||||
}
|
||||
|
||||
db.Seed(store, conn)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user