From cad140daae398810165fc82bfd40f8cdd593a001 Mon Sep 17 00:00:00 2001 From: nima Date: Fri, 24 May 2024 14:06:56 +0330 Subject: [PATCH] models --- go.mod | 3 +++ main.go | 1 + models/models.go | 38 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 go.mod create mode 100644 main.go create mode 100644 models/models.go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..75c9810 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module netina + +go 1.21.4 diff --git a/main.go b/main.go new file mode 100644 index 0000000..06ab7d0 --- /dev/null +++ b/main.go @@ -0,0 +1 @@ +package main diff --git a/models/models.go b/models/models.go new file mode 100644 index 0000000..5b07fff --- /dev/null +++ b/models/models.go @@ -0,0 +1,38 @@ +package models + +import "time" + +type owner struct { + ID uint + PhoneNumber uint + FullName string + NationalCode string + Stores []uint + Created_at string + Is_removed bool +} + +type store struct { + ID uint + OwnerID uint + Name string + Address string + PhoneNumber uint + WebAddress string + ApiAddress string + StorageAddress string + AdminPanelAddress string + LicenseID string + Created_at string + Is_removed bool +} + +type License struct { + ID uint + Price uint + Period time.Time + Partnership bool + PercentageOfOwner uint + Created_at string + Is_removed bool +}