This commit is contained in:
blankhex committed 2026-10-21 19:41:26 +03:00
commit 97dc0a3570
78 files changed
+7054

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package invite
import "goAuth/internal/migration"
func Migrations() []migration.Migration {
return []migration.Migration{
{
Version: 1,
SQL: `CREATE TABLE IF NOT EXISTS invites (
token TEXT PRIMARY KEY,
quota INTEGER NOT NULL,
uses INTEGER NOT NULL DEFAULT 0,
expires_at DATETIME NOT NULL,
created_at DATETIME NOT NULL
);`,
},
}
}