710ab06333
Additive/expand-contract: new append-only retained_identities table (the legal dossier of every detached credential, keyed by account_id, TTL'd by detached_at) plus nullable accounts columns last_login_at/last_login_ip (cold-load stamp) and deleted_at/deleted_display_name (tombstone + retained real name). Regenerates the go-jet models for accounts + retained_identities only.
25 lines
438 B
Go
25 lines
438 B
Go
//
|
|
// Code generated by go-jet DO NOT EDIT.
|
|
//
|
|
// WARNING: Changes to this file may cause incorrect behavior
|
|
// and will be lost if the code is regenerated
|
|
//
|
|
|
|
package model
|
|
|
|
import (
|
|
"github.com/google/uuid"
|
|
"time"
|
|
)
|
|
|
|
type RetainedIdentities struct {
|
|
RetainedID uuid.UUID `sql:"primary_key"`
|
|
AccountID uuid.UUID
|
|
Kind string
|
|
ExternalID string
|
|
Confirmed bool
|
|
LinkedAt time.Time
|
|
DetachedAt time.Time
|
|
Reason string
|
|
}
|