mirror of
https://github.com/sasjs/server.git
synced 2025-12-10 19:34:34 +00:00
16 lines
258 B
TypeScript
16 lines
258 B
TypeScript
import mongoose, { Schema } from 'mongoose'
|
|
|
|
const CounterSchema = new Schema({
|
|
id: {
|
|
type: String,
|
|
required: true,
|
|
unique: true
|
|
},
|
|
seq: {
|
|
type: Number,
|
|
required: true
|
|
}
|
|
})
|
|
|
|
export default mongoose.model('Counter', CounterSchema)
|