commit cad140daae398810165fc82bfd40f8cdd593a001 Author: nima Date: Fri May 24 14:06:56 2024 +0330 models 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 +}