mirror of
https://github.com/go-sigma/sigma.git
synced 2026-10-28 15:34:34 +08:00
chore(dal): remove unused Locker model
pkg/dal/models/locker.go is dead code: it is absent from the gorm-gen model list in pkg/dal/cmd/gen.go, has no generated query, and no migration creates a lockers table. Locking is handled by pkg/infra/lock instead.
This commit is contained in:
1 parent
2009156bf5
commit
68c4cb8be1
1 file changed
-31
@@ -1,31 +0,0 @@
|
||||
// Copyright 2023 sigma
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
package models
|
||||
|
||||
import (
|
||||
"gorm.io/plugin/soft_delete"
|
||||
)
|
||||
|
||||
// Locker locker
|
||||
type Locker struct {
|
||||
CreatedAt int64 `gorm:"autoCreateTime:milli"`
|
||||
UpdatedAt int64 `gorm:"autoUpdateTime:milli"`
|
||||
DeletedAt soft_delete.DeletedAt `gorm:"softDelete:milli"`
|
||||
ID string `gorm:"primaryKey;size:36"`
|
||||
|
||||
Key string
|
||||
Expire int64
|
||||
Value string
|
||||
}
|
||||
Reference in new issue
Block a user