first commit
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import mongoose, { Schema, Document } from "mongoose";
|
||||
|
||||
export interface ICompany extends Document {
|
||||
name: string;
|
||||
}
|
||||
|
||||
const CompanySchema = new Schema<ICompany>({
|
||||
name: { type: String, required: true },
|
||||
});
|
||||
|
||||
export default mongoose.model<ICompany>("Companie", CompanySchema);
|
||||
Reference in New Issue
Block a user