initial commit
This commit is contained in:
commit
d40b69f1f9
58 changed files with 7919 additions and 0 deletions
45
backend/db/models.go
Normal file
45
backend/db/models.go
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
// Code generated by sqlc. DO NOT EDIT.
|
||||
// versions:
|
||||
// sqlc v1.29.0
|
||||
|
||||
package db
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
)
|
||||
|
||||
type Category struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description sql.NullString `json:"description"`
|
||||
CreatedBy string `json:"created_by"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
}
|
||||
|
||||
type Session struct {
|
||||
Key []byte `json:"key"`
|
||||
UserID string `json:"user_id"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
}
|
||||
|
||||
type Task struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Description sql.NullString `json:"description"`
|
||||
Completed int64 `json:"completed"`
|
||||
CreatedBy string `json:"created_by"`
|
||||
AssignedTo string `json:"assigned_to"`
|
||||
CreatedAt int64 `json:"created_at"`
|
||||
Deadline sql.NullInt64 `json:"deadline"`
|
||||
}
|
||||
|
||||
type TaskCategory struct {
|
||||
TaskID int64 `json:"task_id"`
|
||||
CategoryID int64 `json:"category_id"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID string `json:"id"`
|
||||
Username string `json:"username"`
|
||||
Password []byte `json:"password"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue