You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
654 B
36 lines
654 B
import { Schema, model,Document } from 'mongoose';
|
|
|
|
|
|
const locationSchema = new Schema(
|
|
{
|
|
|
|
idFlad: {
|
|
type: String,
|
|
required: true,
|
|
unique: true,
|
|
},
|
|
|
|
latitude: {
|
|
type: Number,
|
|
required: true,
|
|
},
|
|
longitude: {
|
|
type: Number,
|
|
required: true,
|
|
},
|
|
|
|
|
|
},
|
|
{ timestamps: true }
|
|
);
|
|
|
|
// fladDevDb
|
|
// ZslYlNRWIOUU7i6o
|
|
export default model<ILocation>('Location', locationSchema);
|
|
|
|
export interface ILocation extends Document {
|
|
idFlad: string;
|
|
latitude : number;
|
|
longitude: number;
|
|
|
|
} |