go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/projects/nodes/pkg/dbmodel/graph_logs.go (about)

     1  /*
     2  
     3  Copyright (c) 2023 - Present. Will Charczuk. All rights reserved.
     4  Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository.
     5  
     6  */
     7  
     8  package dbmodel
     9  
    10  import (
    11  	"time"
    12  
    13  	"go.charczuk.com/sdk/uuid"
    14  )
    15  
    16  // GraphLogs are log outputs for each stabilization run.
    17  type GraphLogs struct {
    18  	GraphID          uuid.UUID `db:"graph_id,pk"`
    19  	UserID           uuid.UUID `db:"user_id,pk"`
    20  	StabilizationNum uint64    `db:"stabilization_num,pk"`
    21  	CreatedUTC       time.Time `db:"created_utc"`
    22  	Logs             string    `db:"logs"`
    23  }
    24  
    25  func (gl GraphLogs) TableName() string { return "graph_log" }